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
⌀
interlegis__sapl-2075
Pesquisa de normas jurídicas Olá, estou testando o SAPL 3.1 e percebi que a pesquisa de normas jurídicas não retorna resultado caso seja acrescentado o número "0" antes da numeração da norma.
[ { "content": "from django import forms\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ValidationError\nfrom django.db import transaction\nfrom django.db.models import Q\nfrom django.forms import ModelForm\nfrom django.utils.translation import ugettext_lazy as _\n...
[ { "content": "from django import forms\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ValidationError\nfrom django.db import transaction\nfrom django.db.models import Q\nfrom django.forms import ModelForm\nfrom django.utils.translation import ugettext_lazy as _\n...
diff --git a/sapl/comissoes/forms.py b/sapl/comissoes/forms.py index 75b45c976..db1822e4a 100644 --- a/sapl/comissoes/forms.py +++ b/sapl/comissoes/forms.py @@ -100,7 +100,7 @@ def __init__(self, user=None, **kwargs): exclude(id__in=id_part) eligible = self.verifica() result = list(set(qs...
apache__airflow-39345
webserver static file caching is disabled above 2.3.0 version. ### Apache Airflow version Other Airflow 2 version (please specify below) ### If "Other Airflow 2 version" selected, which one? 2.3.x ~ 2.9.x ### What happened? Recently, I migrated airflow version 2.2.0 to 2.9.0 and python 3.8 to 3.12. and i experi...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/www/app.py b/airflow/www/app.py index 50e1ba2629786..eb4362d70bf33 100644 --- a/airflow/www/app.py +++ b/airflow/www/app.py @@ -121,6 +121,10 @@ def create_app(config=None, testing=False): cookie_samesite_config = "Lax" flask_app.config["SESSION_COOKIE_SAMESITE"] = cookie_samesite_con...
Cog-Creators__Red-DiscordBot-3710
`[p]alias add` should warn (or error) when passed command name doesn't exist # Command bugs #### Command name `[p]alias (global) add aliasname non-existent-command` #### What cog is this command from? Alias #### What were you expecting to happen? I expected the cog to error out (or just send warning) ...
[ { "content": "from copy import copy\nfrom re import findall, search\nfrom string import Formatter\nfrom typing import Generator, Tuple, Iterable, Optional\n\nimport discord\nfrom discord.ext.commands.view import StringView\nfrom redbot.core import Config, commands, checks\nfrom redbot.core.i18n import Translato...
[ { "content": "from copy import copy\nfrom re import findall, search\nfrom string import Formatter\nfrom typing import Generator, Tuple, Iterable, Optional\n\nimport discord\nfrom discord.ext.commands.view import StringView\nfrom redbot.core import Config, commands, checks\nfrom redbot.core.i18n import Translato...
diff --git a/redbot/cogs/alias/alias.py b/redbot/cogs/alias/alias.py index b1af67d254c..68025944d87 100644 --- a/redbot/cogs/alias/alias.py +++ b/redbot/cogs/alias/alias.py @@ -279,6 +279,13 @@ async def _add_alias(self, ctx: commands.Context, alias_name: str, *, command): ).format(name=alias_name) ...
openstates__openstates-scrapers-1502
AR scraper failing since at least 2017-03-11 State: AR - scraper has been failing since 2017-03-11 Based on automated runs it appears that AR has not run successfully in 2 days (2017-03-11). ```/usr/local/bin/billy-update ar``` | **failed during bills** ``` Traceback (most recent call last): File "/opt/openstate...
[ { "content": "import re\nimport csv\nimport StringIO\nimport datetime\n\nfrom billy.scrape.bills import BillScraper, Bill\nfrom billy.scrape.votes import Vote\n\nimport lxml.html\n\nimport scrapelib\n\n\ndef unicode_csv_reader(unicode_csv_data, dialect=csv.excel, **kwargs):\n # csv.py doesn't do Unicode; enc...
[ { "content": "import re\nimport csv\nimport StringIO\nimport datetime\n\nfrom billy.scrape.bills import BillScraper, Bill\nfrom billy.scrape.votes import Vote\n\nimport lxml.html\n\nimport scrapelib\n\n\ndef unicode_csv_reader(unicode_csv_data, dialect=csv.excel, **kwargs):\n # csv.py doesn't do Unicode; enc...
diff --git a/openstates/ar/bills.py b/openstates/ar/bills.py index 3be1c0cd65..cc893dd7be 100644 --- a/openstates/ar/bills.py +++ b/openstates/ar/bills.py @@ -69,7 +69,8 @@ def scrape_bill(self, chamber, session): primary = row[11] if not primary: primary = row[12] - ...
readthedocs__readthedocs.org-5955
Fix the count of total projects shown on the homepage On the hompage (https://readthedocs.org/), we show the total count of the projects. ![Screenshot from 2019-07-15 14-23-42](https://user-images.githubusercontent.com/29149191/61207904-d6b64f00-a713-11e9-9388-8d7222a2a4d7.png) This number also includes projects ...
[ { "content": "\"\"\"\nCore views.\n\nIncluding the main homepage, documentation and header rendering,\nand server errors.\n\"\"\"\n\nimport os\nimport logging\nfrom urllib.parse import urlparse\n\nfrom django.conf import settings\nfrom django.http import HttpResponseRedirect, Http404, JsonResponse\nfrom django....
[ { "content": "\"\"\"\nCore views.\n\nIncluding the main homepage, documentation and header rendering,\nand server errors.\n\"\"\"\n\nimport os\nimport logging\nfrom urllib.parse import urlparse\n\nfrom django.conf import settings\nfrom django.http import HttpResponseRedirect, Http404, JsonResponse\nfrom django....
diff --git a/readthedocs/core/views/__init__.py b/readthedocs/core/views/__init__.py index b4902e9c1d4..9af3688ccb2 100644 --- a/readthedocs/core/views/__init__.py +++ b/readthedocs/core/views/__init__.py @@ -42,7 +42,7 @@ def get_context_data(self, **kwargs): """Add latest builds and featured projects.""" ...
scikit-hep__pyhf-837
bump jsonschema to v3.2.0+ to support draft 6 Currently on alpha release 3.0.x but can bump to 3.2.0 which was released.
[ { "content": "from setuptools import setup, find_packages\nfrom pathlib import Path\n\nthis_directory = Path(__file__).parent.resolve()\nwith open(Path(this_directory).joinpath('README.rst'), encoding='utf-8') as readme_rst:\n long_description = readme_rst.read()\n\nextras_require = {\n 'tensorflow': ['te...
[ { "content": "from setuptools import setup, find_packages\nfrom pathlib import Path\n\nthis_directory = Path(__file__).parent.resolve()\nwith open(Path(this_directory).joinpath('README.rst'), encoding='utf-8') as readme_rst:\n long_description = readme_rst.read()\n\nextras_require = {\n 'tensorflow': ['te...
diff --git a/setup.py b/setup.py index 0039b396fb..78af838f3b 100644 --- a/setup.py +++ b/setup.py @@ -96,7 +96,7 @@ 'scipy', # requires numpy, which is required by pyhf and tensorflow 'click>=6.0', # for console scripts, 'tqdm', # for readxml - 'jsonschema>=v3.0.0a2', # for utils,...
psychopy__psychopy-4442
Keyword argument `keepMatrix` is not a supported parameter name of method `ImageStim.draw` This [LGTM.com error](https://lgtm.com/projects/g/psychopy/psychopy/alerts/?severity=error) originates here: https://github.com/psychopy/psychopy/blob/5711431f37b0dc1b0449d7e7e975fa73911f9782/psychopy/visual/aperture.py#L171-L17...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Restrict a stimulus visibility area to a basic shape or list of vertices.\n\"\"\"\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU Gen...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"Restrict a stimulus visibility area to a basic shape or list of vertices.\n\"\"\"\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU Gen...
diff --git a/psychopy/visual/aperture.py b/psychopy/visual/aperture.py index 35b6cbb117..f8bf2ad983 100644 --- a/psychopy/visual/aperture.py +++ b/psychopy/visual/aperture.py @@ -164,7 +164,7 @@ def _reset(self): GL.glStencilFunc(GL.GL_NEVER, 0, 0) GL.glStencilOp(GL.GL_INCR, GL.GL_INCR, GL.GL_...
rotki__rotki-2543
aCRV token amount shown is double the actual amount ## Problem Definition The Aave interst bearing CRV tokens are twice the amount shown on the Aave platform or the Etherscan. I think problem started around version V1.14.1 ### System Description Operating system: macOS BigSur Rotki version: V1.15.0
[ { "content": "import logging\nimport operator\nfrom collections import defaultdict\nfrom dataclasses import dataclass, field\nfrom enum import Enum\nfrom importlib import import_module\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n DefaultDict,\n Dict,\n ...
[ { "content": "import logging\nimport operator\nfrom collections import defaultdict\nfrom dataclasses import dataclass, field\nfrom enum import Enum\nfrom importlib import import_module\nfrom pathlib import Path\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n DefaultDict,\n Dict,\n ...
diff --git a/docs/changelog.rst b/docs/changelog.rst index cac68c6314..c002484054 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,7 @@ Changelog * :feature:`2507` Users can now delete imported trades and deposit/withdrawals from crypto.com via the purge data UI. * :bug:`2530` Poloniex should no ...
ibis-project__ibis-4893
bug: S3 Absolute Paths are Not Casted as pyarrow datasets ### What happened? When trying to directly read a .parquet file in S3 I was getting a weird duckdb error...after a lot of testing I was able to determine that the `_generate_view_code.register` for full s3 paths to parquet files was not pointing to the S3 funct...
[ { "content": "\"\"\"DuckDB backend.\"\"\"\n\nfrom __future__ import annotations\n\nimport ast\nimport itertools\nimport os\nimport warnings\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, Iterator, Mapping, MutableMapping\n\nimport pyarrow as pa\nimport pyarrow.types as pat\nimport sqlalchemy ...
[ { "content": "\"\"\"DuckDB backend.\"\"\"\n\nfrom __future__ import annotations\n\nimport ast\nimport itertools\nimport os\nimport warnings\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, Iterator, Mapping, MutableMapping\n\nimport pyarrow as pa\nimport pyarrow.types as pat\nimport sqlalchemy ...
diff --git a/ibis/backends/duckdb/__init__.py b/ibis/backends/duckdb/__init__.py index cb64f89c2e3e..269b41cb6a05 100644 --- a/ibis/backends/duckdb/__init__.py +++ b/ibis/backends/duckdb/__init__.py @@ -109,7 +109,7 @@ def _parquet_file_or_url(_, path, table_name=None, **kwargs): return _parquet(f"parquet://{path}...
mesonbuild__meson-3795
Meson detects wrong framework for includes on macOS When detecting the Qt dependency, which are `.framework`s on macOS, Meson sometimes detects the wrong `.framework` and uses that instead of the real one: ``` c++ -Imodules/modules@@qt_plugin@sha -Imodules -I../VLC/modules -I. -I../VLC/ -I../VLC/include -I/Applicat...
[ { "content": "# Copyright 2013-2018 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
[ { "content": "# Copyright 2013-2018 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
diff --git a/mesonbuild/dependencies/base.py b/mesonbuild/dependencies/base.py index 151d2b9d823e..3bff0d231bc8 100644 --- a/mesonbuild/dependencies/base.py +++ b/mesonbuild/dependencies/base.py @@ -1003,7 +1003,7 @@ def detect(self, name, path): for p in paths: for d in os.listdir(p): ...
DataDog__dd-trace-py-1847
KeyError: 'split_by_domain' ``` File "/Users/viperfx/.pyenv/versions/scrumgenius-env-3.6/lib/python3.6/site-packages/requests/sessions.py", line 581, in post return self.request('POST', url, data=data, json=json, **kwargs) File "/Users/viperfx/.pyenv/versions/scrumgenius-env-3.6/lib/python3.6/site-packages/...
[ { "content": "import requests\n\nfrom ddtrace.vendor.wrapt import wrap_function_wrapper as _w\n\nfrom .connection import _wrap_send\n\n\nclass TracedSession(requests.Session):\n \"\"\"TracedSession is a requests' Session that is already traced.\n You can use it if you want a finer grained control for your...
[ { "content": "import requests\n\nfrom ddtrace.vendor.wrapt import wrap_function_wrapper as _w\n\nfrom ddtrace import config, Pin\n\nfrom .connection import _wrap_send\n\n\nclass TracedSession(requests.Session):\n \"\"\"TracedSession is a requests' Session that is already traced.\n You can use it if you wa...
diff --git a/ddtrace/contrib/requests/session.py b/ddtrace/contrib/requests/session.py index 265cbd94f09..9bbf1344702 100644 --- a/ddtrace/contrib/requests/session.py +++ b/ddtrace/contrib/requests/session.py @@ -2,6 +2,8 @@ from ddtrace.vendor.wrapt import wrap_function_wrapper as _w +from ddtrace import config, ...
great-expectations__great_expectations-1417
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "###\n# These schemas are used to ensure that we *never* take unexpected usage stats message and provide full transparency\n# about usage statistics. Please reach out to the Great Expectations with any questions!\n###\n\n\n# An anonymized string *must* be an md5 hash, so must have exactly 32 charac...
[ { "content": "###\n# These schemas are used to ensure that we *never* take unexpected usage stats message and provide full transparency\n# about usage statistics. Please reach out to the Great Expectations with any questions!\n###\n\n\n# An anonymized string *must* be an md5 hash, so must have exactly 32 charac...
diff --git a/great_expectations/core/usage_statistics/schemas.py b/great_expectations/core/usage_statistics/schemas.py index 2cfb2ad2372c..9a907432b593 100644 --- a/great_expectations/core/usage_statistics/schemas.py +++ b/great_expectations/core/usage_statistics/schemas.py @@ -515,7 +515,7 @@ ...
django-oscar__django-oscar-1914
Recommended Products have no order We can see ranking on Recommended products in Dashboard only. There are no ordering on Product detail page. Oscar master, Django 1.8
[ { "content": "import logging\nimport os\nfrom datetime import date, datetime\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.staticfiles.finders import find\nfrom django.core.ca...
[ { "content": "import logging\nimport os\nfrom datetime import date, datetime\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.fields import GenericForeignKey\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.contrib.staticfiles.finders import find\nfrom django.core.ca...
diff --git a/src/oscar/apps/catalogue/abstract_models.py b/src/oscar/apps/catalogue/abstract_models.py index 70fe043a209..3fe5b1f29ea 100644 --- a/src/oscar/apps/catalogue/abstract_models.py +++ b/src/oscar/apps/catalogue/abstract_models.py @@ -647,6 +647,12 @@ def is_review_permitted(self, user): def num_approved...
apache__airflow-22772
LocalFileSystemToGCSOperator give false positive while copying file from src to dest, even when src has no file ### Apache Airflow Provider(s) google ### Versions of Apache Airflow Providers apache-airflow-providers-google==6.4.0 ### Apache Airflow version 2.1.4 ### Operating System Debian GNU/Linux 10 (buster) ...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/providers/google/cloud/transfers/local_to_gcs.py b/airflow/providers/google/cloud/transfers/local_to_gcs.py index 4f0993763ae03..5ed84109e7e03 100644 --- a/airflow/providers/google/cloud/transfers/local_to_gcs.py +++ b/airflow/providers/google/cloud/transfers/local_to_gcs.py @@ -109,6 +109,8 @@ def...
Pycord-Development__pycord-742
discord.ext.pages.Paginator does not update current_page attribute when page is changed using Paginator.goto() ### Summary When you do paginator.goto(<pagenum>), the value of current_page still stays the same. If it is not changed manually, then it will stay as 0, which is what it starts out as when the Paginator obje...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without li...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without li...
diff --git a/discord/ext/pages/pagination.py b/discord/ext/pages/pagination.py index 8c726dcdf6..a05e857f9f 100644 --- a/discord/ext/pages/pagination.py +++ b/discord/ext/pages/pagination.py @@ -380,6 +380,12 @@ async def goto_page(self, page_number=0) -> discord.Message: The message associated with the pa...
pypa__pipenv-3585
pipenv update fails (given PIPENV_PIPFILE is not found) ### Issue description In a project where Pipfiles are not under current working directory, pipenv update fails. In contrast, pipenv sync works well (if foo already contains a Pipfile.lock file). So the problem happens when trying to create Pipfile.lock. ``...
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport fnmatch\nimport glob\nimport hashlib\nimport io\nimport json\nimport operator\nimport os\nimport re\nimport sys\n\nimport six\nimport toml\nimport tomlkit\nimport vistir\n\nfrom first import first\n\nimport pipfile\nimport pipfile.api\n\nfrom .vendor....
[ { "content": "# -*- coding: utf-8 -*-\nimport base64\nimport fnmatch\nimport glob\nimport hashlib\nimport io\nimport json\nimport operator\nimport os\nimport re\nimport sys\n\nimport six\nimport toml\nimport tomlkit\nimport vistir\n\nfrom first import first\n\nimport pipfile\nimport pipfile.api\n\nfrom .vendor....
diff --git a/news/3584.bugfix.rst b/news/3584.bugfix.rst new file mode 100644 index 0000000000..09684d1dcb --- /dev/null +++ b/news/3584.bugfix.rst @@ -0,0 +1 @@ +Fix the issue that lock file can't be created when ``PIPENV_PIPFILE`` is not under working directory. diff --git a/pipenv/project.py b/pipenv/project.py inde...
internetarchive__openlibrary-6773
Change `librarian-work-merge` usergroup to more appropriate name <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] --> ### Describe the problem that you'd like solved <!-- A clear and concise description of what you want to happen. --> Today, members of `/usergroup/lib...
[ { "content": "\"\"\"Upstream customizations.\"\"\"\n\nimport datetime\nimport hashlib\nimport io\nimport json\nimport os.path\nimport random\n\nimport web\n\nfrom infogami import config\nfrom infogami.core import code as core\nfrom infogami.infobase import client\nfrom infogami.utils import delegate, app, types...
[ { "content": "\"\"\"Upstream customizations.\"\"\"\n\nimport datetime\nimport hashlib\nimport io\nimport json\nimport os.path\nimport random\n\nimport web\n\nfrom infogami import config\nfrom infogami.core import code as core\nfrom infogami.infobase import client\nfrom infogami.utils import delegate, app, types...
diff --git a/conf/openlibrary.yml b/conf/openlibrary.yml index 363a4aef884..cacb2083226 100644 --- a/conf/openlibrary.yml +++ b/conf/openlibrary.yml @@ -65,7 +65,7 @@ features: lists: enabled merge-authors: filter: usergroup - usergroup: /usergroup/librarian-work-merge + usergroup: /use...
HypothesisWorks__hypothesis-756
Inexplicable test failures on 3.13.0+ I have a test that looks something like this: ```python @given(s.data(), fs.finapps(store)) @settings(suppress_health_check=[HealthCheck.too_slow]) def test(data, finapp): pass ``` On Hypothesis 3.12.0 this works fine. On Hypothesis 3.13.0, every example is rejected, eve...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2017 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2017 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
diff --git a/docs/changes.rst b/docs/changes.rst index 3397560760..265283eede 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -21,6 +21,17 @@ Hypothesis APIs come in three flavours: You should generally assume that an API is internal unless you have specific information to the contrary. +-------------------...
WeblateOrg__weblate-6217
Auth provider title and image override do not work for auth providers with '-' in it **Describe the issue** The new feature to override the name and image for an auth provider (introduced in 159ae591e91e7c2065ede9c39f14d743f5ab07e5) does not work for auth providers with '-' in them. <!-- A clear and concise des...
[ { "content": "#\n# Copyright © 2012 - 2021 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.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 published by\n# the Free Software Foundation,...
[ { "content": "#\n# Copyright © 2012 - 2021 Michal Čihař <michal@cihar.com>\n#\n# This file is part of Weblate <https://weblate.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 published by\n# the Free Software Foundation,...
diff --git a/weblate/accounts/templatetags/authnames.py b/weblate/accounts/templatetags/authnames.py index a3259ec278a2..b4ba31a8f93e 100644 --- a/weblate/accounts/templatetags/authnames.py +++ b/weblate/accounts/templatetags/authnames.py @@ -72,8 +72,8 @@ def get_auth_params(auth: str): # Settings override ...
liqd__a4-meinberlin-3564
moderators for b-plans if an initiator starts a b-plan via meinBerlin (as e.g. SenWohn does, they don't have imperia) or an external project he/she is automatically added as moderator and gets mails as the one below. This is confusing because: a) you don't see moderators in dashboard b) you can't follow a b-plan/exte...
[ { "content": "from django.contrib.auth import get_user_model\nfrom django.db.models import signals\nfrom django.dispatch import receiver\n\nfrom adhocracy4.actions.models import Action\nfrom adhocracy4.actions.verbs import Verbs\nfrom adhocracy4.dashboard import signals as dashboard_signals\nfrom adhocracy4.fol...
[ { "content": "from django.contrib.auth import get_user_model\nfrom django.db.models import signals\nfrom django.dispatch import receiver\n\nfrom adhocracy4.actions.models import Action\nfrom adhocracy4.actions.verbs import Verbs\nfrom adhocracy4.dashboard import signals as dashboard_signals\nfrom adhocracy4.fol...
diff --git a/meinberlin/apps/notifications/signals.py b/meinberlin/apps/notifications/signals.py index 3a0afbcfb4..41878e332b 100644 --- a/meinberlin/apps/notifications/signals.py +++ b/meinberlin/apps/notifications/signals.py @@ -25,7 +25,8 @@ def send_notifications(instance, created, **kwargs): if action.pro...
statsmodels__statsmodels-970
lowes test failure Ubuntu https://launchpadlibrarian.net/144807626/buildlog_ubuntu-raring-amd64.statsmodels_0.5.0~ppa17~revno-1430~raring1_UPLOADING.txt.gz ``` ====================================================================== ERROR: statsmodels.nonparametric.tests.test_lowess.TestLowess.test_options -------------...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Lowess - wrapper for cythonized extension\n\nAuthor : Chris Jordan-Squire\nAuthor : Carl Vogel\nAuthor : Josef Perktold\n\n\"\"\"\n\nimport numpy as np\nfrom ._smoothers_lowess import lowess as _lowess\n\ndef lowess(endog, exog, frac=2.0/3.0, it=3, delta=0.0, is_sort...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Lowess - wrapper for cythonized extension\n\nAuthor : Chris Jordan-Squire\nAuthor : Carl Vogel\nAuthor : Josef Perktold\n\n\"\"\"\n\nimport numpy as np\nfrom ._smoothers_lowess import lowess as _lowess\n\ndef lowess(endog, exog, frac=2.0/3.0, it=3, delta=0.0, is_sort...
diff --git a/statsmodels/nonparametric/smoothers_lowess.py b/statsmodels/nonparametric/smoothers_lowess.py index b47aeedaa61..231ba900ad8 100644 --- a/statsmodels/nonparametric/smoothers_lowess.py +++ b/statsmodels/nonparametric/smoothers_lowess.py @@ -171,7 +171,7 @@ def lowess(endog, exog, frac=2.0/3.0, it=3, delta=0...
engnadeau__pybotics-18
Update examples Examples are now out of sync with current codebase. Potential use for iPython?
[ { "content": "import copy\n\nimport pybotics as py\nimport numpy as np\n\n# set numpy print options\nnp.set_printoptions(precision=3)\nnp.set_printoptions(suppress=True)\n\n# create robot\nmodel = np.loadtxt('ur10-mdh.csv', delimiter=',')\nrobot = py.Robot(model)\n\nprint('Robot Model:\\n{}\\n'.format(robot.rob...
[ { "content": null, "path": "examples/example_robot.py" } ]
diff --git a/README.md b/README.md index 1748601e..a9797a9a 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ Python Toolbox for Robotics ## Usage See [examples](examples) for usage examples. +- [Kinematics](examples/example_kinematics.ipynb) + ## Contributing 1. Fork it! 2. Create your feature branch dif...
akvo__akvo-rsr-3988
Add result type to /project/:id/results/ We want to display whether the result is an Outcome, Impact, etc...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nfr...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nfr...
diff --git a/akvo/rest/views/project_overview.py b/akvo/rest/views/project_overview.py index 981d3c320f..d6d9f548aa 100644 --- a/akvo/rest/views/project_overview.py +++ b/akvo/rest/views/project_overview.py @@ -27,7 +27,12 @@ def project_results(request, pk): 'id': project.id, 'title': project.title, ...
piskvorky__gensim-2106
Turn off support of Google Style docstrings **All docstrings should be refactored first** To prevent contributors from using Google Style docstrings, we need to set `napoleon_google_docstring = False`, [like explained here](https://samnicholls.net/2016/06/15/how-to-sphinx-readthedocs/).
[ { "content": "# -*- coding: utf-8 -*-\n#\n# gensim documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 17 13:42:21 2010.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# gensim documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 17 13:42:21 2010.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n...
diff --git a/docs/src/conf.py b/docs/src/conf.py index 31d512262c..71eb9a9014 100644 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -28,6 +28,8 @@ extensions = ['sphinx.ext.autodoc', 'sphinxcontrib.napoleon', 'sphinx.ext.imgmath', 'sphinxcontrib.programoutput'] autoclass_content = "both" +napoleon_google_docstrin...
searx__searx-1800
[flickr_noapi] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128) Similar to #419 Installation: current master commit How to reproduce? Search for "kek" on https://search.snopyta.org/ and click on "Images" ``` ERROR:flask.app:Exception on / [POST] Traceback (most ...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\n Flickr (Images)\n\n @website https://www.flickr.com\n @provide-api yes (https://secure.flickr.com/services/api/flickr.photos.search.html)\n\n @using-api no\n @results HTML\n @stable no\n @parse url, title, thumbnail, img_src\n\"\"\"\n\nfrom j...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"\n Flickr (Images)\n\n @website https://www.flickr.com\n @provide-api yes (https://secure.flickr.com/services/api/flickr.photos.search.html)\n\n @using-api no\n @results HTML\n @stable no\n @parse url, title, thumbnail, img_src\n\"\"\"\n\nfrom j...
diff --git a/searx/engines/flickr_noapi.py b/searx/engines/flickr_noapi.py index e1abb378fa..c8ee34f7a5 100644 --- a/searx/engines/flickr_noapi.py +++ b/searx/engines/flickr_noapi.py @@ -118,9 +118,9 @@ def response(resp): 'template': 'images.html' } try: - result['author'] = a...
hylang__hy-2554
An exemplar Hy program When you have a new programming language, it really helps—for the purposes of advertising the language, of helping people learn how to use it, and of giving the language a broader and more practical test than unit tests—to have some kind of nontrivial program written in the language. I think I sp...
[ { "content": "#!/usr/bin/env python\n\n# Set both `setup_requires` and `install_requires` with our\n# dependencies, since we need to compile Hy files during setup. And\n# put this as the first statement in the file so it's easy to parse\n# out without executing the file.\nrequires = [\n \"funcparserlib ~= 1....
[ { "content": "#!/usr/bin/env python\n\n# Set both `setup_requires` and `install_requires` with our\n# dependencies, since we need to compile Hy files during setup. And\n# put this as the first statement in the file so it's easy to parse\n# out without executing the file.\nrequires = [\n \"funcparserlib ~= 1....
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f1b2a7008..a2c32dec8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,17 +31,17 @@ jobs: steps: - run: git config --global core.autocrlf false - - uses: actions/checkout@v3 + - uses: actions/c...
certbot__certbot-782
Failed Apache Parsing From the community forums Hi all, I'm trying to get some certificates using the Let's Encrypt client for two domains on my Linux web server. The web server is Apache 2.4 under Debian 8 on a VPS. I've had the VPS for quite a long time - the initial install was in 2003 - and it's been upgraded thr...
[ { "content": "\"\"\"ApacheParser is a member object of the ApacheConfigurator class.\"\"\"\nimport fnmatch\nimport itertools\nimport logging\nimport os\nimport re\nimport subprocess\n\nfrom letsencrypt import errors\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass ApacheParser(object):\n \"\"\"Class hand...
[ { "content": "\"\"\"ApacheParser is a member object of the ApacheConfigurator class.\"\"\"\nimport fnmatch\nimport itertools\nimport logging\nimport os\nimport re\nimport subprocess\n\nfrom letsencrypt import errors\n\n\nlogger = logging.getLogger(__name__)\n\n\nclass ApacheParser(object):\n \"\"\"Class hand...
diff --git a/letsencrypt-apache/letsencrypt_apache/parser.py b/letsencrypt-apache/letsencrypt_apache/parser.py index d7dc3c42254..823d9794bec 100644 --- a/letsencrypt-apache/letsencrypt_apache/parser.py +++ b/letsencrypt-apache/letsencrypt_apache/parser.py @@ -394,6 +394,8 @@ def _get_include_path(self, arg): ...
flairNLP__flair-1566
ModelTrainer's training on SequenceTagger raises an `AssertionError: ` **Describe the bug** I am unable to Train a `SequenceTagger` model using the `ModelTrainer` API. This was upon my attempt to train a NER Tagger. The `AssertionError` is raised after the completion of the first epoch. **To Reproduce** The format...
[ { "content": "import logging\nfrom pathlib import Path\nfrom typing import List, Union, Optional, Callable, Dict\n\nimport numpy as np\nimport torch\nimport torch.nn\nimport torch.nn.functional as F\nfrom tabulate import tabulate\nfrom torch.nn.parameter import Parameter\nfrom torch.utils.data import DataLoader...
[ { "content": "import logging\nfrom pathlib import Path\nfrom typing import List, Union, Optional, Callable, Dict\n\nimport numpy as np\nimport torch\nimport torch.nn\nimport torch.nn.functional as F\nfrom tabulate import tabulate\nfrom torch.nn.parameter import Parameter\nfrom torch.utils.data import DataLoader...
diff --git a/flair/models/sequence_tagger_model.py b/flair/models/sequence_tagger_model.py index 8a4e0abcf9..7ca8ddae1d 100644 --- a/flair/models/sequence_tagger_model.py +++ b/flair/models/sequence_tagger_model.py @@ -112,6 +112,11 @@ def __init__( # set the dictionaries self.tag_dictionary: Dictio...
lightly-ai__lightly-216
Make transform settable in Lightly Dataset Currently if one has created a Lightly Dataset and wants to apply transforms at a later stage, we have to do it as follows: ``` dataset = data.LightlyDataset(root="./", name='CIFAR10', download=True) ... use dataset to train SimCLR model for example ... test_transforms ...
[ { "content": "\"\"\" Lightly Dataset \"\"\"\n\n# Copyright (c) 2020. Lightly AG and its affiliates.\n# All Rights Reserved\n\nimport os\nimport shutil\nfrom PIL import Image\nfrom typing import List, Union\n\nimport torch.utils.data as data\nimport torchvision.datasets as datasets\n\nfrom lightly.data._helpers ...
[ { "content": "\"\"\" Lightly Dataset \"\"\"\n\n# Copyright (c) 2020. Lightly AG and its affiliates.\n# All Rights Reserved\n\nimport os\nimport shutil\nfrom PIL import Image\nfrom typing import List, Union\n\nimport torch.utils.data as data\nimport torchvision.datasets as datasets\n\nfrom lightly.data._helpers ...
diff --git a/lightly/data/dataset.py b/lightly/data/dataset.py index 4f29dfa74..c07c7b05a 100644 --- a/lightly/data/dataset.py +++ b/lightly/data/dataset.py @@ -248,3 +248,17 @@ def dump(self, # dump images for i, filename in zip(indices, filenames): _dump_image(self.dataset, output_dir, ...
litestar-org__litestar-3476
Bug: OpenAPI docs fail to generate with certain validators and pydantic v1 ### Description OpenAPI docs fail to generate when a request payload is a pydantic v1 model and has a str field with a validator combination of a default(or default_factory) and max_length. Removing any of the validators resolves the issue; i...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Optional\n\nfrom typing_extensions import Annotated\n\nfrom litestar.contrib.pydantic.utils import (\n create_field_definitions_for_computed_fields,\n is_pydantic_2_model,\n is_pydantic_constrained_field,\n is...
[ { "content": "from __future__ import annotations\n\nfrom typing import TYPE_CHECKING, Any, Optional\n\nfrom typing_extensions import Annotated\n\nfrom litestar.contrib.pydantic.utils import (\n create_field_definitions_for_computed_fields,\n is_pydantic_2_model,\n is_pydantic_constrained_field,\n is...
diff --git a/litestar/contrib/pydantic/pydantic_schema_plugin.py b/litestar/contrib/pydantic/pydantic_schema_plugin.py index 5d7045e4f7..2eda65f2fc 100644 --- a/litestar/contrib/pydantic/pydantic_schema_plugin.py +++ b/litestar/contrib/pydantic/pydantic_schema_plugin.py @@ -286,7 +286,8 @@ def for_pydantic_model(cls, f...
ansible__ansible-lint-303
False Positive ANSIBLE0014 does not allow command:args:stdin # Issue Type - Bug report # Ansible and Ansible Lint details ``` ansible --version ansible 2.4.0.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'$HOME/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']...
[ { "content": "# Copyright (c) 2016 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights...
[ { "content": "# Copyright (c) 2016 Will Thames <will@thames.id.au>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights...
diff --git a/lib/ansiblelint/rules/EnvVarsInCommandRule.py b/lib/ansiblelint/rules/EnvVarsInCommandRule.py index ef36eeb063..c2c7a780a8 100644 --- a/lib/ansiblelint/rules/EnvVarsInCommandRule.py +++ b/lib/ansiblelint/rules/EnvVarsInCommandRule.py @@ -29,7 +29,7 @@ class EnvVarsInCommandRule(AnsibleLintRule): ...
flairNLP__flair-84
ValueError when input has double spaces and flair does not use tokenizer I found that flair will crash when using Sentence() with use_tokenizer=False (its default value) and the sentence string has a double-space, which causes an empty token and the following error on PyTorch: (To reproduce the following, I changed ...
[ { "content": "from typing import List, Dict\n\nimport torch\n\nfrom collections import Counter\nfrom collections import defaultdict\n\nfrom segtok.segmenter import split_single\nfrom segtok.tokenizer import split_contractions\nfrom segtok.tokenizer import word_tokenizer\n\n\nclass Dictionary:\n \"\"\"\n T...
[ { "content": "from typing import List, Dict\n\nimport torch\n\nfrom collections import Counter\nfrom collections import defaultdict\n\nfrom segtok.segmenter import split_single\nfrom segtok.tokenizer import split_contractions\nfrom segtok.tokenizer import word_tokenizer\n\n\nclass Dictionary:\n \"\"\"\n T...
diff --git a/flair/data.py b/flair/data.py index f02825f7a9..ad2afa54ad 100644 --- a/flair/data.py +++ b/flair/data.py @@ -236,8 +236,9 @@ def __init__(self, text: str = None, use_tokenizer: bool = False, labels: List[L else: # add each word in tokenized string as Token object to Sentence ...
fedora-infra__bodhi-2990
The search bar does not work in staging I have so far been unable to reproduce the problem in the development environment, but I am unable to get the search bar to work in staging. It seems that the code in ```bodhi/server/static/js/search.js``` does not get executed on page load, but I do not know why yet.
[ { "content": "# Copyright © 2013-2019 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License...
[ { "content": "# Copyright © 2013-2019 Red Hat, Inc. and others.\n#\n# This file is part of Bodhi.\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License...
diff --git a/bodhi/server/config.py b/bodhi/server/config.py index 967e8d6e83..c9f93b1180 100644 --- a/bodhi/server/config.py +++ b/bodhi/server/config.py @@ -428,6 +428,9 @@ class BodhiConfig(dict): 'fedmsg_enabled': { 'value': False, 'validator': _validate_bool}, + 'fedmsg_ga...
netbox-community__netbox-9018
Filtering for child devices by parent device ### NetBox version v3.1.5 ### Feature type Change to existing functionality ### Proposed functionality I think a query option to identify all child devices of a parent device would be a good enhancement. For example to find all blade server associated with an enclosure ...
[ { "content": "import django_filters\nfrom django.contrib.auth.models import User\n\nfrom extras.filters import TagFilter\nfrom extras.filtersets import LocalConfigContextFilterSet\nfrom ipam.models import ASN\nfrom netbox.filtersets import (\n BaseFilterSet, ChangeLoggedModelFilterSet, OrganizationalModelFil...
[ { "content": "import django_filters\nfrom django.contrib.auth.models import User\n\nfrom extras.filters import TagFilter\nfrom extras.filtersets import LocalConfigContextFilterSet\nfrom ipam.models import ASN\nfrom netbox.filtersets import (\n BaseFilterSet, ChangeLoggedModelFilterSet, OrganizationalModelFil...
diff --git a/netbox/dcim/filtersets.py b/netbox/dcim/filtersets.py index 504ad69ca6f..534a7176282 100644 --- a/netbox/dcim/filtersets.py +++ b/netbox/dcim/filtersets.py @@ -639,6 +639,11 @@ class DeviceFilterSet(PrimaryModelFilterSet, TenancyFilterSet, ContactModelFilte to_field_name='slug', label='Ro...
microsoft__ptvsd-641
Errors logged on VSTS ``` 2018-07-05T19:13:17.5780150Z .Traceback (most recent call last): 2018-07-05T19:13:17.5795340Z File "/Users/vsts/agent/2.134.2/work/1/s/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py", line 749, in process_net_command 2018-07-05T19:13:17.5813150Z py_db.enable_outp...
[ { "content": "from _pydevd_bundle import pydevd_constants\n\nIS_PY3K = pydevd_constants.IS_PY3K\n\nclass IORedirector:\n '''\n This class works to wrap a stream (stdout/stderr) with an additional redirect.\n '''\n\n def __init__(self, original, new_redirect, wrap_buffer=False):\n '''\n ...
[ { "content": "from _pydevd_bundle import pydevd_constants\n\nIS_PY3K = pydevd_constants.IS_PY3K\n\nclass IORedirector:\n '''\n This class works to wrap a stream (stdout/stderr) with an additional redirect.\n '''\n\n def __init__(self, original, new_redirect, wrap_buffer=False):\n '''\n ...
diff --git a/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_io.py b/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_io.py index 9a6ddf3c4..8e4859a9f 100644 --- a/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_io.py +++ b/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_io.py @@ -20,7 +20,7 @@ def __init__(self, original, new_redi...
secdev__scapy-3198
100% CPU load with Pipetools on 2.4.5 #### Brief description While sniffing for probe requests on a wireless interface on a Raspberry Pi 4 Model B Rev 1.4, one CPU core is constantly 100% busy. #### Environment - Scapy version: 2.4.5 / master branch - Python version: 3.7.3 - Operating System: Raspbian ...
[ { "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\nfrom __future__ import print_function\nimport os\nimport subprocess\nimport time\nimport scapy.modu...
[ { "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\nfrom __future__ import print_function\nimport os\nimport subprocess\nimport time\nimport scapy.modu...
diff --git a/scapy/pipetool.py b/scapy/pipetool.py index aa49c46ff72..89fe7bae03e 100644 --- a/scapy/pipetool.py +++ b/scapy/pipetool.py @@ -108,7 +108,7 @@ def run(self): RUN = True STOP_IF_EXHAUSTED = False while RUN and (not STOP_IF_EXHAUSTED or len(sources) > 1): - ...
searxng__searxng-83
Bug: engine "archive is" reports HTTP 404 / Not found **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG** 1970d28a **Technical report** Error * Error: httpx.HTTPStatusError * Percentage: 100 * Parameters: `('404', 'Not Found', 'archive.is')` *...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\nfrom lxml import html\nfrom urllib.parse import urlencode\nfrom searx.utils import extract_text, extract_url, eval_xpath, eval_xpath_list\n\nsearch_url = None\nurl_xpath = None\ncontent_xpath = None\ntitle_xpath = None\nthumbnail_xpath = False\npagin...
[ { "content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\nfrom lxml import html\nfrom urllib.parse import urlencode\nfrom searx.utils import extract_text, extract_url, eval_xpath, eval_xpath_list\n\nsearch_url = None\nurl_xpath = None\ncontent_xpath = None\ntitle_xpath = None\nthumbnail_xpath = False\npagin...
diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py index 612f69abd4b..b215c2ba1ec 100644 --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -14,6 +14,7 @@ results_xpath = '' cached_xpath = '' cached_url = '' +soft_max_redirects = 0 # parameters for engines with paging support # @@ -33,6 +34,7...
google__turbinia-809
GrepTask issue ``` 2021-04-28 17:13:25 [ERROR] GrepTask Task failed with exception: [a bytes-like object is required, not 'str'] 2021-04-28 17:13:25 [ERROR] Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/turbinia-20210330-py3.6.egg/turbinia/workers/__init__.py", line 893, in run_wr...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U...
diff --git a/turbinia/workers/grep.py b/turbinia/workers/grep.py index dace82dd2..43e2bf025 100644 --- a/turbinia/workers/grep.py +++ b/turbinia/workers/grep.py @@ -46,7 +46,7 @@ def run(self, evidence, result): # Used as input to grep (-f). with NamedTemporaryFile(dir=self.output_dir, delete=False) as fh: ...
psychopy__psychopy-1937
MovieStim3 do not stop playing the audio when stop() is called ## Problem MovieStim3 do not stop playing the audio stream though stop is called. I'm not sure if the problem was caused by large video files (the used file was 215 MB) or the music followed. ## Example code to reproduce issue - [Download the use...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nA stimulus class for playing movies (mp4, divx, avi etc...) in PsychoPy.\nDemo using the experimental movie3 stim to play a video file. Path of video\nneeds to updated to point to a video you have. movie2 does /not/ require\navbin to be ins...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nA stimulus class for playing movies (mp4, divx, avi etc...) in PsychoPy.\nDemo using the experimental movie3 stim to play a video file. Path of video\nneeds to updated to point to a video you have. movie2 does /not/ require\navbin to be ins...
diff --git a/psychopy/visual/movie3.py b/psychopy/visual/movie3.py index d04a14b997..d63b52da0d 100644 --- a/psychopy/visual/movie3.py +++ b/psychopy/visual/movie3.py @@ -472,9 +472,12 @@ def _unload(self): self.clearTextures() except Exception: pass - self._mov.close() + ...
e-valuation__EvaP-1360
Remove AtLeastOne contributor constraint We have a constraint that every evaluation must have at least one contributor. This was useful to define at least one person with access to the results. Now, evaluations belong to courses which must have at least one responsible. This responsible can access the results also whe...
[ { "content": "import logging\n\nfrom django import forms\nfrom django.contrib.auth.models import Group\nfrom django.core.exceptions import SuspiciousOperation, ValidationError\nfrom django.db.models import Q, Max\nfrom django.forms.models import BaseInlineFormSet\nfrom django.forms.widgets import CheckboxSelect...
[ { "content": "import logging\n\nfrom django import forms\nfrom django.contrib.auth.models import Group\nfrom django.core.exceptions import SuspiciousOperation, ValidationError\nfrom django.db.models import Q, Max\nfrom django.forms.models import BaseInlineFormSet\nfrom django.forms.widgets import CheckboxSelect...
diff --git a/evap/staff/forms.py b/evap/staff/forms.py index 7f5c883682..5922503f13 100644 --- a/evap/staff/forms.py +++ b/evap/staff/forms.py @@ -511,7 +511,7 @@ def clean(self): raise forms.ValidationError(_('You must have at least one of these.')) -class ContributionFormSet(AtLeastOneFormSet): +clas...
qtile__qtile-180
using Qtile.cmd_{info, debug} doesn't switch logging level It seems that critical, warning, and error do all work, though.
[ { "content": "import logging\nimport os\nimport sys\nfrom logging import getLogger, StreamHandler\n\n\nclass ColorFormatter(logging.Formatter):\n \"\"\"Logging formatter adding console colors to the output.\n \"\"\"\n black, red, green, yellow, blue, magenta, cyan, white = range(8)\n colors = {\n ...
[ { "content": "import logging\nimport os\nimport sys\nfrom logging import getLogger, StreamHandler\n\n\nclass ColorFormatter(logging.Formatter):\n \"\"\"Logging formatter adding console colors to the output.\n \"\"\"\n black, red, green, yellow, blue, magenta, cyan, white = range(8)\n colors = {\n ...
diff --git a/libqtile/log_utils.py b/libqtile/log_utils.py index e633801b95..4f906fddbb 100644 --- a/libqtile/log_utils.py +++ b/libqtile/log_utils.py @@ -43,7 +43,6 @@ def format(self, record): def init_log(log_level=logging.WARNING, logger='qtile'): handler = logging.FileHandler( os.path.expanduser('~/...
feast-dev__feast-3217
Unable to apply parquet dataset from s3 ## Expected Behavior We point our file source to a parquet dataset: ```python file_source = FileSource( name="dummy_file_source", path="s3://data/dummy/"), timestamp_field="event_timestamp", created_timestamp_column="created", file_format=ParquetForma...
[ { "content": "from typing import Callable, Dict, Iterable, List, Optional, Tuple\n\nfrom pyarrow._fs import FileSystem\nfrom pyarrow._s3fs import S3FileSystem\nfrom pyarrow.parquet import ParquetDataset\nfrom typeguard import typechecked\n\nfrom feast import type_map\nfrom feast.data_format import FileFormat, P...
[ { "content": "from typing import Callable, Dict, Iterable, List, Optional, Tuple\n\nfrom pyarrow._fs import FileSystem\nfrom pyarrow._s3fs import S3FileSystem\nfrom pyarrow.parquet import ParquetDataset\nfrom typeguard import typechecked\n\nfrom feast import type_map\nfrom feast.data_format import FileFormat, P...
diff --git a/sdk/python/feast/infra/offline_stores/file_source.py b/sdk/python/feast/infra/offline_stores/file_source.py index 135409ed04a..81a83c22457 100644 --- a/sdk/python/feast/infra/offline_stores/file_source.py +++ b/sdk/python/feast/infra/offline_stores/file_source.py @@ -160,9 +160,7 @@ def get_table_column_na...
celery__celery-8312
Why has the CLI worker command flag `optimizations` changed from `--optimizations` in 5.*? This question is referencing this code: https://github.com/celery/celery/blob/3b1c768c39f641a70d3086bd5a1079a421f94344/celery/bin/worker.py#L169 ``` @click.option('optimization', '-O', default='...
[ { "content": "\"\"\"Program used to start a Celery worker instance.\"\"\"\n\nimport os\nimport sys\n\nimport click\nfrom click import ParamType\nfrom click.types import StringParamType\n\nfrom celery import concurrency\nfrom celery.bin.base import (COMMA_SEPARATED_LIST, LOG_LEVEL, CeleryDaemonCommand, CeleryOpt...
[ { "content": "\"\"\"Program used to start a Celery worker instance.\"\"\"\n\nimport os\nimport sys\n\nimport click\nfrom click import ParamType\nfrom click.types import StringParamType\n\nfrom celery import concurrency\nfrom celery.bin.base import (COMMA_SEPARATED_LIST, LOG_LEVEL, CeleryDaemonCommand, CeleryOpt...
diff --git a/celery/bin/worker.py b/celery/bin/worker.py index 9dd1582030e..0cc3d6664cc 100644 --- a/celery/bin/worker.py +++ b/celery/bin/worker.py @@ -166,8 +166,8 @@ def detach(path, argv, logfile=None, pidfile=None, uid=None, type=LOG_LEVEL, help_group="Worker Options", ...
netbox-community__netbox-1656
Further explicit field references found <!-- Before opening a new issue, please search through the existing issues to see if your topic has already been addressed. Note that you may need to remove the "is:open" filter from the search bar to include closed issues. Check the appropriate type for you...
[ { "content": "from __future__ import unicode_literals\nimport os\n\nfrom Crypto.Cipher import AES, PKCS1_OAEP\nfrom Crypto.PublicKey import RSA\nfrom Crypto.Util import strxor\n\nfrom django.conf import settings\nfrom django.contrib.auth.hashers import make_password, check_password\nfrom django.contrib.auth.mod...
[ { "content": "from __future__ import unicode_literals\nimport os\n\nfrom Crypto.Cipher import AES, PKCS1_OAEP\nfrom Crypto.PublicKey import RSA\nfrom Crypto.Util import strxor\n\nfrom django.conf import settings\nfrom django.contrib.auth.hashers import make_password, check_password\nfrom django.contrib.auth.mod...
diff --git a/netbox/secrets/models.py b/netbox/secrets/models.py index ded93ed58ca..317fe0dd5ad 100644 --- a/netbox/secrets/models.py +++ b/netbox/secrets/models.py @@ -286,6 +286,9 @@ def __init__(self, *args, **kwargs): super(Secret, self).__init__(*args, **kwargs) def __str__(self): + if self....
cloud-custodian__cloud-custodian-3627
Guard-duty filter is not returning master information Version = 0.8.42.0 Issue = When using the following guardduty filter it for a member account it is not returning the master account information. ``` filters: - type: guard-duty Detector.Status: ENABLED Master.AccountId: "xxx" ...
[ { "content": "# Copyright 2016-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi...
[ { "content": "# Copyright 2016-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi...
diff --git a/c7n/resources/account.py b/c7n/resources/account.py index 293c4783774..721fccd7eb1 100644 --- a/c7n/resources/account.py +++ b/c7n/resources/account.py @@ -236,7 +236,7 @@ def get_target(self, resource): detector = client.get_detector(DetectorId=detector_id) detector.pop('ResponseMetada...
localstack__localstack-3683
EventBridge PutEvents not working when Detail is missing # Type of request: This is a ... [X ] bug report [ ] feature request # Detailed description Calling PutEvents operation returns 500 if no `Detail` is specified. This case is similar to #3043 ## Expected behavior According to the doc https://docs.aws.a...
[ { "content": "import re\nimport datetime\nimport json\nimport uuid\nimport logging\nimport ipaddress\nfrom moto.events.models import Rule as rule_model\nfrom moto.events.responses import EventsHandler as events_handler\nfrom localstack import config\nfrom localstack.constants import APPLICATION_AMZ_JSON_1_1, TE...
[ { "content": "import re\nimport datetime\nimport json\nimport uuid\nimport logging\nimport ipaddress\nfrom moto.events.models import Rule as rule_model\nfrom moto.events.responses import EventsHandler as events_handler\nfrom localstack import config\nfrom localstack.constants import APPLICATION_AMZ_JSON_1_1, TE...
diff --git a/localstack/services/events/events_starter.py b/localstack/services/events/events_starter.py index 4aa5ce3ce3ced..d8c4b8c72453d 100644 --- a/localstack/services/events/events_starter.py +++ b/localstack/services/events/events_starter.py @@ -155,7 +155,7 @@ def events_handler_put_events(self): ...
Gallopsled__pwntools-2374
Only download debug symbols if ELF does not contain them already Currently the `libcdb.unstrip_libc` function always looks for debug symbols online and tries to merge them into the libc. This is unnecessary and adding some `ELF.debuginfo` property to know if an ELF contains debug info would help.
[ { "content": "\"\"\"\nFetch a LIBC binary based on some heuristics.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\n\nimport os\nimport time\nimport six\nimport tempfile\n\nfrom pwnlib.context import context\nfrom pwnlib.elf import ELF\nfrom pwnlib.filesystem.path import Path\n...
[ { "content": "\"\"\"\nFetch a LIBC binary based on some heuristics.\n\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\n\nimport os\nimport time\nimport six\nimport tempfile\n\nfrom pwnlib.context import context\nfrom pwnlib.elf import ELF\nfrom pwnlib.filesystem.path import Path\n...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e253c3cf3..2bd84bd4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,8 +72,10 @@ The table below shows which release corresponds to each branch, and what date th ## 4.14.0 (`dev`) - [#2356][2356] Add local libc database provider for libcdb +- [#2374][2374] libcdb.u...
ivy-llc__ivy-21352
softsign
[ { "content": "# global\nimport ivy\nfrom ivy import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.tensorflow import check_tensorflow_casting\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_a...
[ { "content": "# global\nimport ivy\nfrom ivy import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.tensorflow import check_tensorflow_casting\nfrom ivy.functional.frontends.tensorflow.func_wrapper import (\n to_ivy_arrays_a...
diff --git a/ivy/functional/frontends/tensorflow/math.py b/ivy/functional/frontends/tensorflow/math.py index f9c10585d7a5b..050d91b8b203a 100644 --- a/ivy/functional/frontends/tensorflow/math.py +++ b/ivy/functional/frontends/tensorflow/math.py @@ -791,3 +791,11 @@ def l2_normalize(x, axis=None, epsilon=1e-12, name=Non...
liberapay__liberapay.com-2085
Commas with Conditional Sentences I've seen a bunch of sentences that don't have a comma after the dependent clause (`if`); they should. See: - https://www.ego4u.com/en/cram-up/writing/comma?10 - https://www.grammarly.com/blog/conditional-sentences/ - https://english.stackexchange.com/questions/6786/comma-in-condi...
[ { "content": "from dependency_injection import resolve_dependencies\nfrom pando import Response\n\nfrom .constants import PASSWORD_MIN_SIZE, PASSWORD_MAX_SIZE\n\n\nclass NextAction(Exception):\n def __init__(self, intent):\n self.__dict__.update(intent.next_action)\n self.client_secret = intent...
[ { "content": "from dependency_injection import resolve_dependencies\nfrom pando import Response\n\nfrom .constants import PASSWORD_MIN_SIZE, PASSWORD_MAX_SIZE\n\n\nclass NextAction(Exception):\n def __init__(self, intent):\n self.__dict__.update(intent.next_action)\n self.client_secret = intent...
diff --git a/emails/once/mangopay-exodus.spt b/emails/once/mangopay-exodus.spt index adf29f3710..0d8afb58c7 100644 --- a/emails/once/mangopay-exodus.spt +++ b/emails/once/mangopay-exodus.spt @@ -10,11 +10,11 @@ If you use Liberapay as a donor the first choice is recommended, especially if y For example, if you’re do...
Cog-Creators__Red-DiscordBot-4588
Modlog API raises when trying to get a case if bot can't read message history in modlog channel # Other bugs #### What were you trying to do? Get a case with `[p]case` command. #### What were you expecting to happen? Get a case. #### What actually happened? I got an error: ```py Exception in command...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport logging\nfrom datetime import datetime, timedelta, timezone\nfrom typing import List, Literal, Union, Optional, cast, TYPE_CHECKING\n\nimport discord\n\nfrom redbot.core import Config\nfrom .utils import AsyncIter\nfrom .utils.common_fil...
[ { "content": "from __future__ import annotations\n\nimport asyncio\nimport logging\nfrom datetime import datetime, timedelta, timezone\nfrom typing import List, Literal, Union, Optional, cast, TYPE_CHECKING\n\nimport discord\n\nfrom redbot.core import Config\nfrom .utils import AsyncIter\nfrom .utils.common_fil...
diff --git a/redbot/core/modlog.py b/redbot/core/modlog.py index 6f35362add0..51fdf85950b 100644 --- a/redbot/core/modlog.py +++ b/redbot/core/modlog.py @@ -554,7 +554,7 @@ async def from_json( if message is None: try: message = await mod_channel.fetch_mess...
ipython__ipython-10316
Autoreload Enum Error I'm getting a weird error when trying to use autoreload and Enums. I have an Enum class defined in a file as: ```python class MyEnum(Enum): A = 'A' B = 'B' ``` Using `%autoreload 2`, if I try to add `C = 'C'` to `MyEnum`, or remove an existing definition, I get the following error: ...
[ { "content": "\"\"\"IPython extension to reload modules before executing user code.\n\n``autoreload`` reloads modules automatically before entering the execution of\ncode typed at the IPython prompt.\n\nThis makes for example the following workflow possible:\n\n.. sourcecode:: ipython\n\n In [1]: %load_ext au...
[ { "content": "\"\"\"IPython extension to reload modules before executing user code.\n\n``autoreload`` reloads modules automatically before entering the execution of\ncode typed at the IPython prompt.\n\nThis makes for example the following workflow possible:\n\n.. sourcecode:: ipython\n\n In [1]: %load_ext au...
diff --git a/IPython/extensions/autoreload.py b/IPython/extensions/autoreload.py index 517c1f19a83..4dfc3b929d9 100644 --- a/IPython/extensions/autoreload.py +++ b/IPython/extensions/autoreload.py @@ -278,9 +278,10 @@ def update_class(old, new): method code objects""" for key in list(old.__dict__.keys()): ...
spotify__luigi-1064
Handle UnicodeDecodeError on write to Postgres. Unfortunately, I don't have a good automated test to show this, but the following simple example returns a UnicodeDecodeError with the current `postgres.py` in master when it attempts to write the third row (or any text with extended Unicode characters). ``` #coding: utf...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\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#...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2012-2015 Spotify AB\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#...
diff --git a/luigi/postgres.py b/luigi/postgres.py index 97571058f5..f745707cda 100644 --- a/luigi/postgres.py +++ b/luigi/postgres.py @@ -256,12 +256,8 @@ def map_column(self, value): """ if value in self.null_values: return r'\N' - elif six.PY3: - return default_escape...
encode__starlette-33
Error serving static files larger than 4096 bytes Static files larger than 4096 bytes do not appear to be served correctly. Here's a test I just wrote that illustrates the problem: https://github.com/simonw/starlette/commit/e2d6665fa5c32e77a3fe22836b14620a7f5999bb Running that test gives me the following output: ...
[ { "content": "from aiofiles.os import stat as aio_stat\nfrom email.utils import formatdate\nfrom mimetypes import guess_type\nfrom starlette.datastructures import MutableHeaders\nfrom starlette.types import Receive, Send\nimport aiofiles\nimport json\nimport hashlib\nimport os\nimport stat\nimport typing\n\n\nc...
[ { "content": "from aiofiles.os import stat as aio_stat\nfrom email.utils import formatdate\nfrom mimetypes import guess_type\nfrom starlette.datastructures import MutableHeaders\nfrom starlette.types import Receive, Send\nimport aiofiles\nimport json\nimport hashlib\nimport os\nimport stat\nimport typing\n\n\nc...
diff --git a/starlette/response.py b/starlette/response.py index db5bac8cb..f189ef31d 100644 --- a/starlette/response.py +++ b/starlette/response.py @@ -177,5 +177,9 @@ async def __call__(self, receive: Receive, send: Send) -> None: chunk = await file.read(self.chunk_size) more_body = ...
encode__django-rest-framework-7217
ViewSet extra action detection is too permissive. ## Checklist - [x] I have verified that that issue exists against the `master` branch of Django REST framework. - [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate. - [x] This is not a usage question. (Those should b...
[ { "content": "\"\"\"\nViewSets are essentially just a type of class based view, that doesn't provide\nany method handlers, such as `get()`, `post()`, etc... but instead has actions,\nsuch as `list()`, `retrieve()`, `create()`, etc...\n\nActions are only bound to methods at the point of instantiating the views.\...
[ { "content": "\"\"\"\nViewSets are essentially just a type of class based view, that doesn't provide\nany method handlers, such as `get()`, `post()`, etc... but instead has actions,\nsuch as `list()`, `retrieve()`, `create()`, etc...\n\nActions are only bound to methods at the point of instantiating the views.\...
diff --git a/rest_framework/viewsets.py b/rest_framework/viewsets.py index d94c81df4d..244c14d396 100644 --- a/rest_framework/viewsets.py +++ b/rest_framework/viewsets.py @@ -25,11 +25,12 @@ from django.views.decorators.csrf import csrf_exempt from rest_framework import generics, mixins, views +from rest_framework....
pymedusa__Medusa-3047
[APP SUBMITTED]: AttributeError: 'NavigableString' object has no attribute 'span' ### INFO **Python Version**: `2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]` **Operating System**: `Windows-10-10.0.15063` **Locale**: `cp1252` **Branch**: [develop](../tree/develop) **Database**: `44.8`...
[ { "content": "# coding=utf-8\n\n\"\"\"Provider code for Limetorrents.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport re\nimport traceback\n\nfrom contextlib2 import suppress\n\nfrom medusa import tv\nfrom medusa.bs4_parser import BS4Parser\nfrom medusa.helper.common import (\n con...
[ { "content": "# coding=utf-8\n\n\"\"\"Provider code for Limetorrents.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport re\nimport traceback\n\nfrom contextlib2 import suppress\n\nfrom medusa import tv\nfrom medusa.bs4_parser import BS4Parser\nfrom medusa.helper.common import (\n con...
diff --git a/medusa/providers/torrent/html/limetorrents.py b/medusa/providers/torrent/html/limetorrents.py index dc9f8ebfc8..4a18ff6222 100644 --- a/medusa/providers/torrent/html/limetorrents.py +++ b/medusa/providers/torrent/html/limetorrents.py @@ -121,7 +121,7 @@ def process_column_header(th): retur...
pypa__pip-5319
"Requirement not upgraded as not directly required" for packages that are up-to-date * Pip version: 10.0.0 * Python version: 2.7.14 * Operating system: Ubuntu 17.10 ### Description: When I run `pip install -U <package>` for some package (e.g. ansible), pip outputs a lot of messages like ``` Requirement not ...
[ { "content": "\"\"\"Dependency Resolution\n\nThe dependency resolution in pip is performed as follows:\n\nfor top-level requirements:\n a. only one spec allowed per project, regardless of conflicts or not.\n otherwise a \"double requirement\" exception is raised\n b. they override sub-dependency req...
[ { "content": "\"\"\"Dependency Resolution\n\nThe dependency resolution in pip is performed as follows:\n\nfor top-level requirements:\n a. only one spec allowed per project, regardless of conflicts or not.\n otherwise a \"double requirement\" exception is raised\n b. they override sub-dependency req...
diff --git a/news/5319.feature b/news/5319.feature new file mode 100644 index 00000000000..25041dcdbe8 --- /dev/null +++ b/news/5319.feature @@ -0,0 +1 @@ +Improve status message when upgrade is skipped due to only-if-needed strategy diff --git a/src/pip/_internal/resolve.py b/src/pip/_internal/resolve.py index 3200fca...
Chia-Network__chia-blockchain-16099
[Bug] Chia Plots Check fails on 2.0.0-rc5 when Parallel Decompressor Count set to 0 ### What happened? reported by Ultrajones (https://discord.com/channels/1034523881404370984/1099818017908592660/1141527857462530068) and nanofarmer (https://discord.com/channels/1034523881404370984/1034870571864948777/11417758748788737...
[ { "content": "from __future__ import annotations\n\nimport concurrent.futures\nimport logging\nimport multiprocessing\nfrom collections import Counter\nfrom pathlib import Path\nfrom threading import Lock\nfrom time import sleep, time\nfrom typing import List, Optional\n\nfrom blspy import G1Element\nfrom chiap...
[ { "content": "from __future__ import annotations\n\nimport concurrent.futures\nimport logging\nimport multiprocessing\nfrom collections import Counter\nfrom pathlib import Path\nfrom threading import Lock\nfrom time import sleep, time\nfrom typing import List, Optional\n\nfrom blspy import G1Element\nfrom chiap...
diff --git a/chia/plotting/check_plots.py b/chia/plotting/check_plots.py index 50763a7ab1dc..50f4e1d2203e 100644 --- a/chia/plotting/check_plots.py +++ b/chia/plotting/check_plots.py @@ -240,7 +240,7 @@ def process_plot(plot_path: Path, plot_info: PlotInfo, num_start: int, num_end: ) b...
saleor__saleor-4917
Problem with filtering products ### What I'm trying to achieve I want to filter out products from grocerries category but I receive results even when I should not. ### Steps to reproduce the problem In groceries category there are two beers that have `abv` attribute with values: 51(5,1% alc) and 67(6,75 alc) but w...
[ { "content": "from collections import defaultdict\n\nimport django_filters\nfrom django.db.models import Q, Sum\nfrom graphene_django.filter import GlobalIDFilter, GlobalIDMultipleChoiceFilter\n\nfrom ...product.filters import (\n T_PRODUCT_FILTER_QUERIES,\n filter_products_by_attributes_values,\n)\nfrom ...
[ { "content": "from collections import defaultdict\n\nimport django_filters\nfrom django.db.models import Q, Sum\nfrom graphene_django.filter import GlobalIDFilter, GlobalIDMultipleChoiceFilter\n\nfrom ...product.filters import (\n T_PRODUCT_FILTER_QUERIES,\n filter_products_by_attributes_values,\n)\nfrom ...
diff --git a/saleor/graphql/product/filters.py b/saleor/graphql/product/filters.py index c6dc2d1282c..fccea172703 100644 --- a/saleor/graphql/product/filters.py +++ b/saleor/graphql/product/filters.py @@ -51,7 +51,7 @@ def _clean_product_attributes_filter_input(filter_value) -> T_PRODUCT_FILTER_QUE if attr_nam...
aio-libs__aiohttp-7785
RuntimeError: await wasn't used with future ### Describe the bug This is a strange one, as it's not something that has ever happened to me, but one of my users reported as an reoccurring issue. There's no real repro steps. It seems like it's something wrong with my code, but I can't pin-point exactly what it is, and...
[ { "content": "\"\"\"HTTP Client for asyncio.\"\"\"\n\nimport asyncio\nimport base64\nimport dataclasses\nimport hashlib\nimport json\nimport os\nimport sys\nimport traceback\nimport warnings\nfrom contextlib import suppress\nfrom types import SimpleNamespace, TracebackType\nfrom typing import (\n TYPE_CHECKI...
[ { "content": "\"\"\"HTTP Client for asyncio.\"\"\"\n\nimport asyncio\nimport base64\nimport dataclasses\nimport hashlib\nimport json\nimport os\nimport sys\nimport traceback\nimport warnings\nfrom contextlib import suppress\nfrom types import SimpleNamespace, TracebackType\nfrom typing import (\n TYPE_CHECKI...
diff --git a/CHANGES/7785.bugfix b/CHANGES/7785.bugfix new file mode 100644 index 00000000000..c24a5594c2f --- /dev/null +++ b/CHANGES/7785.bugfix @@ -0,0 +1 @@ +Fixed a rare `RuntimeError: await wasn't used with future` exception -- by :user:`stalkerg` diff --git a/aiohttp/client.py b/aiohttp/client.py index 549b8c52b...
pwndbg__pwndbg-341
"This command is not documented." It looks like we lost documentation via `help` at some point in time. This is related to #232 ``` pwndbg> help search This command is not documented. ```
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport argparse\nimport functools\n\nimport gdb\n\nimport pwndbg.chain\nimport pwndbg.color\nim...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport argparse\nimport functools\n\nimport gdb\n\nimport pwndbg.chain\nimport pwndbg.color\nim...
diff --git a/pwndbg/commands/__init__.py b/pwndbg/commands/__init__.py index 2c570f9916c..f53fb233da6 100644 --- a/pwndbg/commands/__init__.py +++ b/pwndbg/commands/__init__.py @@ -206,7 +206,7 @@ class _ArgparsedCommand(Command): def __init__(self, parser, function, *a, **kw): self.parser = parser ...
ARM-DOE__ACT-517
PSL Wind Profile Reader Hardcoded to CTD site Line 38 in io.noaapsl.read_psl_wind_profiler is hardcoded to the CTD site, we should automatically read the site code in and parse off of that or update to pass in a site name.
[ { "content": "\"\"\"\nModules for reading in NOAA PSL data.\n\"\"\"\n\nfrom datetime import datetime\nfrom itertools import groupby\n\nimport fsspec\nimport numpy as np\nimport pandas as pd\nimport xarray as xr\n\n\ndef read_psl_wind_profiler(filename, transpose=True):\n \"\"\"\n Returns `xarray.Dataset` ...
[ { "content": "\"\"\"\nModules for reading in NOAA PSL data.\n\"\"\"\n\nfrom datetime import datetime\nfrom itertools import groupby\n\nimport fsspec\nimport numpy as np\nimport pandas as pd\nimport xarray as xr\n\n\ndef read_psl_wind_profiler(filename, transpose=True):\n \"\"\"\n Returns `xarray.Dataset` ...
diff --git a/act/io/noaapsl.py b/act/io/noaapsl.py index 3ed6b5efe0..8868ff3226 100644 --- a/act/io/noaapsl.py +++ b/act/io/noaapsl.py @@ -34,8 +34,11 @@ def read_psl_wind_profiler(filename, transpose=True): # read file with pandas for preparation. df = pd.read_csv(filename, header=None) + # The first en...
bridgecrewio__checkov-4886
Wrong filename if using --output-file-path option When setting the output path using `--output-file-path output_directory` checkov reports ``` Wrote output in SARIF format to the file 'results.sarif' ``` But inside the output_directory the filename is written as **results_sarif.sarif**. Additionally it would...
[ { "content": "from __future__ import annotations\n\nimport argparse\nimport itertools\nimport json\nimport logging\nimport os\nimport re\n\nfrom collections import defaultdict\nfrom collections.abc import Iterable\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, cast, TYPE_CHECKING, Type...
[ { "content": "from __future__ import annotations\n\nimport argparse\nimport itertools\nimport json\nimport logging\nimport os\nimport re\n\nfrom collections import defaultdict\nfrom collections.abc import Iterable\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, cast, TYPE_CHECKING, Type...
diff --git a/checkov/common/runners/runner_registry.py b/checkov/common/runners/runner_registry.py index 11f9b892d2..9aea65a9ba 100644 --- a/checkov/common/runners/runner_registry.py +++ b/checkov/common/runners/runner_registry.py @@ -409,8 +409,9 @@ def print_reports( )) if output_f...
open-telemetry__opentelemetry-python-3769
PeriodicExportingMetricReader: Incorrect ValueError message of not accepting infinity as interval value When an invalid value is entered as `interval` for PeriodicExportingMetricReader, there is an error message generated [here](https://github.com/open-telemetry/opentelemetry-python/blob/8ed71b15fb8fc9534529da8ce4a21e6...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f9d6613214..50e6f2125d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#3751](https://github.com/open-telemetry/opentelemetry-python/pull/3751)) - bump mypy to 0.982 ...
python-telegram-bot__python-telegram-bot-869
Commands and \n after aren't processed by CommandHandler <!-- Thanks for reporting issues of python-telegram-bot! Use this template to notify us if you found a bug, or if you want to request a new feature. If you're looking for help with programming your bot using our library, feel free to ask your questions in o...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2017\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2017\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub...
diff --git a/telegram/ext/commandhandler.py b/telegram/ext/commandhandler.py index b33dc7959f4..feb5c7c0406 100644 --- a/telegram/ext/commandhandler.py +++ b/telegram/ext/commandhandler.py @@ -134,7 +134,7 @@ def check_update(self, update): message = update.message or update.edited_message i...
ckan__ckan-2896
Problems with translations in plugins (This came up together with #2893, see there for more details) I found two issues regarding translations in plugins: 1. `ckan.lib.plugins.DefaultTranslation.i18n_directory` relies on the extension package's `__file__` attribute (`ckanext.my_extension.__file__`). However, many exte...
[ { "content": "import logging\nimport os\nimport sys\n\nfrom pylons import c\nfrom ckan.lib import base\nimport ckan.lib.maintain as maintain\nfrom ckan import logic\nimport logic.schema\nfrom ckan import plugins\nimport ckan.authz\nimport ckan.plugins.toolkit as toolkit\n\nlog = logging.getLogger(__name__)\n\n#...
[ { "content": "import logging\nimport os\nimport sys\n\nfrom pylons import c\nfrom ckan.lib import base\nimport ckan.lib.maintain as maintain\nfrom ckan import logic\nimport logic.schema\nfrom ckan import plugins\nimport ckan.authz\nimport ckan.plugins.toolkit as toolkit\n\nlog = logging.getLogger(__name__)\n\n#...
diff --git a/ckan/lib/plugins.py b/ckan/lib/plugins.py index a5e576938d1..132e5b4598f 100644 --- a/ckan/lib/plugins.py +++ b/ckan/lib/plugins.py @@ -537,7 +537,7 @@ def i18n_directory(self): i18n/ ''' # assume plugin is called ckanext.<myplugin>.<...>.PluginClass - extension_module_nam...
ydataai__ydata-profiling-1440
[BUG] 🐛 `TypeCheckError` thrown when initialising a report ### Current Behaviour Error thrown when initialising a report: ``` txt TypeCheckError: argument "config_file" (None) did not match any element in the union: pathlib.Path: is not an instance of pathlib.Path str: is not an instance of str ``` ### Ex...
[ { "content": "import copy\nimport json\nimport warnings\nfrom pathlib import Path\nfrom typing import Any, Optional, Union\n\ntry:\n from pyspark.sql import DataFrame as sDataFrame\nexcept: # noqa: E722\n from typing import TypeVar\n\n sDataFrame = TypeVar(\"sDataFrame\") # type: ignore\n\nfrom datac...
[ { "content": "import copy\nimport json\nimport warnings\nfrom pathlib import Path\nfrom typing import Any, Optional, Union\n\ntry:\n from pyspark.sql import DataFrame as sDataFrame\nexcept: # noqa: E722\n from typing import TypeVar\n\n sDataFrame = TypeVar(\"sDataFrame\") # type: ignore\n\nfrom datac...
diff --git a/src/ydata_profiling/profile_report.py b/src/ydata_profiling/profile_report.py index 0be5c78a3..48f2559f8 100644 --- a/src/ydata_profiling/profile_report.py +++ b/src/ydata_profiling/profile_report.py @@ -67,7 +67,7 @@ def __init__( dark_mode: bool = False, orange_mode: bool = False, ...
PennyLaneAI__pennylane-2060
Raise exception or warning when `qml.adjoint` is used on operation list instead of function. The newer `qml.adjoint` function does not have any effect when acting on operation lists like in the following example: ```python params = list(range(4)) qml.adjoint(qml.templates.AngleEmbedding(params)) ``` Users might tr...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index ab4d6fc8d91..51ba7850e01 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -148,6 +148,45 @@ <h3>Improvements</h3> +* The `adjoint` transform now raises and error whenever the object it is applied to + ...
biolab__orange3-3109
owsql: Wrong auto-discovered DiscreteVariable values ##### Orange version 3.14.0 dev ##### Expected behavior SQL Table correctly discovers categorical variables. ##### Actual behavior `DiscreteVariable` values for char fields have additional with space on the end. ##### Steps to reproduce the behavior SQL ...
[ { "content": "import logging\nimport re\nimport warnings\nfrom contextlib import contextmanager\nfrom time import time\n\nfrom psycopg2 import Error, OperationalError\nfrom psycopg2.pool import ThreadedConnectionPool\n\nfrom Orange.data import ContinuousVariable, DiscreteVariable, StringVariable, TimeVariable\n...
[ { "content": "import logging\nimport re\nimport warnings\nfrom contextlib import contextmanager\nfrom time import time\n\nfrom psycopg2 import Error, OperationalError\nfrom psycopg2.pool import ThreadedConnectionPool\n\nfrom Orange.data import ContinuousVariable, DiscreteVariable, StringVariable, TimeVariable\n...
diff --git a/Orange/data/sql/backend/postgres.py b/Orange/data/sql/backend/postgres.py index 6e99f98e653..c1d7f3dcbd4 100644 --- a/Orange/data/sql/backend/postgres.py +++ b/Orange/data/sql/backend/postgres.py @@ -165,6 +165,8 @@ def _guess_variable(self, field_name, field_metadata, inspect_table): if type_code...
scikit-image__scikit-image-2869
Improper computation of `centroid` in `measure._moments` I noticed that the test suite `test_moments.py` did not properly cover cases where `center=None` (its default) in `moments_central`. As the adjusted test failed, I decided to create a test for `centroid` (called to compute the center of the image when none was pr...
[ { "content": "# coding: utf-8\nfrom __future__ import division\nimport numpy as np\nfrom . import _moments_cy\nimport itertools\nfrom warnings import warn\n\n\ndef moments(image, order=3):\n \"\"\"Calculate all raw image moments up to a certain order.\n\n The following properties can be calculated from ra...
[ { "content": "# coding: utf-8\nfrom __future__ import division\nimport numpy as np\nfrom . import _moments_cy\nimport itertools\nfrom warnings import warn\n\n\ndef moments(image, order=3):\n \"\"\"Calculate all raw image moments up to a certain order.\n\n The following properties can be calculated from ra...
diff --git a/skimage/measure/_moments.py b/skimage/measure/_moments.py index 7dfccb2ba6d..4b00ffffa9b 100644 --- a/skimage/measure/_moments.py +++ b/skimage/measure/_moments.py @@ -235,7 +235,9 @@ def centroid(image): The centroid of the (nonzero) pixels in ``image``. """ M = moments_central(image, c...
scikit-hep__awkward-2216
IndexError: boolean index did not match indexed array in awkward 2.x vs 1.x ### Version of Awkward Array 2.0.6 ### Description and code to reproduce Following up on my previous report, I've found another case where the behavior varies from awkward 1.x to 2.x in an unexpected manner. The rough outline is that I'm try...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nfrom __future__ import annotations\n\nimport awkward as ak\nfrom awkward._backends import Backend\nfrom awkward._errors import wrap_error\nfrom awkward._nplikes import nplike_of, to_nplike\nfrom awkward._npl...
[ { "content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nfrom __future__ import annotations\n\nimport awkward as ak\nfrom awkward._backends import Backend\nfrom awkward._errors import wrap_error\nfrom awkward._nplikes import nplike_of, to_nplike\nfrom awkward._npl...
diff --git a/src/awkward/_slicing.py b/src/awkward/_slicing.py index 1361440303..48e931fb98 100644 --- a/src/awkward/_slicing.py +++ b/src/awkward/_slicing.py @@ -440,6 +440,7 @@ def _normalise_item_bool_to_int(item: Content, backend: Backend) -> Content: and np.issubdtype(item.content.dtype, np.bool_) ):...
celery__celery-6294
Make redis use of sorted sets for group results opt-out Following up on #6245 - can we make the use of sorted set opt-out for 5.0 as discussed? In particular, this would simply be a change to the default value of the config value, and associated changes to tests and doco merged in #6245.
[ { "content": "\"\"\"Redis result store backend.\"\"\"\nimport time\nfrom contextlib import contextmanager\nfrom functools import partial\nfrom ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED\nfrom urllib.parse import unquote\n\nfrom kombu.utils.functional import retry_over_time\nfrom kombu.utils.objects impo...
[ { "content": "\"\"\"Redis result store backend.\"\"\"\nimport time\nfrom contextlib import contextmanager\nfrom functools import partial\nfrom ssl import CERT_NONE, CERT_OPTIONAL, CERT_REQUIRED\nfrom urllib.parse import unquote\n\nfrom kombu.utils.functional import retry_over_time\nfrom kombu.utils.objects impo...
diff --git a/celery/backends/redis.py b/celery/backends/redis.py index ef5dde20eb1..13100f1b4ea 100644 --- a/celery/backends/redis.py +++ b/celery/backends/redis.py @@ -405,7 +405,7 @@ def _chord_zset(self): transport_options = self.app.conf.get( 'result_backend_transport_options', {} ) -...
encode__httpx-1503
CertTypes `keyfile` and `password` should be Optional types. `SSLContext.load_cert_chain` can take `None` as arguments values ([docs](https://docs.python.org/3/library/ssl.html#ssl.SSLContext.load_cert_chain)) so I guess this: https://github.com/encode/httpx/blob/c09e61d50c8f169187cada6dbf14b89c7763c63f/httpx/_types.p...
[ { "content": "\"\"\"\nType definitions for type checking purposes.\n\"\"\"\n\nimport ssl\nfrom http.cookiejar import CookieJar\nfrom typing import (\n IO,\n TYPE_CHECKING,\n AsyncIterable,\n Callable,\n Dict,\n Iterable,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n U...
[ { "content": "\"\"\"\nType definitions for type checking purposes.\n\"\"\"\n\nimport ssl\nfrom http.cookiejar import CookieJar\nfrom typing import (\n IO,\n TYPE_CHECKING,\n AsyncIterable,\n Callable,\n Dict,\n Iterable,\n List,\n Mapping,\n Optional,\n Sequence,\n Tuple,\n U...
diff --git a/httpx/_types.py b/httpx/_types.py index 7768bac11b..385f89ddb9 100644 --- a/httpx/_types.py +++ b/httpx/_types.py @@ -51,7 +51,14 @@ CookieTypes = Union["Cookies", CookieJar, Dict[str, str], List[Tuple[str, str]]] -CertTypes = Union[str, Tuple[str, str], Tuple[str, str, str]] +CertTypes = Union[ + ...
digitalfabrik__integreat-cms-284
Include tailwind.css via npm instead of static file At the moment, we include tailwind.css as a static file in our repo. Instead, we should use [the recommended installation via npm](https://tailwindcss.com/docs/installation/) where we can configure exactly which parts we need and compile a minified css file in our de...
[ { "content": "from django.contrib.auth.decorators import login_required\nfrom django.shortcuts import render\nfrom django.utils.decorators import method_decorator\nfrom django.views.generic import TemplateView\n\nfrom ...decorators import region_permission_required\nfrom ...models import Document\n\n\n@method_d...
[ { "content": "from django.contrib.auth.decorators import login_required\nfrom django.shortcuts import render\nfrom django.utils.decorators import method_decorator\nfrom django.views.generic import TemplateView\n\nfrom ...decorators import region_permission_required\nfrom ...models import Document\n\n\n@method_d...
diff --git a/.gitignore b/.gitignore index 1372e0537f..aacf8eaa1f 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,8 @@ backend/cms/migrations/* # Compressed JS & CSS Files backend/cms/static/CACHE/ backend/cms/static/css/style.min.css +backend/cms/static/css/style.css +backend/cms/static/css/style.css.map #...
ansible__ansible-38194
Invalid yml causes include_vars to hang or freeze without output <!--- Verify first that your issue/request is not already reported on GitHub. Also test if the latest release, and devel branch are affected too. Always add information AFTER of these html comments. --> I made some attempt to sift through the 3,511...
[ { "content": "# (c) 2016, Allen Sanabria <asanabria@linuxdynasty.org>\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,...
[ { "content": "# (c) 2016, Allen Sanabria <asanabria@linuxdynasty.org>\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,...
diff --git a/lib/ansible/plugins/action/include_vars.py b/lib/ansible/plugins/action/include_vars.py index 7ef24e9b3a6c2c..8897f87af11255 100644 --- a/lib/ansible/plugins/action/include_vars.py +++ b/lib/ansible/plugins/action/include_vars.py @@ -236,7 +236,7 @@ def _load_files(self, filename, validate_extensions=False...
dynaconf__dynaconf-808
[bug] dynaconf[vault] fails with new hvac **Describe the bug** dynaconf[vault] is not able to work with new `hvac` 1.0.0+ `DeprecationWarning` turned into `AttributeError` This: ``` DeprecationWarning: Call to deprecated function 'auth_approle'. This method will be removed in version '0.12.0' Please use the 'log...
[ { "content": "# docker run -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -p 8200:8200 vault\n# pip install hvac\nfrom __future__ import annotations\n\nfrom dynaconf.utils import build_env_list\nfrom dynaconf.utils.parse_conf import parse_conf_data\n\ntry:\n import boto3\nexcept ImportError:\n boto3 = None\n\ntry:\n...
[ { "content": "# docker run -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -p 8200:8200 vault\n# pip install hvac\nfrom __future__ import annotations\n\nfrom dynaconf.utils import build_env_list\nfrom dynaconf.utils.parse_conf import parse_conf_data\n\ntry:\n import boto3\nexcept ImportError:\n boto3 = None\n\ntry:\n...
diff --git a/dynaconf/loaders/vault_loader.py b/dynaconf/loaders/vault_loader.py index c6b168316..d816ffc63 100644 --- a/dynaconf/loaders/vault_loader.py +++ b/dynaconf/loaders/vault_loader.py @@ -33,7 +33,7 @@ def get_client(obj): **{k: v for k, v in obj.VAULT_FOR_DYNACONF.items() if v is not None} ) ...
pydantic__pydantic-1542
UUID validation fails when provided with 16-byte string I'm trying to utilize [fastapi](https://github.com/tiangolo/fastapi) + [sqlalchemy](https://github.com/sqlalchemy) which uses pydantic. My sqlalchemy column type is BINARY(16) mapping to that exact type in a MariaDB/MySQL database: `uuid = Column(BINARY(16), nu...
[ { "content": "import re\nimport sys\nfrom collections import OrderedDict\nfrom collections.abc import Hashable\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal, DecimalException\nfrom enum import Enum, IntEnum\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6...
[ { "content": "import re\nimport sys\nfrom collections import OrderedDict\nfrom collections.abc import Hashable\nfrom datetime import date, datetime, time, timedelta\nfrom decimal import Decimal, DecimalException\nfrom enum import Enum, IntEnum\nfrom ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6...
diff --git a/changes/1541-shawnwall.md b/changes/1541-shawnwall.md new file mode 100644 index 00000000000..02936f02e0c --- /dev/null +++ b/changes/1541-shawnwall.md @@ -0,0 +1 @@ +Added support for UUID instantiation through 16 byte strings such as `b'\x12\x34\x56\x78' * 4`. This was done to support `BINARY(16)` column...
NVIDIA__NeMo-5681
Enable gpu device selection in ClusteringDiarizer() Can you add the ability to select the GPU device when using [ClusteringDiarizer](https://github.com/NVIDIA/NeMo/blob/main/nemo/collections/asr/models/clustering_diarizer.py)? Currently, it always gets mapped to GPU 0 but it seems like that should be configurable unles...
[ { "content": "# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/examples/speaker_tasks/diarization/conf/inference/diar_infer_general.yaml b/examples/speaker_tasks/diarization/conf/inference/diar_infer_general.yaml index 8036e2882b71..a4bfa167f103 100644 --- a/examples/speaker_tasks/diarization/conf/inference/diar_infer_general.yaml +++ b/examples/speaker_tasks/diarizat...
ivy-llc__ivy-16484
bitwise_and
[ { "content": "# global\nimport ivy\nimport ivy.functional.frontends.paddle as paddle\nfrom ivy.func_wrapper import (\n with_unsupported_dtypes,\n handle_out_argument,\n with_supported_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_unsup...
[ { "content": "# global\nimport ivy\nimport ivy.functional.frontends.paddle as paddle\nfrom ivy.func_wrapper import (\n with_unsupported_dtypes,\n handle_out_argument,\n with_supported_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import (\n to_ivy_arrays_and_back,\n)\n\n\n@with_unsup...
diff --git a/ivy/functional/frontends/paddle/tensor/logic.py b/ivy/functional/frontends/paddle/tensor/logic.py index 3ee52eb056234..b2cf76c1ee83a 100644 --- a/ivy/functional/frontends/paddle/tensor/logic.py +++ b/ivy/functional/frontends/paddle/tensor/logic.py @@ -158,3 +158,22 @@ def logical_not(x, /, *, name=None, ou...
locustio__locust-2600
Modern UI: Average Response Time and 95th percentile have the same color ### Prerequisites - [X] I am using [the latest version of Locust](https://github.com/locustio/locust/releases/) - [X] I am reporting a bug, not asking a question ### Description Average Response Time and 95th percentile have the same color. <i...
[ { "content": "from __future__ import annotations\n\nimport locust\n\nimport atexit\nimport errno\nimport gc\nimport inspect\nimport json\nimport logging\nimport os\nimport signal\nimport sys\nimport time\nimport traceback\n\nimport gevent\n\nfrom . import log, stats\nfrom .argument_parser import parse_locustfil...
[ { "content": "from __future__ import annotations\n\nimport locust\n\nimport atexit\nimport errno\nimport gc\nimport inspect\nimport json\nimport logging\nimport os\nimport signal\nimport sys\nimport time\nimport traceback\n\nimport gevent\n\nfrom . import log, stats\nfrom .argument_parser import parse_locustfil...
diff --git a/docs/configuration.rst b/docs/configuration.rst index 40c18f2199..5b2d90763d 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -248,6 +248,8 @@ The list of statistics parameters that can be modified is: +-------------------------------------------+----------------------------------------...
spacetelescope__jwql-1136
Add new anomaly types for NIRCam Discussed in the NIRCam meeting today: Should we add claws and wisps to the list of NIRCam anomalies? @bsunnquist is the best one to make the call on this. We should also add a "scattered light" entry, to capture exposures with unexpected scattered light features.
[ { "content": "\"\"\"Globally defined and used variables for the ``jwql`` project.\n\nAuthors\n-------\n\n - Johannes Sahlmann\n - Matthew Bourque\n - Bryan Hilbert\n - Ben Sunnquist\n - Teagan King\n - Mike Engesser\n - Maria Pena-Guerrero\n - Rachel Cooper\n\nUse\n---\n This variable...
[ { "content": "\"\"\"Globally defined and used variables for the ``jwql`` project.\n\nAuthors\n-------\n\n - Johannes Sahlmann\n - Matthew Bourque\n - Bryan Hilbert\n - Ben Sunnquist\n - Teagan King\n - Mike Engesser\n - Maria Pena-Guerrero\n - Rachel Cooper\n\nUse\n---\n This variable...
diff --git a/jwql/utils/constants.py b/jwql/utils/constants.py index 4388a8f7c..edbb08cb7 100644 --- a/jwql/utils/constants.py +++ b/jwql/utils/constants.py @@ -80,7 +80,10 @@ 'row_pull_down': ['miri'], 'LRS_Contamination': ['miri'], 'tree_rings': ['miri'], - 'scattered_light': ['niriss'], + 'scatt...
e-valuation__EvaP-1353
Importing a backup made by update_production.sh does not work flawlessly. Last week we wanted to do a production update. The json dump file created during that update could not be imported without issues: - The dump does not contain the cronjob user, but foreign key references to it. This can not be imported - The du...
[ { "content": "import os\n\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\nfrom django.core.management import call_command\n\n\nclass Command(BaseCommand):\n args = ''\n help = 'Dumps all relevant contents of the database into test_data.json.'\n requires_migration...
[ { "content": "import os\n\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\nfrom django.core.management import call_command\n\n\nclass Command(BaseCommand):\n args = ''\n help = 'Dumps all relevant contents of the database into test_data.json.'\n requires_migration...
diff --git a/.travis.yml b/.travis.yml index d231f07852..827e14d77b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,14 @@ language: python python: "3.7" dist: xenial -sudo: false +sudo: required cache: directories: - $HOME/.cache/pip services: -- postgresql + - postgresql + - redis-server before_...
dask__distributed-3728
Typo in docs Just noticed there is a typo here. It should say `maximum_memory : str`. https://github.com/dask/distributed/blob/9622b8f9bef1855412e9b23265378e2da1f47f2f/distributed/deploy/spec.py#L554
[ { "content": "import asyncio\nimport atexit\nimport copy\nimport logging\nimport math\nimport weakref\n\nimport dask\nfrom tornado import gen\n\nfrom .adaptive import Adaptive\nfrom .cluster import Cluster\nfrom ..core import rpc, CommClosedError\nfrom ..utils import (\n LoopRunner,\n silence_logging,\n ...
[ { "content": "import asyncio\nimport atexit\nimport copy\nimport logging\nimport math\nimport weakref\n\nimport dask\nfrom tornado import gen\n\nfrom .adaptive import Adaptive\nfrom .cluster import Cluster\nfrom ..core import rpc, CommClosedError\nfrom ..utils import (\n LoopRunner,\n silence_logging,\n ...
diff --git a/distributed/deploy/spec.py b/distributed/deploy/spec.py index c6338d3b93f..eb9f0f0043e 100644 --- a/distributed/deploy/spec.py +++ b/distributed/deploy/spec.py @@ -551,7 +551,7 @@ def adapt( minimum_memory : str Minimum amount of memory to keep around in the cluster Expre...
qtile__qtile-2158
Missing requirement in documentation for Volume widget # Issue description The Volume widget by default needs access to amixer, which is part of the package alsa-utils, unless the `get_volume_command` is manually set to something else by the user. This is not mentioned in the documentation [http://docs.qtile.org/en...
[ { "content": "# Copyright (c) 2010, 2012, 2014 roger\n# Copyright (c) 2011 Kirk Strauser\n# Copyright (c) 2011 Florian Mounier\n# Copyright (c) 2011 Mounier Florian\n# Copyright (c) 2011 Roger Duran\n# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2013 Craig Barnes\n#...
[ { "content": "# Copyright (c) 2010, 2012, 2014 roger\n# Copyright (c) 2011 Kirk Strauser\n# Copyright (c) 2011 Florian Mounier\n# Copyright (c) 2011 Mounier Florian\n# Copyright (c) 2011 Roger Duran\n# Copyright (c) 2012-2015 Tycho Andersen\n# Copyright (c) 2013 Tao Sauvage\n# Copyright (c) 2013 Craig Barnes\n#...
diff --git a/libqtile/widget/volume.py b/libqtile/widget/volume.py index d709974567..dd322f7c4b 100644 --- a/libqtile/widget/volume.py +++ b/libqtile/widget/volume.py @@ -46,6 +46,10 @@ class Volume(base._TextBox): """Widget that display and change volume + By default, this widget uses ``amixer`` to get and ...
obspy__obspy-2643
Travis not building I think it is a problem connected with changes introduced by me in #2619. In my project CI was building with that setup up to Friday, but crashed today. I fixed it with adding to pyproject.toml required by PEP517. I will do a PR to add this line here. Quoting @megies: Not sure whats wr...
[ { "content": "#! /usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nObsPy - a Python framework for seismological observatories.\n\nObsPy is an open-source project dedicated to provide a Python framework for\nprocessing seismological data. It provides parsers for common file formats,\nclients to access data c...
[ { "content": "#! /usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nObsPy - a Python framework for seismological observatories.\n\nObsPy is an open-source project dedicated to provide a Python framework for\nprocessing seismological data. It provides parsers for common file formats,\nclients to access data c...
diff --git a/setup.py b/setup.py index e0ebf9e849a..f640cc570fd 100644 --- a/setup.py +++ b/setup.py @@ -43,8 +43,9 @@ import sys import platform from distutils.util import change_root +from distutils.errors import DistutilsSetupError -from numpy.distutils.core import DistutilsSetupError, setup +from numpy.distuti...
vispy__vispy-1389
Camera API documentation missing I could not find a list of available cameras in the docs: http://vispy.org/scene.html?highlight=cameras#module-vispy.scene.cameras
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\"\"\"\nCameras are responsible for determining which part of a scene is displayed\nin a viewbox and for handling user input to change t...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\"\"\"\nCameras are responsible for determining which part of a scene is displayed\nin a viewbox and for handling user input to change the view.\n\nSev...
diff --git a/vispy/scene/cameras/__init__.py b/vispy/scene/cameras/__init__.py index d0186e6e22..ec614257e5 100644 --- a/vispy/scene/cameras/__init__.py +++ b/vispy/scene/cameras/__init__.py @@ -15,6 +15,9 @@ that a certain part of the scene is mapped to the bounding rectangle of the ViewBox. """ +__all__ = ['Arcba...
dmlc__dgl-3075
Double edges in some TUDatasets ## 🐛 Bug The adjacency matrix of some TUDatasets such as IMDB-BINARY is made up of 0s and 2s rather than 0s and 1s. I believe this to be because the original files have multiple entries of the edges. ## To Reproduce Steps to reproduce the behavior: I wrote the following scr...
[ { "content": "from __future__ import absolute_import\nimport numpy as np\nimport os\n\nfrom .dgl_dataset import DGLBuiltinDataset\nfrom .utils import loadtxt, save_graphs, load_graphs, save_info, load_info\nfrom .. import backend as F\nfrom ..convert import graph as dgl_graph\n\nclass LegacyTUDataset(DGLBuiltin...
[ { "content": "from __future__ import absolute_import\nimport numpy as np\nimport os\n\nfrom .dgl_dataset import DGLBuiltinDataset\nfrom .utils import loadtxt, save_graphs, load_graphs, save_info, load_info\nfrom .. import backend as F\nfrom ..convert import graph as dgl_graph\n\nclass LegacyTUDataset(DGLBuiltin...
diff --git a/python/dgl/data/tu.py b/python/dgl/data/tu.py index fcfb472a3229..4c05b27cf139 100644 --- a/python/dgl/data/tu.py +++ b/python/dgl/data/tu.py @@ -252,6 +252,13 @@ class TUDataset(DGLBuiltinDataset): num_labels : int Number of classes + Notes + ----- + **IMPORTANT:** Some of the dat...
oppia__oppia-5437
Set default value of the dropdown to direct the learner in 'Add Response' modal ## Repro Steps: * Open Creator Dashboard and click 'create' button to create new exploration. * Choose any of the interaction. * See the 'Add Response' modal that appears after selecting the interaction. ## Observed behaviour: * See ...
[ { "content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia 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/licen...
[ { "content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia 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/licen...
diff --git a/core/domain/stats_services.py b/core/domain/stats_services.py index 0a6dcf439f2d5..3b17bbad4e7fd 100644 --- a/core/domain/stats_services.py +++ b/core/domain/stats_services.py @@ -104,7 +104,6 @@ def get_exploration_stats(exp_id, exp_version): ExplorationStats. The exploration stats domain object....
azavea__raster-vision-1235
Predictor does not reset the scene's aoi_geometries and the raster source's extent_crop Currently, the `Predictor` re-uses a `SceneConfig` from the pipeline config in the bundle (instead of creating a new one) and resets its `label_source` and `aoi_uris`. https://github.com/azavea/raster-vision/blob/master/rastervisio...
[ { "content": "from os.path import join\nimport zipfile\nimport logging\n\nfrom rastervision.pipeline import rv_config\nfrom rastervision.pipeline.config import (build_config, upgrade_config)\nfrom rastervision.pipeline.file_system.utils import (download_if_needed,\n ...
[ { "content": "from os.path import join\nimport zipfile\nimport logging\n\nfrom rastervision.pipeline import rv_config\nfrom rastervision.pipeline.config import (build_config, upgrade_config)\nfrom rastervision.pipeline.file_system.utils import (download_if_needed,\n ...
diff --git a/rastervision_core/rastervision/core/predictor.py b/rastervision_core/rastervision/core/predictor.py index 96cc6a3b6..846e875f1 100644 --- a/rastervision_core/rastervision/core/predictor.py +++ b/rastervision_core/rastervision/core/predictor.py @@ -69,6 +69,9 @@ def __init__(self, self.scene.labe...
ansible__ansible-38225
Invalid yml causes include_vars to hang or freeze without output <!--- Verify first that your issue/request is not already reported on GitHub. Also test if the latest release, and devel branch are affected too. Always add information AFTER of these html comments. --> I made some attempt to sift through the 3,511...
[ { "content": "# (c) 2016, Allen Sanabria <asanabria@linuxdynasty.org>\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,...
[ { "content": "# (c) 2016, Allen Sanabria <asanabria@linuxdynasty.org>\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,...
diff --git a/changelogs/fragments/include_vars_error_hang_fix.yaml b/changelogs/fragments/include_vars_error_hang_fix.yaml new file mode 100644 index 00000000000000..ec129495f60672 --- /dev/null +++ b/changelogs/fragments/include_vars_error_hang_fix.yaml @@ -0,0 +1,2 @@ +bugfixes: +- include_vars - Call DataLoader.load...
meltano__meltano-7964
bug: Replace usage of deprecated `locale.getdefaultlocale` ### Meltano Version 2.20.0 ### Python Version 3.11 ### Bug scope Other ### Operating System NA ### Description The function `locale.getdefaultlocale` is deprecated since version 3.11, will be removed in version 3.13. It is recommended to use `locale.ge...
[ { "content": "\"\"\"Meltano telemetry.\"\"\"\n\nfrom __future__ import annotations\n\nimport atexit\nimport json\nimport locale\nimport os\nimport re\nimport sys\nimport typing as t\nimport uuid\nfrom collections.abc import Mapping\nfrom contextlib import contextmanager, suppress\nfrom datetime import datetime\...
[ { "content": "\"\"\"Meltano telemetry.\"\"\"\n\nfrom __future__ import annotations\n\nimport atexit\nimport json\nimport locale\nimport os\nimport re\nimport sys\nimport typing as t\nimport uuid\nfrom collections.abc import Mapping\nfrom contextlib import contextmanager, suppress\nfrom datetime import datetime\...
diff --git a/src/meltano/core/tracking/tracker.py b/src/meltano/core/tracking/tracker.py index 8651473caf..b96c3592bc 100644 --- a/src/meltano/core/tracking/tracker.py +++ b/src/meltano/core/tracking/tracker.py @@ -138,7 +138,7 @@ def __init__( # noqa: WPS210 - too many local variables app_id="meltano...
freqtrade__freqtrade-3596
configure fee to 0 using --fee argument take default exchange fees instead of 0 Hi, During early stage of developing a strategy i put fees to 0 to see winrate when i close the trade after 1 bar, 2 bars, ... . No matter i 'force' the fees to 0 it seems the fallback to default exchange fees if the value choose is und...
[ { "content": "# pragma pylint: disable=missing-docstring, W0212, too-many-arguments\n\n\"\"\"\nThis module contains the backtesting logic\n\"\"\"\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta\nfrom typing import Any, Dict, List, NamedTuple, Optional, Tuple\n\nimport arrow\...
[ { "content": "# pragma pylint: disable=missing-docstring, W0212, too-many-arguments\n\n\"\"\"\nThis module contains the backtesting logic\n\"\"\"\nimport logging\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta\nfrom typing import Any, Dict, List, NamedTuple, Optional, Tuple\n\nimport arrow\...
diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index e5014dd5a3c..214c92e0ed6 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -101,7 +101,7 @@ def __init__(self, config: Dict[str, Any]) -> None: if len(self.pairlists.whitelist) == 0:...
scipy__scipy-5920
"master" fails to build with MKL Recently, when I try to build the "master" branch, I keep getting this error from `linalg/solve/dsolve/setup.py`: ``` .Python ValueError: list.remove(x): x not in list ``` The error traces to this block of code <a href="https://github.com/scipy/scipy/blob/master/scipy/sparse/linalg/ds...
[ { "content": "#!/usr/bin/env python\nfrom __future__ import division, print_function, absolute_import\n\nfrom os.path import join, dirname\nimport sys\nimport os\nimport glob\n\n\ndef configuration(parent_package='',top_path=None):\n from numpy.distutils.misc_util import Configuration\n from numpy.distuti...
[ { "content": "#!/usr/bin/env python\nfrom __future__ import division, print_function, absolute_import\n\nfrom os.path import join, dirname\nimport sys\nimport os\nimport glob\n\n\ndef configuration(parent_package='',top_path=None):\n from numpy.distutils.misc_util import Configuration\n from numpy.distuti...
diff --git a/scipy/sparse/linalg/dsolve/setup.py b/scipy/sparse/linalg/dsolve/setup.py index fef166100d42..21b617ff705c 100755 --- a/scipy/sparse/linalg/dsolve/setup.py +++ b/scipy/sparse/linalg/dsolve/setup.py @@ -27,9 +27,6 @@ def configuration(parent_package='',top_path=None): sources = list(glob.glob(join(su...
lutris__lutris-4217
[issue] AttributeError 'NoneType' when calling dll_manager.version.lower() ### Bug description Trying to install Star Citizen, when Lutris try to install DLLs it throw an error. `NoneType' object has no attribute 'lower'`. I realize is similar to the #3787 and I was using 0.5.9.1, and I upgraded to 0.5.10, but it is ...
[ { "content": "\"\"\"Wine runner\"\"\"\n# pylint: disable=too-many-lines\nimport os\nimport shlex\nfrom gettext import gettext as _\n\nfrom lutris import runtime, settings\nfrom lutris.gui.dialogs import FileDialog\nfrom lutris.runners.commands.wine import ( # noqa: F401 pylint: disable=unused-import\n creat...
[ { "content": "\"\"\"Wine runner\"\"\"\n# pylint: disable=too-many-lines\nimport os\nimport shlex\nfrom gettext import gettext as _\n\nfrom lutris import runtime, settings\nfrom lutris.gui.dialogs import FileDialog\nfrom lutris.runners.commands.wine import ( # noqa: F401 pylint: disable=unused-import\n creat...
diff --git a/lutris/runners/wine.py b/lutris/runners/wine.py index 0f548ddaef..6e8ad7eddd 100644 --- a/lutris/runners/wine.py +++ b/lutris/runners/wine.py @@ -772,8 +772,10 @@ def setup_dlls(self, manager_class, enable, version): arch=self.wine_arch, version=version, ) + # ma...
celery__celery-5462
Minor bug in celery utils time.py file There is a function named remaining in the celery.utils.time.py file. In that function, I think the statement start = start.replace(tzinfo=now.tzinfo) (line 211) has to be replaced with start = start.astimezone(now.tzinfo). I hope the expected working by using the statement (`s...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Utilities related to dates, times, intervals, and timezones.\"\"\"\nfrom __future__ import absolute_import, print_function, unicode_literals\n\nimport numbers\nimport os\nimport random\nimport time as _time\nfrom calendar import monthrange\nfrom datetime import date,...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Utilities related to dates, times, intervals, and timezones.\"\"\"\nfrom __future__ import absolute_import, print_function, unicode_literals\n\nimport numbers\nimport os\nimport random\nimport time as _time\nfrom calendar import monthrange\nfrom datetime import date,...
diff --git a/celery/utils/time.py b/celery/utils/time.py index 4783c767942..c93cbe1ebbf 100644 --- a/celery/utils/time.py +++ b/celery/utils/time.py @@ -207,8 +207,8 @@ def remaining(start, ends_in, now=None, relative=False): ~datetime.timedelta: Remaining time. """ now = now or datetime.utcnow() - ...
DataBiosphere__toil-2583
Env value of TOIL_DOCKER_REGISTRY is not honored in the docker image When a docker image is build with a custom `TOIL_DOCKER_REGISTRY`, the built docker image still looks at `quay.io/ucsc_cgl` for pulling related images (e.g. `mtail`, `grafana`, etc). The fix is to put the actual registry in `version_template.py`.
[ { "content": "# Copyright (C) 2015-2018 Regents of the University of California\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-...
[ { "content": "# Copyright (C) 2015-2018 Regents of the University of California\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-...
diff --git a/version_template.py b/version_template.py index 1374ae0da5..60036922d5 100644 --- a/version_template.py +++ b/version_template.py @@ -28,7 +28,6 @@ baseVersion = '3.20.0a1' cgcloudVersion = '1.6.0a1.dev393' -dockerRegistry = 'quay.io/ucsc_cgl' dockerName = 'toil' @@ -115,6 +114,11 @@ def currentCo...
liberapay__liberapay.com-917
Incomplete translation warning It's not good that we display partially translated pages to users, but what's worse is that we don't display a warning about the translation being incomplete.
[ { "content": "# encoding: utf8\nfrom __future__ import print_function, unicode_literals\n\nfrom collections import namedtuple, OrderedDict\nfrom datetime import date, datetime, timedelta\nfrom decimal import Decimal, InvalidOperation\nfrom hashlib import md5\nfrom io import BytesIO\nimport re\nfrom unicodedata ...
[ { "content": "# encoding: utf8\nfrom __future__ import print_function, unicode_literals\n\nfrom collections import namedtuple, OrderedDict\nfrom datetime import date, datetime, timedelta\nfrom decimal import Decimal, InvalidOperation\nfrom hashlib import md5\nfrom io import BytesIO\nimport re\nfrom unicodedata ...
diff --git a/Makefile b/Makefile index 46d5cebbe3..547fd1b5da 100644 --- a/Makefile +++ b/Makefile @@ -82,7 +82,7 @@ pytest-i18n-browse: env PYTHONPATH=. LIBERAPAY_I18N_TEST=yes $(py_test) -k TestTranslations ./tests/py/ _i18n_extract: env - @PYTHONPATH=. $(env_bin)/pybabel extract -F .babel_extract --no-wrap -o i...
kornia__kornia-1421
PyPI tarball missing required files ### Describe the bug The tarball uploaded to PyPI does not contain `requirements/*` files which are required to run the `setup.py` file. ### Reproduction steps ```bash $ wget https://files.pythonhosted.org/packages/source/k/kornia/kornia-0.6.0.tar.gz $ tar zxf kornia-0.6.0...
[ { "content": "# Welcome to the Kornia setup.py.\n#\nimport re\nimport sys\n\n# Make sure that kornia is running on Python 3.6.0 or later\n# (to avoid running into this bug: https://bugs.python.org/issue29246)\n\nif sys.version_info < (3, 6, 0):\n raise RuntimeError(\"Kornia requires Python 3.6.0 or later.\")...
[ { "content": "# Welcome to the Kornia setup.py.\n#\nimport re\nimport sys\n\n# Make sure that kornia is running on Python 3.6.0 or later\n# (to avoid running into this bug: https://bugs.python.org/issue29246)\n\nif sys.version_info < (3, 6, 0):\n raise RuntimeError(\"Kornia requires Python 3.6.0 or later.\")...
diff --git a/setup.py b/setup.py index 746fa45add..074f51b7cf 100644 --- a/setup.py +++ b/setup.py @@ -63,6 +63,7 @@ def load_requirements(filename: str): tests_require=['pytest'], packages=find_packages(exclude=('docs', 'test', 'examples')), package_data={"kornia": ["py.typed"]}, + da...
kivy__kivy-7372
Allow `get_focus_previous` with `numlock` enabled **Is your feature request related to a problem? Please describe.** When `numlock` is enabled, `shift+tab` doesn't call `get_focus_previous` for widgets inheriting `FocusBehavior` **Describe the solution you'd like** Change this: https://github.com/kivy/kivy/blob/e...
[ { "content": "'''\nFocus Behavior\n==============\n\nThe :class:`~kivy.uix.behaviors.FocusBehavior`\n`mixin <https://en.wikipedia.org/wiki/Mixin>`_ class provides\nkeyboard focus behavior. When combined with other\nFocusBehavior widgets it allows one to cycle focus among them by pressing\ntab. In addition, upon...
[ { "content": "'''\nFocus Behavior\n==============\n\nThe :class:`~kivy.uix.behaviors.FocusBehavior`\n`mixin <https://en.wikipedia.org/wiki/Mixin>`_ class provides\nkeyboard focus behavior. When combined with other\nFocusBehavior widgets it allows one to cycle focus among them by pressing\ntab. In addition, upon...
diff --git a/kivy/uix/behaviors/focus.py b/kivy/uix/behaviors/focus.py index 29cc27adb9..705450a8e1 100644 --- a/kivy/uix/behaviors/focus.py +++ b/kivy/uix/behaviors/focus.py @@ -531,7 +531,9 @@ def keyboard_on_key_down(self, window, keycode, text, modifiers): key was consumed. ''' if keycode...
piskvorky__gensim-1053
Doc2Vec.DocvecsArray.doctag_syn0norm not ignored in save() Unlike with Word2Vec.syn0norm, oversized `doctag_syn0norm` arrays aren't ignored during native `save()`. As a result, even if they're a shared-reference to `doctag_syn0` after an `init_sims(replace=True)`, both `doctag_syn0` and `doctag_syn0norm` will be writte...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nDeep learning via the distributed memory and distributed bag of words models from\n[1]_, using either...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nDeep learning via the distributed memory and distributed bag of words models from\n[1]_, using either...
diff --git a/gensim/models/doc2vec.py b/gensim/models/doc2vec.py index fcb89d280c..00712f0685 100644 --- a/gensim/models/doc2vec.py +++ b/gensim/models/doc2vec.py @@ -353,6 +353,11 @@ def __contains__(self, index): else: return index in self.doctags + def save(self, *args, **kwargs): + ...
pypa__pip-5789
AttributeError on tab completion of `pip install -U ...` **Environment** * pip version: 18.0 * Python version: 3.7.0 * OS: macOS High Sierra Using iTerm2 3.1.7 or Terminal.app. <!-- Feel free to add more information about your environment here --> **Description** <!-- A clear and concise description of w...
[ { "content": "\"\"\"Logic that powers autocompletion installed by ``pip completion``.\n\"\"\"\n\nimport optparse\nimport os\nimport sys\n\nfrom pip._internal.cli.main_parser import create_main_parser\nfrom pip._internal.commands import commands_dict, get_summaries\nfrom pip._internal.utils.misc import get_insta...
[ { "content": "\"\"\"Logic that powers autocompletion installed by ``pip completion``.\n\"\"\"\n\nimport optparse\nimport os\nimport sys\n\nfrom pip._internal.cli.main_parser import create_main_parser\nfrom pip._internal.commands import commands_dict, get_summaries\nfrom pip._internal.utils.misc import get_insta...
diff --git a/news/5751.bugfix b/news/5751.bugfix new file mode 100644 index 00000000000..36926c9a67a --- /dev/null +++ b/news/5751.bugfix @@ -0,0 +1 @@ +Avoid traceback printing on autocomplete after flags in the CLI. diff --git a/src/pip/_internal/cli/autocompletion.py b/src/pip/_internal/cli/autocompletion.py index d...