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
⌀
e-valuation__EvaP-1457
Participant count wrong for unpublished results On the results index page the number of voters and participants for unpublished evaluations is not shown correctly. Staff users can see these evaluations before they are published, but the numbers differ from the actual values (which are shown correctly on results detail ...
[ { "content": "from collections import defaultdict\nfrom statistics import median\n\nfrom django.conf import settings\nfrom django.db.models import Count, QuerySet\nfrom django.core.cache import caches\nfrom django.core.cache.utils import make_template_fragment_key\nfrom django.core.exceptions import PermissionD...
[ { "content": "from collections import defaultdict\nfrom statistics import median\n\nfrom django.conf import settings\nfrom django.db.models import Count, QuerySet\nfrom django.core.cache import caches\nfrom django.core.cache.utils import make_template_fragment_key\nfrom django.core.exceptions import PermissionD...
diff --git a/evap/results/views.py b/evap/results/views.py index 8a42b2be02..ee5576a951 100644 --- a/evap/results/views.py +++ b/evap/results/views.py @@ -107,7 +107,7 @@ def get_evaluations_with_prefetched_data(evaluations): "course__degrees", "course__semester", "cou...
wagtail__wagtail-9920
Tests failing on latest `main` <!-- Found a bug? Please fill out the sections below. 👍 --> ### Issue Summary Some tests for the ~~legacy~~ moderation feature seems to be failing on latest `main` after #9817. Weirdly, they passed when the CI was run on the PR: https://github.com/wagtail/wagtail/actions/runs/395...
[ { "content": "import json\nfrom datetime import datetime\nfrom urllib.parse import urljoin\nfrom warnings import warn\n\nfrom django import template\nfrom django.conf import settings\nfrom django.contrib.admin.utils import quote\nfrom django.contrib.humanize.templatetags.humanize import intcomma, naturaltime\nf...
[ { "content": "import json\nfrom datetime import datetime\nfrom urllib.parse import urljoin\nfrom warnings import warn\n\nfrom django import template\nfrom django.conf import settings\nfrom django.contrib.admin.utils import quote\nfrom django.contrib.humanize.templatetags.humanize import intcomma, naturaltime\nf...
diff --git a/wagtail/admin/templates/wagtailadmin/userbar/base.html b/wagtail/admin/templates/wagtailadmin/userbar/base.html index ee3629e736c0..247652249dcd 100644 --- a/wagtail/admin/templates/wagtailadmin/userbar/base.html +++ b/wagtail/admin/templates/wagtailadmin/userbar/base.html @@ -51,7 +51,7 @@ <h3 class="w-a1...
PrefectHQ__prefect-1502
Handle cases where Prefect is deployed to multiple environments with differently-calibrated clocks It's possible that if a Prefect flow is deployed in an environment with an incorrect clock, then it may not run (if it receives states from an external system like Prefect Cloud). For example, say the clock in a clust...
[ { "content": "import logging\nfrom typing import Union\n\nimport pendulum\nimport time\n\nfrom prefect import config\nfrom prefect.client import Client\nfrom prefect.serialization import state\nfrom prefect.engine.state import Submitted\nfrom prefect.utilities.exceptions import AuthorizationError\nfrom prefect....
[ { "content": "import logging\nfrom typing import Union\n\nimport pendulum\nimport time\n\nfrom prefect import config\nfrom prefect.client import Client\nfrom prefect.serialization import state\nfrom prefect.engine.state import Submitted\nfrom prefect.utilities.exceptions import AuthorizationError\nfrom prefect....
diff --git a/CHANGELOG.md b/CHANGELOG.md index 54faf3bea22a..33c6ca41ad61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ These changes are available in the [master branch](https://github.com/PrefectHQ/ ### Enhancements -- None +- Allow for Agents to correctly run in environments with differently ca...
mindsdb__lightwood-694
Hardcoded `BestOf` ensemble assumption in `calibrate.py` ## What is broken https://github.com/mindsdb/lightwood/pull/692 fails to run the test suite. ## Why it is broken The test suite fails because of [this error](https://github.com/mindsdb/lightwood/runs/4015774197?check_suite_focus=true#step:8:19095): ``...
[ { "content": "from copy import deepcopy\nfrom itertools import product\nfrom typing import Dict, Tuple\nfrom types import SimpleNamespace\n\nimport numpy as np\nimport pandas as pd\nfrom sklearn.preprocessing import OneHotEncoder\n\nfrom lightwood.api.dtype import dtype\nfrom lightwood.helpers.ts import add_tn_...
[ { "content": "from copy import deepcopy\nfrom itertools import product\nfrom typing import Dict, Tuple\nfrom types import SimpleNamespace\n\nimport numpy as np\nimport pandas as pd\nfrom sklearn.preprocessing import OneHotEncoder\n\nfrom lightwood.api.dtype import dtype\nfrom lightwood.helpers.ts import add_tn_...
diff --git a/lightwood/analysis/nc/calibrate.py b/lightwood/analysis/nc/calibrate.py index 5c55c1862..8c6255f34 100644 --- a/lightwood/analysis/nc/calibrate.py +++ b/lightwood/analysis/nc/calibrate.py @@ -89,7 +89,7 @@ def analyze(self, info: Dict[str, object], **kwargs) -> Dict[str, object]: # setup pre...
elastic__apm-agent-python-1187
assert scope["type"] == "http"`on websocket connection ` ...lib/python3.9/site-packages/elasticapm/contrib/starlette/__init__.py", line 135, in __call__ assert scope["type"] == "http" AssertionError ` **To Reproduce** ```py import uvicorn from elasticapm.contrib.starlette import make_apm_client, El...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following c...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following c...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index cb862f9e0..892624320 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -30,6 +30,20 @@ endif::[] //===== Bug fixes // +=== Unreleased + +// Unreleased changes go here +// When the next release happens, nest these changes under the "Python Agent ve...
mozmeao__snippets-service-1422
Add Firefox Relay to Firefox Services Targeting Field
[ { "content": "from django.core.exceptions import ValidationError\nfrom django.forms import (ChoiceField, ModelChoiceField, ModelMultipleChoiceField,\n MultiValueField, MultipleChoiceField)\n\nfrom snippets.base.models import Addon, TargetedCountry\n\nfrom .widgets import JEXLMultiWidget...
[ { "content": "from django.core.exceptions import ValidationError\nfrom django.forms import (ChoiceField, ModelChoiceField, ModelMultipleChoiceField,\n MultiValueField, MultipleChoiceField)\n\nfrom snippets.base.models import Addon, TargetedCountry\n\nfrom .widgets import JEXLMultiWidget...
diff --git a/snippets/base/admin/fields.py b/snippets/base/admin/fields.py index 8212aca9e..be2eb1053 100644 --- a/snippets/base/admin/fields.py +++ b/snippets/base/admin/fields.py @@ -198,6 +198,7 @@ def __init__(self, **kwargs): ('802d56ef2a9af9fa', 'Firefox Monitor'), ('1f30e32975ae5112|20f...
pypa__cibuildwheel-590
set MACOSX_DEPLOYMENT_TARGET for all stages? I recently adopted cibuildwheel (it is wonderful, thank you!), and made a broken release on older macs. The mistake I made was failing to set MACOSX_DEPLOYMENT_TARGET for the CIBW_BEFORE_ALL stage. I was surprised to see that CIBW has the feature to set MACOSX_DEPLOYMENT_TAR...
[ { "content": "import os\nimport platform\nimport re\nimport shlex\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nfrom pathlib import Path\nfrom typing import Any, Dict, List, NamedTuple, Optional, Sequence, Set, Tuple, cast\n\nfrom .architecture import Architecture\nfrom .environment import Par...
[ { "content": "import os\nimport platform\nimport re\nimport shlex\nimport shutil\nimport subprocess\nimport sys\nimport tempfile\nfrom pathlib import Path\nfrom typing import Any, Dict, List, NamedTuple, Optional, Sequence, Set, Tuple, cast\n\nfrom .architecture import Architecture\nfrom .environment import Par...
diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index e6395449f..3f23a330e 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -288,6 +288,7 @@ def build(options: BuildOptions) -> None: if options.before_all: log.step('Running before_all...') env = options.env...
netket__netket-966
get_conn_flattened out of bounds indexing I noticed that if one enables bound-checks in Numba code (which slows it down considerably, so Numba defaults to not performing it) we sometimes index and write data out of bounds in our `get_conn_flattened`. This is harmless for the given example (we write a zero to some ra...
[ { "content": "# Copyright 2021 The NetKet Authors - All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
[ { "content": "# Copyright 2021 The NetKet Authors - All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n...
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 64715b9d51..aae73eda10 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -37,6 +37,7 @@ jobs: mpi: "" main_tests: true oldest_deps: true + env: NUMBA_BOUNDSCHECK=1 #p...
psychopy__psychopy-2339
Setting "Custom code" in StaticComponent doesn't seem to have any effect The generated script doesn't contain any traces of the `Custom code` entered in the `StaticComponent`'s properties dialog. `psychopy:master`
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nPart of the PsychoPy library\nCopyright (C) 2018 Jonathan Peirce\nDistributed under the terms of the GNU General Public License (GPL).\n\"\"\"\n\nfrom __future__ import absolute_import, print_function\n\nfrom builtins import str\nfrom os im...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nPart of the PsychoPy library\nCopyright (C) 2018 Jonathan Peirce\nDistributed under the terms of the GNU General Public License (GPL).\n\"\"\"\n\nfrom __future__ import absolute_import, print_function\n\nfrom builtins import str\nfrom os im...
diff --git a/psychopy/experiment/components/static/__init__.py b/psychopy/experiment/components/static/__init__.py index 291a553bfe..0e9ca5f529 100644 --- a/psychopy/experiment/components/static/__init__.py +++ b/psychopy/experiment/components/static/__init__.py @@ -163,4 +163,11 @@ def writeParamUpdates(self, buff, up...
jupyterhub__jupyterhub-734
Deprecation of old spawners doesn't have a fallback The current code in `user.py` says: ``` 233 # prior to 0.7, spawners had to store this info in user.server themselves. 234 # Handle < 0.7 behavior with a warning, assuming info was stored in db by the Spawner. 235 self....
[ { "content": "\"\"\"Class for spawning single-user notebook servers.\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport errno\nimport os\nimport pipes\nimport pwd\nimport shutil\nimport signal\nimport sys\nimport grp\nimport warnings\nfrom su...
[ { "content": "\"\"\"Class for spawning single-user notebook servers.\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport errno\nimport os\nimport pipes\nimport pwd\nimport shutil\nimport signal\nimport sys\nimport grp\nimport warnings\nfrom su...
diff --git a/jupyterhub/spawner.py b/jupyterhub/spawner.py index 0ff15d1664..65d0dd3145 100644 --- a/jupyterhub/spawner.py +++ b/jupyterhub/spawner.py @@ -495,6 +495,16 @@ def start(self): raise self.pid = self.proc.pid + + if self.__class__ is not LocalProcessSpawner: + # subc...
ioos__compliance-checker-234
ACDD Test NetCDF file is not included in this repo The tests aren't very robust (read: only one test), but never the less it shouldn't be hardcoded like this. That file should be included in the compliance_checker/tests/data folder and referenced from there.
[ { "content": "import itertools\nfrom copy import deepcopy\nfrom collections import defaultdict\nfrom lxml import etree\nfrom cf_units import Unit\nfrom netCDF4 import Dimension, Variable\nfrom pkgutil import get_data\n\n# copied from paegan\n# paegan may depend on these later\n_possiblet = [\"time\", \"TIME\", ...
[ { "content": "import itertools\nfrom copy import deepcopy\nfrom collections import defaultdict\nfrom lxml import etree\nfrom cf_units import Unit\nfrom netCDF4 import Dimension, Variable\nfrom pkgutil import get_data\n\n# copied from paegan\n# paegan may depend on these later\n_possiblet = [\"time\", \"TIME\", ...
diff --git a/compliance_checker/cf/util.py b/compliance_checker/cf/util.py index bbe1d243..fdb17064 100644 --- a/compliance_checker/cf/util.py +++ b/compliance_checker/cf/util.py @@ -218,8 +218,8 @@ def get_coordinate(self, coord): if coord not in self.ds.variables: return if coord in sel...
cookiecutter__cookiecutter-django-1808
Some SECRET_KEY default values cause recursion error in environ.py This SECRET_KEY declaration causes a maximum recursion depth exceeded error. (Note: I never used this secret key value anywhere since I was just starting the project) ``` SECRET_KEY = env("DJANGO_SECRET_KEY", default='$%ify^q7jg*o7(5me*g%+ae-7_1iy)gey*...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init...
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 669edb0ef7..b43b08a5fb 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -118,9 +118,11 @@ def generate_random_string( if using_ascii_letters: symbols += string.ascii_letters if using_punctuation: - ...
conda__conda-build-2271
Set target in package section [feature request] ## Problem Currently the only way to change the target platform is using the built in way of handling variants. This involves including an additional file `conda_build_config.yaml`. When you try to set `target` in the package section it is completely ignored and when y...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport json\nfrom os.path import basename\nimport re\nimport tarfile\n\nfrom conda_build.utils import codec\n\n\ndef dist_fn(fn):\n if fn.endswith('.tar'):\n return fn[:-4]\n elif fn.endswith('.tar.bz2'):\n ret...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nimport json\nfrom os.path import basename\nimport re\nimport tarfile\n\nfrom conda_build.utils import codec\n\n\ndef dist_fn(fn):\n if fn.endswith('.tar'):\n return fn[:-4]\n elif fn.endswith('.tar.bz2'):\n ret...
diff --git a/conda_build/tarcheck.py b/conda_build/tarcheck.py index c9bf55e9a3..01f743d95f 100644 --- a/conda_build/tarcheck.py +++ b/conda_build/tarcheck.py @@ -82,7 +82,7 @@ def prefix_length(self): def correct_subdir(self): info = json.loads(self.t.extractfile('info/index.json').read().decode('utf-8...
great-expectations__great_expectations-2958
Use cleaner solution for non-truncating division in python 2 Prefer `from __future__ import division` to `1.*x/y`
[ { "content": "import uuid\nfrom typing import Dict, List, Optional, Union\n\nimport great_expectations.exceptions as ge_exceptions\nfrom great_expectations import DataContext\nfrom great_expectations.core import ExpectationConfiguration, ExpectationSuite\nfrom great_expectations.data_context.util import instant...
[ { "content": "import uuid\nfrom typing import Dict, List, Optional, Union\n\nimport great_expectations.exceptions as ge_exceptions\nfrom great_expectations import DataContext\nfrom great_expectations.core import ExpectationConfiguration, ExpectationSuite\nfrom great_expectations.data_context.util import instant...
diff --git a/great_expectations/rule_based_profiler/profiler.py b/great_expectations/rule_based_profiler/profiler.py index 71051120995f..56e0b8abf6d7 100644 --- a/great_expectations/rule_based_profiler/profiler.py +++ b/great_expectations/rule_based_profiler/profiler.py @@ -40,8 +40,7 @@ def __init__( These wi...
graphql-python__graphene-django-693
Prefetch_related in root resolver not preserved in children resolvers It seems that `prefetch_related` is not preserved in children resolvers. (`select_related` is no problem). ### Example This example is a simplified version of the code I am working with. #### Models ``` class Family(models.Model): name ...
[ { "content": "from functools import partial\n\nfrom django.db.models.query import QuerySet\nfrom graphene import NonNull\n\nfrom promise import Promise\n\nfrom graphene.types import Field, List\nfrom graphene.relay import ConnectionField, PageInfo\nfrom graphql_relay.connection.arrayconnection import connection...
[ { "content": "from functools import partial\n\nfrom django.db.models.query import QuerySet\nfrom graphene import NonNull\n\nfrom promise import Promise\n\nfrom graphene.types import Field, List\nfrom graphene.relay import ConnectionField, PageInfo\nfrom graphql_relay.connection.arrayconnection import connection...
diff --git a/graphene_django/fields.py b/graphene_django/fields.py index 8c8fa2bd7..eb1215ead 100644 --- a/graphene_django/fields.py +++ b/graphene_django/fields.py @@ -101,7 +101,7 @@ def resolve_connection(cls, connection, default_manager, args, iterable): iterable = default_manager iterable = m...
oppia__oppia-5650
Back-end tests error out on develop <!-- - Thanks for taking the time to report a bug in the Oppia project. - Before filing a new issue, please do a quick search to check that it hasn't - already been filed on the [issue tracker](https://github.com/oppia/oppia/issues)._ --> **Describe the bug** Post the...
[ { "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/feconf.py b/feconf.py index fc58687fbac51..e4f623060d532 100644 --- a/feconf.py +++ b/feconf.py @@ -25,8 +25,10 @@ # Whether to unconditionally log info messages. DEBUG = False -# When DEV_MODE = true check that we are running in development enviroment. -if (constants.DEV_MODE and +# When DEV_MODE is t...
comic__grand-challenge.org-3259
Unsupported upload interface type breaks later file uploads widgets I have a reader study with a 3d-liver-model interface (.obj kind). The following likely also extends to archive items. We don't support uploading these via the UI. However, when one of these interfaces is present all subsequent file upload widget...
[ { "content": "from django.forms.widgets import HiddenInput, MultipleHiddenInput\n\n\nclass UserUploadWidgetMixin:\n template_name = \"uploads/widget.html\"\n input_type = None\n\n def __init__(self, *args, allowed_file_types=None, **kwargs):\n super().__init__(*args, **kwargs)\n self.allo...
[ { "content": "from django.forms.widgets import HiddenInput, MultipleHiddenInput\n\n\nclass UserUploadWidgetMixin:\n template_name = \"uploads/widget.html\"\n input_type = None\n\n def __init__(self, *args, allowed_file_types=None, **kwargs):\n super().__init__(*args, **kwargs)\n self.allo...
diff --git a/app/grandchallenge/cases/templates/cases/flexible_image_widget.html b/app/grandchallenge/cases/templates/cases/flexible_image_widget.html index 8e341c291d..1456b847c7 100644 --- a/app/grandchallenge/cases/templates/cases/flexible_image_widget.html +++ b/app/grandchallenge/cases/templates/cases/flexible_ima...
secdev__scapy-1928
TTL setting in IGMP.igmpize method #### Brief description IGMP.igmpize method in Scapy 2.3.3 was setting IP.ttl value to 1. Currently ttl is not modified by this function. I consider this a bug as in docstring one can read: > 4. ttl = 1 (RFC 2236, section 2) The new behaviour has been introduced in revision...
[ { "content": "#! /usr/bin/env python\n\n# This file is part of Scapy\n# Scapy is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 2 of the License, or\n# any later version.\n#\n# Scapy is ...
[ { "content": "#! /usr/bin/env python\n\n# This file is part of Scapy\n# Scapy is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 2 of the License, or\n# any later version.\n#\n# Scapy is ...
diff --git a/scapy/contrib/igmp.py b/scapy/contrib/igmp.py index b66054ed2a8..5cbf9c03363 100644 --- a/scapy/contrib/igmp.py +++ b/scapy/contrib/igmp.py @@ -141,6 +141,7 @@ def igmpize(self): return False if not any(isinstance(x, IPOption_Router_Alert) for x in underlayer.options): # noqa...
nautobot__nautobot-840
psycopg2.errors.DuplicateTable: relation "health_check_db_testmodel" already exists <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with Nautobot installation, or if you have a general question, please ...
[ { "content": "# Generated by Django 3.1.13 on 2021-08-16 15:57\n\nfrom django.db import migrations, models\nimport uuid\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n (\"extras\", \"0011_fileattachment_fileproxy\"),\n ]\n\n operations = [\n migrations.CreateModel(\n ...
[ { "content": "# Generated by Django 3.1.13 on 2021-08-16 15:57\n\nfrom django.db import migrations, models\nimport uuid\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n (\"extras\", \"0011_fileattachment_fileproxy\"),\n ]\n\n operations = [\n migrations.CreateModel(\n ...
diff --git a/nautobot/extras/migrations/0012_healthchecktestmodel.py b/nautobot/extras/migrations/0012_healthchecktestmodel.py index 8a740a74148..176728153df 100644 --- a/nautobot/extras/migrations/0012_healthchecktestmodel.py +++ b/nautobot/extras/migrations/0012_healthchecktestmodel.py @@ -22,8 +22,5 @@ class Migrati...
paperless-ngx__paperless-ngx-1500
[BUG] Internal server error @ fresh install ### Description Get "Internal server error" with no description after a fresh install. Have I missed a step, or is this a bug? ### Steps to reproduce ... ### Webserver logs ```bash Nothing shows up using 'docker-compose logs -f' webserver_1 | [2022-08-30 23:21:18 +0...
[ { "content": "import os\n\nbind = f'{os.getenv(\"PAPERLESS_BIND_ADDR\", \"[::]\")}:{os.getenv(\"PAPERLESS_PORT\", 8000)}'\nworkers = int(os.getenv(\"PAPERLESS_WEBSERVER_WORKERS\", 1))\nworker_class = \"paperless.workers.ConfigurableWorker\"\ntimeout = 120\n\n\ndef pre_fork(server, worker):\n pass\n\n\ndef pr...
[ { "content": "import os\n\n# See https://docs.gunicorn.org/en/stable/settings.html for\n# explanations of settings\n\nbind = f'{os.getenv(\"PAPERLESS_BIND_ADDR\", \"[::]\")}:{os.getenv(\"PAPERLESS_PORT\", 8000)}'\n\nworkers = int(os.getenv(\"PAPERLESS_WEBSERVER_WORKERS\", 1))\nworker_class = \"paperless.workers...
diff --git a/gunicorn.conf.py b/gunicorn.conf.py index daebd4bea33..a3ada7a645b 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -1,9 +1,17 @@ import os +# See https://docs.gunicorn.org/en/stable/settings.html for +# explanations of settings + bind = f'{os.getenv("PAPERLESS_BIND_ADDR", "[::]")}:{os.getenv("P...
strawberry-graphql__strawberry-2535
Typing behavior change in strawberry 0.156.2 The `@strawberry.field` annotation behavior has changed at typing level between strawberry 0.156.1 and 0.156.2. It should now be a callable ## Describe the Bug Consider this simple code: ```python import strawberry @strawberry.type class Author: name: st...
[ { "content": "import builtins\nimport dataclasses\nimport inspect\nimport sys\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Awaitable,\n Callable,\n Dict,\n List,\n Mapping,\n Optional,\n Sequence,\n Type,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import...
[ { "content": "import builtins\nimport dataclasses\nimport inspect\nimport sys\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Awaitable,\n Callable,\n Coroutine,\n Dict,\n List,\n Mapping,\n Optional,\n Sequence,\n Type,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_e...
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000000..74a2795a97 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,20 @@ +Release type: patch + +This release fixes a regression introduce in version 0.156.2 that +would make Mypy throw an error in the following code: + +```python +import strawberry + + +@st...
svthalia__concrexit-2712
Paparazcie committee members cannot edit promo requests Members of the paparazcie cannot edit the promo requests in the back-end. I can, so it might be an issue with permissions.
[ { "content": "\"\"\"Registers admin interfaces for the models defined in this module.\"\"\"\nfrom django.contrib import admin\nfrom django.contrib.admin import ModelAdmin\n\nfrom events.services import is_organiser\nfrom promotion.forms import PromotionRequestForm\n\nfrom .models import PromotionChannel, Promot...
[ { "content": "\"\"\"Registers admin interfaces for the models defined in this module.\"\"\"\nfrom django.contrib import admin\nfrom django.contrib.admin import ModelAdmin\n\nfrom events.services import is_organiser\nfrom promotion.forms import PromotionRequestForm\n\nfrom .models import PromotionChannel, Promot...
diff --git a/website/promotion/admin.py b/website/promotion/admin.py index bd2c0df6e..690b4f2c4 100644 --- a/website/promotion/admin.py +++ b/website/promotion/admin.py @@ -23,8 +23,8 @@ class PromotionRequestAdmin(admin.ModelAdmin): actions = ["mark_not_started", "mark_started", "mark_finished", "mark_published"]...
scipy__scipy-16111
BUG: scipy.sparse.linalg.norm does not work on sparse arrays ### Describe your issue. Greetings. As from the document of sparse matrices : https://docs.scipy.org/doc/scipy/reference/sparse.html, both "Sparse array classes" and "Sparse matrix classes" belong to sparse matrices. Also, from the document of sparse.li...
[ { "content": "\"\"\"Sparse matrix norms.\n\n\"\"\"\nimport numpy as np\nfrom scipy.sparse import issparse\n\nfrom numpy import Inf, sqrt, abs\n\n__all__ = ['norm']\n\n\ndef _sparse_frobenius_norm(x):\n if np.issubdtype(x.dtype, np.complexfloating):\n sqnorm = abs(x).power(2).sum()\n else:\n ...
[ { "content": "\"\"\"Sparse matrix norms.\n\n\"\"\"\nimport numpy as np\nfrom scipy.sparse import issparse\n\nfrom numpy import Inf, sqrt, abs\n\n__all__ = ['norm']\n\n\ndef _sparse_frobenius_norm(x):\n if np.issubdtype(x.dtype, np.complexfloating):\n sqnorm = abs(x).power(2).sum()\n else:\n ...
diff --git a/scipy/sparse/linalg/_norm.py b/scipy/sparse/linalg/_norm.py index 8926eb7bdabd..a0721fd48ec6 100644 --- a/scipy/sparse/linalg/_norm.py +++ b/scipy/sparse/linalg/_norm.py @@ -177,6 +177,11 @@ def norm(x, ord=None, axis=None): except TypeError as e: raise ValueError('Invalid nor...
ivy-llc__ivy-28455
Fix `ivy.logical_not` support for bfloat16 at `paddle backend`
[ { "content": "# global\nimport math\nfrom typing import Optional, Union\n\nimport paddle\n\nimport ivy\nimport ivy.functional.backends.paddle as paddle_backend\nfrom ivy import promote_types_of_inputs\nfrom ivy.func_wrapper import (\n with_supported_device_and_dtypes,\n with_supported_dtypes,\n with_un...
[ { "content": "# global\nimport math\nfrom typing import Optional, Union\n\nimport paddle\n\nimport ivy\nimport ivy.functional.backends.paddle as paddle_backend\nfrom ivy import promote_types_of_inputs\nfrom ivy.func_wrapper import (\n with_supported_device_and_dtypes,\n with_supported_dtypes,\n with_un...
diff --git a/ivy/functional/backends/paddle/elementwise.py b/ivy/functional/backends/paddle/elementwise.py index b9f468220fe91..d066112f63143 100644 --- a/ivy/functional/backends/paddle/elementwise.py +++ b/ivy/functional/backends/paddle/elementwise.py @@ -377,14 +377,12 @@ def cos(x: paddle.Tensor, /, *, out: Optional...
networkx__networkx-7319
Empty GraphML attribute is not shown with networkx ### Current Behavior Currently, networkx does not show (GraphML) attributes that are empty. Here is little example. ```xml <?xml version='1.0' encoding='utf-8'?> <graphml> <key id="d1" for="node" attr.name="foo" attr.type="string"/> <key id="d2" for="nod...
[ { "content": "\"\"\"\n*******\nGraphML\n*******\nRead and write graphs in GraphML format.\n\n.. warning::\n\n This parser uses the standard xml library present in Python, which is\n insecure - see :external+python:mod:`xml` for additional information.\n Only parse GraphML files you trust.\n\nThis imple...
[ { "content": "\"\"\"\n*******\nGraphML\n*******\nRead and write graphs in GraphML format.\n\n.. warning::\n\n This parser uses the standard xml library present in Python, which is\n insecure - see :external+python:mod:`xml` for additional information.\n Only parse GraphML files you trust.\n\nThis imple...
diff --git a/networkx/readwrite/graphml.py b/networkx/readwrite/graphml.py index 3a9ab6a451a..7d4fd7a6673 100644 --- a/networkx/readwrite/graphml.py +++ b/networkx/readwrite/graphml.py @@ -1010,9 +1010,10 @@ def decode_data_elements(self, graphml_keys, obj_xml): edge_label = data_element.find(f"{pr...
litestar-org__litestar-1460
StaticFilesConfig and virtual directories I'm trying to write a ``FileSystemProtocol`` to load files from the package data using [importlib_resources](https://importlib-resources.readthedocs.io/en/latest/using.html#). But because ``directories`` is defined as ``DirectoryPath``, pydantic checks if the given directories ...
[ { "content": "from __future__ import annotations\n\nfrom datetime import date, datetime, time, timedelta\nfrom functools import partial\nfrom itertools import chain\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, Literal, Mapping, Sequence, cast\n\nfrom typing_extensions import Self, TypedDict...
[ { "content": "from __future__ import annotations\n\nfrom datetime import date, datetime, time, timedelta\nfrom functools import partial\nfrom itertools import chain\nfrom pathlib import Path\nfrom typing import TYPE_CHECKING, Any, Literal, Mapping, Sequence, cast\n\nfrom typing_extensions import Self, TypedDict...
diff --git a/litestar/app.py b/litestar/app.py index 80ade04e39..c73e88f860 100644 --- a/litestar/app.py +++ b/litestar/app.py @@ -348,7 +348,7 @@ def __init__( opt=dict(opt or {}), parameters=parameters or {}, plugins=list(plugins or []), - preferred_validation_backend...
ray-project__ray-2274
[Pandas on Ray] Cannot .loc by toDateTime Index Hi @devin-petersohn , I retried my example on the new machine @pcmoritz gave me, and I ran into an issue where I could not run .loc by index after I converted the index to DateTime. The same code works in Pandas. This time, I did figure how to print out the version of ...
[ { "content": "\"\"\"Indexing Helper Class works as follows:\n\n_Location_Indexer_Base provide methods framework for __getitem__\n and __setitem__ that work with Ray DataFrame's internal index. Base\n class's __{get,set}item__ takes in partitions & idx_in_partition data\n and perform lookup/item write.\n\n_Lo...
[ { "content": "\"\"\"Indexing Helper Class works as follows:\n\n_Location_Indexer_Base provide methods framework for __getitem__\n and __setitem__ that work with Ray DataFrame's internal index. Base\n class's __{get,set}item__ takes in partitions & idx_in_partition data\n and perform lookup/item write.\n\n_Lo...
diff --git a/python/ray/dataframe/indexing.py b/python/ray/dataframe/indexing.py index 5f99ce8773233..2fa2e1e8d2c2e 100644 --- a/python/ray/dataframe/indexing.py +++ b/python/ray/dataframe/indexing.py @@ -370,7 +370,11 @@ def _compute_enlarge_labels(self, locator, base_index): Returns: nan_labels...
conan-io__conan-9087
[question] using `boost/system` recipe with system-wide config <!-- What is your question? Please be as specific as possible! --> - [x] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/blob/develop/.github/CONTRIBUTING.md). Hi! My question is about `conan` recipes for system packages (like [gt...
[ { "content": "import os\n\nfrom conan.tools.cmake.cmakedeps.templates.config import ConfigTemplate\nfrom conan.tools.cmake.cmakedeps.templates.config_version import ConfigVersionTemplate\nfrom conan.tools.cmake.cmakedeps.templates.macros import MacrosTemplate\nfrom conan.tools.cmake.cmakedeps.templates.target_c...
[ { "content": "import os\n\nfrom conan.tools.cmake.cmakedeps.templates.config import ConfigTemplate\nfrom conan.tools.cmake.cmakedeps.templates.config_version import ConfigVersionTemplate\nfrom conan.tools.cmake.cmakedeps.templates.macros import MacrosTemplate\nfrom conan.tools.cmake.cmakedeps.templates.target_c...
diff --git a/conan/tools/cmake/cmakedeps/cmakedeps.py b/conan/tools/cmake/cmakedeps/cmakedeps.py index 238d77cc4bf..5a9b7c252ef 100644 --- a/conan/tools/cmake/cmakedeps/cmakedeps.py +++ b/conan/tools/cmake/cmakedeps/cmakedeps.py @@ -60,6 +60,10 @@ def content(self): if dep.is_build_context and dep.ref.name...
e2nIEE__pandapower-2019
fix bug with old values from AC power flow for results of DC power fl… …ow for res_bus (fixes #1996)
[ { "content": "# -*- coding: utf-8 -*-\r\n\r\n# Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics\r\n# and Energy System Technology (IEE), Kassel. All rights reserved.\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\nfrom pandas import DataFrame, notnull, isnull\r\n...
[ { "content": "# -*- coding: utf-8 -*-\r\n\r\n# Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics\r\n# and Energy System Technology (IEE), Kassel. All rights reserved.\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\nfrom pandas import DataFrame, notnull, isnull\r\n...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 464bf7771..4d93122fd 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,7 @@ Change Log - [FIXED] typos in cim2pp tutorial - [FIXED] creating geo coordinates form GL profile when ConnectivityNode is only in tp/tp_bd profile for cim2pp converter - [ADDED] simp...
getsentry__sentry-6798
Unable to disable "Claim unassigned issues when resolving them" At this page https://sentry.io/account/settings/notifications/ I have the "Claim unassigned issues when resolving them" checkbox enabled. If I disable this and click "Save Changes", it appears to save – it shows "Your settings were saved" – and some set...
[ { "content": "\"\"\"\nsentry.web.forms.accounts\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom datetime import datetime\n\nimport pytz\nfrom django imp...
[ { "content": "\"\"\"\nsentry.web.forms.accounts\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\n:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom datetime import datetime\n\nimport pytz\nfrom django imp...
diff --git a/src/sentry/web/forms/accounts.py b/src/sentry/web/forms/accounts.py index 494272da6c8bbf..3769fa8650d019 100644 --- a/src/sentry/web/forms/accounts.py +++ b/src/sentry/web/forms/accounts.py @@ -690,6 +690,12 @@ def save(self): value='1' if self.cleaned_data['self_notifications'] else '0', ...
streamlit__streamlit-149
On rerun, faded elements are becoming opaque one by one. Instead they become opaque all at once. Steps to repro: 1. Run `examples/reference.py` 2. When done, rerun it. **Expected:** on rerun, all elements fade out and then become opaque one by one even before the run is done. **Actual:** on rerun, all elements fa...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n# -*- coding: utf-8 -*-\n\nimport recommonmark\nfrom recommonmark.transform import AutoStructify\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with autodoc) ar...
[ { "content": "# Configuration file for the Sphinx documentation builder.\n# -*- coding: utf-8 -*-\n\nimport recommonmark\nfrom recommonmark.transform import AutoStructify\n\n# -- Path setup --------------------------------------------------------------\n\n# If extensions (or modules to document with autodoc) ar...
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index eb623519d19e..f720d818768e 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -3,4 +3,5 @@ **Decription:** Describe the changes you made to the code, so it's easier for the reader to navigate you...
pypa__setuptools-781
ImportError: cannot import name monkey ``` user@hostname:~/project$ venv/bin/pip install -U setuptools==27.1.0 Collecting setuptools==27.1.0 Downloading setuptools-27.1.0-py2.py3-none-any.whl (464kB) 100% |████████████████████████████████| 471kB 1.6MB/s Installing collected packages: setuptools Found existing ...
[ { "content": "\"\"\"\nMonkey patching of distutils.\n\"\"\"\n\nimport sys\nimport distutils.filelist\nimport platform\n\nimport setuptools\nfrom . import msvc\n\n\n__all__ = []\n\"\"\"\nEverything is private. Contact the project team\nif you think you need this functionality.\n\"\"\"\n\n\ndef get_unpatched(cls)...
[ { "content": "\"\"\"\nMonkey patching of distutils.\n\"\"\"\n\nimport sys\nimport distutils.filelist\nimport platform\n\nimport setuptools\n\n\n__all__ = []\n\"\"\"\nEverything is private. Contact the project team\nif you think you need this functionality.\n\"\"\"\n\n\ndef get_unpatched(cls):\n \"\"\"Protect...
diff --git a/setuptools/monkey.py b/setuptools/monkey.py index 63891e7476..3308383162 100644 --- a/setuptools/monkey.py +++ b/setuptools/monkey.py @@ -7,7 +7,6 @@ import platform import setuptools -from . import msvc __all__ = [] @@ -112,6 +111,8 @@ def patch_for_msvc_specialized_compiler(): Patch functio...
DataDog__dd-trace-py-2709
werkzeug.exceptions.NotFound logged as error Just recently started using ddtrace for APM, and perhaps I missed some configuration. If so, I apologize. ### Which version of dd-trace-py are you using? 0.46.0 ### Which version of pip are you using? 21.0.1 ### Which version of the libraries are you using? ...
[ { "content": "import flask\nimport werkzeug\n\nfrom ddtrace import Pin\nfrom ddtrace import config\nfrom ddtrace.vendor.wrapt import wrap_function_wrapper as _w\n\nfrom .. import trace_utils\nfrom ...constants import ANALYTICS_SAMPLE_RATE_KEY\nfrom ...constants import SPAN_MEASURED_KEY\nfrom ...ext import SpanT...
[ { "content": "import flask\nimport werkzeug\n\nfrom ddtrace import Pin\nfrom ddtrace import config\nfrom ddtrace.vendor.wrapt import wrap_function_wrapper as _w\n\nfrom .. import trace_utils\nfrom ...constants import ANALYTICS_SAMPLE_RATE_KEY\nfrom ...constants import SPAN_MEASURED_KEY\nfrom ...ext import SpanT...
diff --git a/ddtrace/contrib/flask/patch.py b/ddtrace/contrib/flask/patch.py index c26f61c5afd..2f7725fcba3 100644 --- a/ddtrace/contrib/flask/patch.py +++ b/ddtrace/contrib/flask/patch.py @@ -485,7 +485,10 @@ def _traced_request(pin, wrapped, instance, args, kwargs): except Exception: log.debug('...
pallets__click-2219
`ParamType` missing `name` errors on `to_info_dict` When calling `to_info_dict` on a `ParamType` instance which doesn't have a `name` attribute, an exception is raised. While this is a bug in the downstream code, only `to_info_dict` is affected, so the bug often goes unnoticed. ```py3 class TestType(click.ParamType...
[ { "content": "import os\nimport stat\nimport typing as t\nfrom datetime import datetime\nfrom gettext import gettext as _\nfrom gettext import ngettext\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import open_stream\nfrom .exceptions import BadParameter...
[ { "content": "import os\nimport stat\nimport typing as t\nfrom datetime import datetime\nfrom gettext import gettext as _\nfrom gettext import ngettext\n\nfrom ._compat import _get_argv_encoding\nfrom ._compat import get_filesystem_encoding\nfrom ._compat import open_stream\nfrom .exceptions import BadParameter...
diff --git a/CHANGES.rst b/CHANGES.rst index 0a9661a3f..91b9ec1c4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -48,6 +48,8 @@ Version 8.1.0 - A ``Group`` with ``invoke_without_command=True`` and ``chain=False`` will invoke its result callback with the group function's return value. :issue:`2124` +- ``to...
crytic__slither-1611
ERROR: unresolved reference to identifier _BITMASK_ADDRESS on ERC721A contracts ### Describe the issue: When using slither to check contracts that inherit from ERC721A we are getting the following error: ``` slither.exceptions.SlitherException: unresolved reference to identifier _BITMASK_ADDRESS Error: unresolve...
[ { "content": "import abc\nimport json\nfrom typing import Optional, Dict, List, Union\n\nfrom slither.core.cfg.node import NodeType, Node, link_nodes\nfrom slither.core.cfg.scope import Scope\nfrom slither.core.compilation_unit import SlitherCompilationUnit\nfrom slither.core.declarations import (\n Function...
[ { "content": "import abc\nimport json\nfrom typing import Optional, Dict, List, Union\n\nfrom slither.core.cfg.node import NodeType, Node, link_nodes\nfrom slither.core.cfg.scope import Scope\nfrom slither.core.compilation_unit import SlitherCompilationUnit\nfrom slither.core.declarations import (\n Function...
diff --git a/slither/solc_parsing/yul/parse_yul.py b/slither/solc_parsing/yul/parse_yul.py index f7c9938fc4..6be4803ca3 100644 --- a/slither/solc_parsing/yul/parse_yul.py +++ b/slither/solc_parsing/yul/parse_yul.py @@ -792,8 +792,9 @@ def parse_yul_identifier(root: YulScope, _node: YulNode, ast: Dict) -> Optional[ ...
ocadotechnology__codeforlife-portal-214
Print Reminder Cards Not Generating Cards anymore When a teacher tries to generate a reminder login card for a pupil, an error occurs. Trace in local: Traceback: `File "/home/c/.virtualenvs/rapid-router/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response` `132. response = wrapped_callback(r...
[ { "content": "# -*- coding: utf-8 -*-\n# Code for Life\n#\n# Copyright (C) 2016, Ocado Innovation Limited\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of...
[ { "content": "# -*- coding: utf-8 -*-\n# Code for Life\n#\n# Copyright (C) 2016, Ocado Innovation Limited\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as\n# published by the Free Software Foundation, either version 3 of...
diff --git a/portal/views/teacher/teach.py b/portal/views/teacher/teach.py index a91ea5696b..aea7266c5e 100644 --- a/portal/views/teacher/teach.py +++ b/portal/views/teacher/teach.py @@ -626,9 +626,9 @@ def teacher_print_reminder_cards(request, access_code): character = {'image': character_image, 'height': cha...
tobymao__sqlglot-74
Arguments to lambda functions wrapped in brackets even with only one argument ```python sql = """ transform(array('a','b','c'), X -> upper(X)) """ import sqlglot sqlglot.transpile(sql) ``` ``` > ["TRANSFORM(ARRAY('a', 'b', 'c'), (X) -> UPPER(X))"] ``` I discovered this as it was breaking some pyspark quer...
[ { "content": "import logging\n\nimport sqlglot.expressions as exp\nfrom sqlglot.errors import ErrorLevel, UnsupportedError\nfrom sqlglot.helper import apply_index_offset, csv, ensure_list\nfrom sqlglot.time import format_time\nfrom sqlglot.tokens import Tokenizer\n\n\nlogger = logging.getLogger(\"sqlglot\")\n\n...
[ { "content": "import logging\n\nimport sqlglot.expressions as exp\nfrom sqlglot.errors import ErrorLevel, UnsupportedError\nfrom sqlglot.helper import apply_index_offset, csv, ensure_list\nfrom sqlglot.time import format_time\nfrom sqlglot.tokens import Tokenizer\n\n\nlogger = logging.getLogger(\"sqlglot\")\n\n...
diff --git a/sqlglot/generator.py b/sqlglot/generator.py index f0ae91f6f4..e72482391f 100644 --- a/sqlglot/generator.py +++ b/sqlglot/generator.py @@ -423,9 +423,9 @@ def join_sql(self, expression): return f"{expression_sql}{op_sql} {this_sql}{on_sql}" def lambda_sql(self, expression): - return s...
googleapis__google-cloud-python-4170
Spanner: IndexError: pop from empty list when merge_array ``` return merger(lhs, rhs, type_) File ".../google/cloud/spanner_v1/streamed.py", line 259, in _merge_array first = rhs.pop(0) IndexError: pop from empty list ```
[ { "content": "# Copyright 2016 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
[ { "content": "# Copyright 2016 Google Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless...
diff --git a/spanner/google/cloud/spanner_v1/streamed.py b/spanner/google/cloud/spanner_v1/streamed.py index 4e989e29cb72..bf154af849b5 100644 --- a/spanner/google/cloud/spanner_v1/streamed.py +++ b/spanner/google/cloud/spanner_v1/streamed.py @@ -256,6 +256,12 @@ def _merge_array(lhs, rhs, type_): lhs.list_val...
borgbackup__borg-2485
--exclude is broken **Task:** --exclude and --exclude-from were inadvertently changed to recurse during the latest --patterns fixup. Restore correct behaviour. Reported by @jdchristensen
[ { "content": "import argparse\nimport fnmatch\nimport os.path\nimport re\nimport sys\nimport unicodedata\nfrom collections import namedtuple\nfrom enum import Enum\n\nfrom . import shellpattern\nfrom .helpers import clean_lines\n\n\ndef parse_patternfile_line(line, roots, ie_commands, fallback):\n \"\"\"Pars...
[ { "content": "import argparse\nimport fnmatch\nimport os.path\nimport re\nimport sys\nimport unicodedata\nfrom collections import namedtuple\nfrom enum import Enum\n\nfrom . import shellpattern\nfrom .helpers import clean_lines\n\n\ndef parse_patternfile_line(line, roots, ie_commands, fallback):\n \"\"\"Pars...
diff --git a/src/borg/patterns.py b/src/borg/patterns.py index d93c4166c3..924b51fe48 100644 --- a/src/borg/patterns.py +++ b/src/borg/patterns.py @@ -347,8 +347,8 @@ def parse_pattern(pattern, fallback=FnmatchPattern, recurse_dir=True): def parse_exclude_pattern(pattern_str, fallback=FnmatchPattern): """Read pat...
cobbler__cobbler-3433
`cobbler buildiso` mixes given arguments ### Describe the bug `cobbler buildiso` is switching the `--profile` and `--system`` arguments. ### Steps to reproduce 1. `cobbler buildiso --tempdir=/var/cache/cobbler/buildiso --iso /var/cache/cobbler/orchid.iso --distro=buildisodistro` 2. See error ### Expected b...
[ { "content": "\"\"\"\nThis module contains the specific code to generate a network bootable ISO.\n\"\"\"\n\n# SPDX-License-Identifier: GPL-2.0-or-later\n\nimport pathlib\nimport re\nfrom typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union\n\nfrom cobbler import utils\nfrom cobbler.actions impor...
[ { "content": "\"\"\"\nThis module contains the specific code to generate a network bootable ISO.\n\"\"\"\n\n# SPDX-License-Identifier: GPL-2.0-or-later\n\nimport pathlib\nimport re\nfrom typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union\n\nfrom cobbler import utils\nfrom cobbler.actions impor...
diff --git a/cobbler/actions/buildiso/netboot.py b/cobbler/actions/buildiso/netboot.py index 877bade620..4c13cd99ee 100644 --- a/cobbler/actions/buildiso/netboot.py +++ b/cobbler/actions/buildiso/netboot.py @@ -684,7 +684,7 @@ def run( system_names = input_converters.input_string_or_list_no_inherit(systems) ...
ckan__ckan-5482
Update events not captured in activity stream when using the dataset grid view in the organization **CKAN version** master **Describe the bug** Delete events not captured in activity stream when using the dataset grid view **Steps to reproduce** 1. Login with Admin 2. Go to Organization 3. Click on Manage 4...
[ { "content": "# encoding: utf-8\n\n'''API functions for updating existing data in CKAN.'''\n\nimport logging\nimport datetime\nimport time\nimport json\n\nfrom ckan.common import config\nimport ckan.common as converters\nimport six\nfrom six import text_type\n\nimport ckan.lib.helpers as h\nimport ckan.plugins ...
[ { "content": "# encoding: utf-8\n\n'''API functions for updating existing data in CKAN.'''\n\nimport logging\nimport datetime\nimport time\nimport json\n\nfrom ckan.common import config\nimport ckan.common as converters\nimport six\nfrom six import text_type\n\nimport ckan.lib.helpers as h\nimport ckan.plugins ...
diff --git a/ckan/logic/action/update.py b/ckan/logic/action/update.py index b08279c897a..882f20f109d 100644 --- a/ckan/logic/action/update.py +++ b/ckan/logic/action/update.py @@ -1202,6 +1202,17 @@ def _bulk_update_dataset(context, data_dict, update_dict): .filter(model.Package.owner_org == org_id) \ ...
getmoto__moto-2345
test_create_cluster_boto3 fails with timezones east of 0000 I get the following failure when running moto tests using `make test` on latest master: ``` F ====================================================================== FAIL: test_redshift.test_create_cluster_boto3 --------------------------------------------...
[ { "content": "from __future__ import unicode_literals\n\nimport copy\nimport datetime\n\nimport boto.redshift\nfrom botocore.exceptions import ClientError\nfrom moto.compat import OrderedDict\nfrom moto.core import BaseBackend, BaseModel\nfrom moto.core.utils import iso_8601_datetime_with_milliseconds\nfrom mot...
[ { "content": "from __future__ import unicode_literals\n\nimport copy\nimport datetime\n\nimport boto.redshift\nfrom botocore.exceptions import ClientError\nfrom moto.compat import OrderedDict\nfrom moto.core import BaseBackend, BaseModel\nfrom moto.core.utils import iso_8601_datetime_with_milliseconds\nfrom mot...
diff --git a/moto/redshift/models.py b/moto/redshift/models.py index 64e5c5e3502a..c0b783bde3d2 100644 --- a/moto/redshift/models.py +++ b/moto/redshift/models.py @@ -78,7 +78,7 @@ def __init__(self, redshift_backend, cluster_identifier, node_type, master_usern super(Cluster, self).__init__(region_name, tags) ...
bentoml__BentoML-3532
bug: unintended creation of wheel directory ### Describe the bug When the user specifies Python options with `wheels` as empty list instead of `None`, bentoml will create the wheel directory, causing `install.sh` to fail because it tries to install `*.whl` from the wheels directory, but there are no wheel files insi...
[ { "content": "from __future__ import annotations\n\nimport os\nimport re\nimport sys\nimport typing as t\nimport logging\nimport subprocess\nfrom sys import version_info\nfrom shlex import quote\nfrom typing import TYPE_CHECKING\n\nimport fs\nimport attr\nimport yaml\nimport psutil\nimport fs.copy\nfrom pathspe...
[ { "content": "from __future__ import annotations\n\nimport os\nimport re\nimport sys\nimport typing as t\nimport logging\nimport subprocess\nfrom sys import version_info\nfrom shlex import quote\nfrom typing import TYPE_CHECKING\n\nimport fs\nimport attr\nimport yaml\nimport psutil\nimport fs.copy\nfrom pathspe...
diff --git a/src/bentoml/_internal/bento/build_config.py b/src/bentoml/_internal/bento/build_config.py index e057c4b2db4..05dc409c80c 100644 --- a/src/bentoml/_internal/bento/build_config.py +++ b/src/bentoml/_internal/bento/build_config.py @@ -514,7 +514,7 @@ def write_to_bento(self, bento_fs: FS, build_ctx: str) -> N...
pretix__pretix-883
rich_text: tel schema When providing email links using the mailto schema in richtext description like `[Email us!](mailto:mail@weandus.com)`, resulting in [Email us!](mailto:mail@weandus.com), Pretix creates the correct `<a>` tag. However, users also use their mobile phone. It would be awesome to also be able to use th...
[ { "content": "import urllib.parse\n\nimport bleach\nimport markdown\nfrom bleach import DEFAULT_CALLBACKS\nfrom django import template\nfrom django.conf import settings\nfrom django.core import signing\nfrom django.urls import reverse\nfrom django.utils.http import is_safe_url\nfrom django.utils.safestring impo...
[ { "content": "import urllib.parse\n\nimport bleach\nimport markdown\nfrom bleach import DEFAULT_CALLBACKS\nfrom django import template\nfrom django.conf import settings\nfrom django.core import signing\nfrom django.urls import reverse\nfrom django.utils.http import is_safe_url\nfrom django.utils.safestring impo...
diff --git a/src/pretix/base/templatetags/rich_text.py b/src/pretix/base/templatetags/rich_text.py index 682ce0cb3a2..98d54357768 100644 --- a/src/pretix/base/templatetags/rich_text.py +++ b/src/pretix/base/templatetags/rich_text.py @@ -63,7 +63,7 @@ def safelink_callback(attrs, new=False): url = attrs.get((Non...
open-mmlab__mmdetection-3528
Can not train ATSS when samples_per_gpu=1. https://github.com/open-mmlab/mmdetection/blob/8194b16d0bc2dcb99aeb21733d9c18cedb9e076a/mmdet/models/dense_heads/atss_head.py#L177 The mentioned code may produce non-contiguous tensor when batch=1.
[ { "content": "import torch\nimport torch.distributed as dist\nimport torch.nn as nn\nfrom mmcv.cnn import ConvModule, Scale, bias_init_with_prob, normal_init\n\nfrom mmdet.core import (anchor_inside_flags, build_assigner, build_sampler,\n force_fp32, images_to_levels, multi_apply,\n ...
[ { "content": "import torch\nimport torch.distributed as dist\nimport torch.nn as nn\nfrom mmcv.cnn import ConvModule, Scale, bias_init_with_prob, normal_init\n\nfrom mmdet.core import (anchor_inside_flags, build_assigner, build_sampler,\n force_fp32, images_to_levels, multi_apply,\n ...
diff --git a/mmdet/models/dense_heads/atss_head.py b/mmdet/models/dense_heads/atss_head.py index 61ab87ef6e2..fe54098c4ea 100644 --- a/mmdet/models/dense_heads/atss_head.py +++ b/mmdet/models/dense_heads/atss_head.py @@ -173,8 +173,8 @@ def loss_single(self, anchors, cls_score, bbox_pred, centerness, labels, "...
buildbot__buildbot-5345
Windows service fails after upgrade from 2.7.0 to 2.8.1 Hello, Windows 7 Buildbot 2.8.1 Twisted 20.3.0 pywin32 227 I upgraded my Buildbot master from version 2.7.0 to version 2.8.1. Buildbot is configured to run as a Windows service. After the upgrade, the service starts then quickly stops. The twistd.log doe...
[ { "content": "# pylint: disable=import-outside-toplevel\n# # Runs the build-bot as a Windows service.\n# To use:\n# * Install and configure buildbot as per normal (ie, running\n# 'setup.py install' from the source directory).\n#\n# * Configure any number of build-bot directories (workers or masters), as\n# p...
[ { "content": "# pylint: disable=import-outside-toplevel\n# # Runs the build-bot as a Windows service.\n# To use:\n# * Install and configure buildbot as per normal (ie, running\n# 'setup.py install' from the source directory).\n#\n# * Configure any number of build-bot directories (workers or masters), as\n# p...
diff --git a/master/buildbot/newsfragments/windows-service-crash.bugfix b/master/buildbot/newsfragments/windows-service-crash.bugfix new file mode 100644 index 000000000000..9ae7fdad460d --- /dev/null +++ b/master/buildbot/newsfragments/windows-service-crash.bugfix @@ -0,0 +1 @@ +Fix crash in Buildbot Windows service s...
Pycord-Development__pycord-2034
Upcoming Thread Changes Will be applied on March 6, 2023 https://github.com/discord/discord-api-docs/pull/5919
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2015-2021 Rapptz\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without r...
diff --git a/discord/threads.py b/discord/threads.py index 6eb1bfc0a9..232fdbb66f 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -611,7 +611,7 @@ async def edit( Editing the thread requires :attr:`.Permissions.manage_threads`. The thread creator can also edit ``name``, ``archived`` or ``a...
microsoft__ptvsd-445
Breakpoints not hitting when used in conjunction with exceptions * Here's the program ```python 1. for i in range(10): 2. print("one") 3. try: 4. raise AttributeError() 5. except: 6. pass ``` * Add a breakpoint to line 2 and line 4 * Start debugging * First loop, both break points...
[ { "content": "import linecache\nimport os.path\nimport re\nimport sys\nimport traceback # @Reimport\n\nfrom _pydev_bundle import pydev_log\nfrom _pydevd_bundle import pydevd_dont_trace\nfrom _pydevd_bundle import pydevd_vars\nfrom _pydevd_bundle.pydevd_breakpoints import get_exception_breakpoint\nfrom _pydevd_...
[ { "content": "import linecache\nimport os.path\nimport re\nimport sys\nimport traceback # @Reimport\n\nfrom _pydev_bundle import pydev_log\nfrom _pydevd_bundle import pydevd_dont_trace\nfrom _pydevd_bundle import pydevd_vars\nfrom _pydevd_bundle.pydevd_breakpoints import get_exception_breakpoint\nfrom _pydevd_...
diff --git a/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py b/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py index 284ee6611..25c3233cf 100644 --- a/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py +++ b/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py @@ -621,7 +621,7 @@ def trace_dispatch(self...
litestar-org__litestar-695
Bug: Header values should not be lowercased **Describe the bug** Headers keys and values are lowercased before being rendered. While lowercasing key is fine (as per HTTP2 spec), lowercasing values should not be done. For my use case, integrating with a payment provider involves passing a transaction ID as a header....
[ { "content": "from typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n Generic,\n List,\n Optional,\n Tuple,\n TypeVar,\n Union,\n cast,\n)\n\nfrom orjson import OPT_INDENT_2, OPT_OMIT_MICROSECONDS, OPT_SERIALIZE_NUMPY, dumps\nfrom pydantic_openapi_schema.v3_1_0 import OpenAPI\nfrom ...
[ { "content": "from typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n Generic,\n List,\n Optional,\n Tuple,\n TypeVar,\n Union,\n cast,\n)\n\nfrom orjson import OPT_INDENT_2, OPT_OMIT_MICROSECONDS, OPT_SERIALIZE_NUMPY, dumps\nfrom pydantic_openapi_schema.v3_1_0 import OpenAPI\nfrom ...
diff --git a/starlite/response/base.py b/starlite/response/base.py index d06ffaf35a..ed64577a5c 100644 --- a/starlite/response/base.py +++ b/starlite/response/base.py @@ -255,7 +255,7 @@ def encoded_headers(self) -> List[Tuple[bytes, bytes]]: content_type = self.media_type encoded_headers = [ - ...
Qiskit__qiskit-1849
Text circuit drawer raises ValueError if an empty circuit is given <!-- ⚠️ If you do not respect this template, your issue will be closed --> <!-- ⚠️ Make sure to browse the opened and closed issues --> ### Information - **Qiskit Terra version**: 0.7.3 - **Python version**: 3.6.8 - **Operating system**: macOS ...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright 2018, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"\nA module for drawing circuits in ascii art or some other text representation\n\"\"\"\n\n...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright 2018, IBM.\n#\n# This source code is licensed under the Apache License, Version 2.0 found in\n# the LICENSE.txt file in the root directory of this source tree.\n\n\"\"\"\nA module for drawing circuits in ascii art or some other text representation\n\"\"\"\n\n...
diff --git a/qiskit/tools/visualization/_text.py b/qiskit/tools/visualization/_text.py index 90c78301a607..5d5a0df978ef 100644 --- a/qiskit/tools/visualization/_text.py +++ b/qiskit/tools/visualization/_text.py @@ -784,8 +784,11 @@ def build_layers(self): Raises: VisualizationError: When the drawi...
kornia__kornia-2323
Wrong shape check on `pos_weight` in focal loss ### Describe the bug The shape checking mechanism for the argument `pos_weight` of the focal loss function is wrong. https://github.com/kornia/kornia/blob/master/kornia/losses/focal.py#L206 ### Reproduction steps ```bash input_shape: [B, C, H, W] pos_weight_sh...
[ { "content": "from __future__ import annotations\n\nimport warnings\n\nimport torch\nimport torch.nn as nn\n\nfrom kornia.core import Tensor\nfrom kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE\nfrom kornia.utils.one_hot import one_hot\n\n# based on:\n# https://github.com/zhez...
[ { "content": "from __future__ import annotations\n\nimport warnings\n\nimport torch\nimport torch.nn as nn\n\nfrom kornia.core import Tensor\nfrom kornia.core.check import KORNIA_CHECK, KORNIA_CHECK_IS_TENSOR, KORNIA_CHECK_SHAPE\nfrom kornia.utils.one_hot import one_hot\n\n# based on:\n# https://github.com/zhez...
diff --git a/kornia/losses/focal.py b/kornia/losses/focal.py index cdee977278..b0555ca5bf 100644 --- a/kornia/losses/focal.py +++ b/kornia/losses/focal.py @@ -200,10 +200,10 @@ def binary_focal_loss_with_logits( ) if pos_weight is None: - pos_weight = torch.ones(input.shape[-1], device=input.device, ...
kubeflow__pipelines-4231
Metadata Writer stopped getting the artifact types All outputs are getting recorded as NoType. ```yaml annotations: pipelines.kubeflow.org/component_spec: >- {"name": "Create visualizations", "outputs": [{"name": "Some Url 1", "type": "URI"}, {"name": "Some Url 2", "type": {"URI": {"data_type": ...
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/backend/metadata_writer/src/metadata_writer.py b/backend/metadata_writer/src/metadata_writer.py index ee6ac71d990..f50942b0a11 100644 --- a/backend/metadata_writer/src/metadata_writer.py +++ b/backend/metadata_writer/src/metadata_writer.py @@ -80,7 +80,9 @@ def patch_pod_metadata( def output_name_to_arg...
searx__searx-487
AttributeError: 'module' object has no attribute 'old_where' I updated my searx instance today, and got the following error: ``` Traceback (most recent call last): File "/usr/local/searx/searx/__init__.py", line 55, in <module> environ['REQUESTS_CA_BUNDLE'] = certifi.old_where() AttributeError: 'module' object h...
[ { "content": "'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will b...
[ { "content": "'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed in the hope that it will b...
diff --git a/searx/__init__.py b/searx/__init__.py index 76038a443f..7b67a394f7 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -52,7 +52,8 @@ # Workaround for openssl versions <1.0.2 # https://github.com/certifi/python-certifi/issues/26 if OPENSSL_VERSION_INFO[0:3] < (1, 0, 2): - environ['REQUESTS_CA_B...
Textualize__textual-441
[textual][bug] CSS rule parsing fails when the name of the colour we pass contains a digit So while this is working correctly: ```css #my_widget { background: dark_cyan; } ``` ...this fails: ```css #my_widget { background: turquoise4; } ``` ...with the following error: ``` • failed to parse color '...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom typing import Iterable\n\nfrom textual.css.tokenizer import Expect, Tokenizer, Token\n\nCOMMENT_START = r\"\\/\\*\"\nSCALAR = r\"\\-?\\d+\\.?\\d*(?:fr|%|w|h|vw|vh)\"\nDURATION = r\"\\d+\\.?\\d*(?:ms|s)\"\nNUMBER = r\"\\-?\\d+\\.?\\d*\"\nCOLOR =...
[ { "content": "from __future__ import annotations\n\nimport re\nfrom typing import Iterable\n\nfrom textual.css.tokenizer import Expect, Tokenizer, Token\n\nCOMMENT_START = r\"\\/\\*\"\nSCALAR = r\"\\-?\\d+\\.?\\d*(?:fr|%|w|h|vw|vh)\"\nDURATION = r\"\\d+\\.?\\d*(?:ms|s)\"\nNUMBER = r\"\\-?\\d+\\.?\\d*\"\nCOLOR =...
diff --git a/src/textual/css/tokenize.py b/src/textual/css/tokenize.py index 3ccc8166f9..7d5dbe3a02 100644 --- a/src/textual/css/tokenize.py +++ b/src/textual/css/tokenize.py @@ -11,7 +11,7 @@ NUMBER = r"\-?\d+\.?\d*" COLOR = r"\#[0-9a-fA-F]{8}|\#[0-9a-fA-F]{6}|rgb\(\-?\d+\.?\d*,\-?\d+\.?\d*,\-?\d+\.?\d*\)|rgba\(\-?\...
rucio__rucio-5793
receiver doesn't correctly handle intermediate hops on fts 3.12 Motivation ---------- The last major FTS release started to correctly fill "job_state" for those messages as "ACTIVE". This is a behavioral change which makes rucio skip those messages. https://github.com/rucio/rucio/blob/5e911923990cc9c3caa0afbfec91...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright European Organization for Nuclear Research (CERN) since 2012\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://w...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright European Organization for Nuclear Research (CERN) since 2012\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://w...
diff --git a/lib/rucio/daemons/conveyor/receiver.py b/lib/rucio/daemons/conveyor/receiver.py index f6a4bf06f8..bbecd50cff 100644 --- a/lib/rucio/daemons/conveyor/receiver.py +++ b/lib/rucio/daemons/conveyor/receiver.py @@ -71,7 +71,7 @@ def on_message(self, frame): and 'issuer' in msg['job_metadata'].keys()...
PokemonGoF__PokemonGo-Bot-2531
[Dev] local variable 'unexpected_reponse_retry' referenced before assignment There is a typo in a variable `unexpected_reponse_retry` should be `unexpected_response_retry` /pokemongo_bot/api_wrapper.py - line 120
[ { "content": "import time\n\nfrom pgoapi.exceptions import (ServerSideRequestThrottlingException,\n NotLoggedInException, ServerBusyOrOfflineException,\n NoPlayerPositionSetException, EmptySubrequestChainException,\n UnexpectedResponseException)\nfrom pgoapi.pgoapi import PGoApi, PGoApiRequest, RpcApi\...
[ { "content": "import time\n\nfrom pgoapi.exceptions import (ServerSideRequestThrottlingException,\n NotLoggedInException, ServerBusyOrOfflineException,\n NoPlayerPositionSetException, EmptySubrequestChainException,\n UnexpectedResponseException)\nfrom pgoapi.pgoapi import PGoApi, PGoApiRequest, RpcApi\...
diff --git a/pokemongo_bot/api_wrapper.py b/pokemongo_bot/api_wrapper.py index a3f70aed1f..b9c4f576d1 100644 --- a/pokemongo_bot/api_wrapper.py +++ b/pokemongo_bot/api_wrapper.py @@ -117,7 +117,7 @@ def call(self, max_retry=15): continue # skip response checking if should_unexpected_resp...
zulip__zulip-1112
Commit c74a74d causes docker dev image build to fail. Hi, I had 1.3.13 successfully install in a docker dev environment, which fully built and installed. I decided to try the latest source in master today and this error occurred: ``` running install running build running build_py creating build cr...
[ { "content": "from __future__ import print_function\n\nimport os\nimport sys\nfrom os.path import dirname, abspath\nimport subprocess\nfrom zulip_tools import run\n\nZULIP_PATH = dirname(dirname(dirname(abspath(__file__))))\nVENV_CACHE_PATH = \"/srv/zulip-venv-cache\"\n\nif '--travis' in sys.argv:\n # In Tra...
[ { "content": "from __future__ import print_function\n\nimport os\nimport sys\nfrom os.path import dirname, abspath\nimport subprocess\nfrom zulip_tools import run\n\nZULIP_PATH = dirname(dirname(dirname(abspath(__file__))))\nVENV_CACHE_PATH = \"/srv/zulip-venv-cache\"\n\nif '--travis' in sys.argv:\n # In Tra...
diff --git a/scripts/lib/setup_venv.py b/scripts/lib/setup_venv.py index ade377ef2684a..deb89effdc575 100644 --- a/scripts/lib/setup_venv.py +++ b/scripts/lib/setup_venv.py @@ -18,6 +18,7 @@ from typing import List, Optional VENV_DEPENDENCIES = [ + "build-essential", "libffi-dev", "libfreetype6-dev...
praw-dev__praw-1810
Failed to upload a video. **Describe the bug** Failed to upload a video. **To Reproduce** Steps to reproduce the behavior: submit any video **Code/Logs** ``` >>> s = sbrdt.submit_video ('video', 'myvideo.mp4') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/gaspar/.l...
[ { "content": "\"\"\"praw setup.py\"\"\"\n\nimport re\nfrom codecs import open\nfrom os import path\n\nfrom setuptools import find_packages, setup\n\nPACKAGE_NAME = \"praw\"\nHERE = path.abspath(path.dirname(__file__))\nwith open(path.join(HERE, \"README.rst\"), encoding=\"utf-8\") as fp:\n README = fp.read()...
[ { "content": "\"\"\"praw setup.py\"\"\"\n\nimport re\nfrom codecs import open\nfrom os import path\n\nfrom setuptools import find_packages, setup\n\nPACKAGE_NAME = \"praw\"\nHERE = path.abspath(path.dirname(__file__))\nwith open(path.join(HERE, \"README.rst\"), encoding=\"utf-8\") as fp:\n README = fp.read()...
diff --git a/setup.py b/setup.py index 63c760b13..ec059d7af 100644 --- a/setup.py +++ b/setup.py @@ -64,7 +64,7 @@ keywords="reddit api wrapper", license="Simplified BSD License", long_description=README, - package_data={"": ["LICENSE.txt"], PACKAGE_NAME: ["*.ini", "images/*.jpg"]}, + package_data=...
freedomofpress__securedrop-3648
journalist notification incorrectly claims submissions were received ## Description A journalist notification mail is sent claiming a submission was received in the past 24h. But after checking the journalist interface, there is nothing. ## Steps to Reproduce * drain the source of entropy * as a new source s...
[ { "content": "# -*- coding: utf-8 -*-\nimport binascii\nimport datetime\nimport base64\nimport os\nimport scrypt\nimport pyotp\nimport qrcode\n# Using svg because it doesn't require additional dependencies\nimport qrcode.image.svg\n\n# Find the best implementation available on this platform\ntry:\n from cStr...
[ { "content": "# -*- coding: utf-8 -*-\nimport binascii\nimport datetime\nimport base64\nimport os\nimport scrypt\nimport pyotp\nimport qrcode\n# Using svg because it doesn't require additional dependencies\nimport qrcode.image.svg\n\n# Find the best implementation available on this platform\ntry:\n from cStr...
diff --git a/securedrop/models.py b/securedrop/models.py index 1c9874ff63..c3c112ff63 100644 --- a/securedrop/models.py +++ b/securedrop/models.py @@ -49,7 +49,7 @@ class Source(db.Model): filesystem_id = Column(String(96), unique=True) journalist_designation = Column(String(255), nullable=False) flagged...
sopel-irc__sopel-1920
rule: $nick in regex pattern is confusing ### The problem When using `sopel.module.rule`, you can have the variable `$nick` in the regex pattern: ``` r'$nickhello' # will match "Bot: hello" r'$nick hello' # won't match "Bot: hello", but "Bot: hello" (two spaces) ``` The `$nick` variable is super confusing ...
[ { "content": "# coding=utf-8\n\"\"\"Useful miscellaneous tools and shortcuts for Sopel plugins\n\n*Availability: 3+*\n\"\"\"\n\n# tools.py - Sopel misc tools\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Copyright © 2012, Elad Alfassa <elad@fedoraproject.org>\n# Copyright 2012, Elsie Powell, embolalia.com\...
[ { "content": "# coding=utf-8\n\"\"\"Useful miscellaneous tools and shortcuts for Sopel plugins\n\n*Availability: 3+*\n\"\"\"\n\n# tools.py - Sopel misc tools\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Copyright © 2012, Elad Alfassa <elad@fedoraproject.org>\n# Copyright 2012, Elsie Powell, embolalia.com\...
diff --git a/sopel/tools/__init__.py b/sopel/tools/__init__.py index 55f83dde6a..0d9418cb8a 100644 --- a/sopel/tools/__init__.py +++ b/sopel/tools/__init__.py @@ -214,9 +214,11 @@ def compile_rule(nick, pattern, alias_nicks): nick = re.escape(nick) pattern = pattern.replace('$nickname', nick) - patte...
kivy__python-for-android-735
Libffi recipe fails with "unrecognized options: --enable-shared" I'm trying to use the packaged `cryptography` recipe, which includes the `Libffi` recipe as a dependency. I'm getting the following errors with `Libffi` while trying to build the apk: ``` configure: WARNING: unrecognized options: --enable-shared configu...
[ { "content": "from pythonforandroid.recipe import Recipe\nfrom pythonforandroid.logger import shprint\nfrom pythonforandroid.util import current_directory\nfrom os.path import exists, join\nimport sh\nimport glob\n\n\nclass LibffiRecipe(Recipe):\n\tname = 'libffi'\n\tversion = 'v3.2.1'\n\turl = 'https://github....
[ { "content": "from pythonforandroid.recipe import Recipe\nfrom pythonforandroid.logger import shprint\nfrom pythonforandroid.util import current_directory\nfrom os.path import exists, join\nimport sh\nimport glob\n\n\nclass LibffiRecipe(Recipe):\n\tname = 'libffi'\n\tversion = 'v3.2.1'\n\turl = 'https://github....
diff --git a/pythonforandroid/recipes/libffi/__init__.py b/pythonforandroid/recipes/libffi/__init__.py index b4adf9a391..cbceed4a00 100644 --- a/pythonforandroid/recipes/libffi/__init__.py +++ b/pythonforandroid/recipes/libffi/__init__.py @@ -40,6 +40,7 @@ def build_arch(self, arch): with current_directory(self.get_...
huggingface__dataset-viewer-2733
/search and /filter are currently broken Any search or filter is currently failing. https://datasets-server.huggingface.co/search?dataset=gsarti%2Fflores_101&config=afr&split=devtest&offset=0&length=100&query=a https://datasets-server.huggingface.co/filter?dataset=gsarti%2Fflores_101&config=afr&split=devtest&offset...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n# Copyright 2023 The HuggingFace Authors.\n\nimport errno\nimport json\nimport logging\nimport os\nimport re\nfrom hashlib import sha1\nfrom typing import Optional\n\nimport anyio\nfrom anyio import Path\nfrom libcommon.constants import DUCKDB_INDEX_DOWNLOADS...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n# Copyright 2023 The HuggingFace Authors.\n\nimport errno\nimport json\nimport logging\nimport os\nimport re\nfrom hashlib import sha1\nfrom typing import Optional\n\nimport anyio\nfrom anyio import Path\nfrom libcommon.constants import DUCKDB_INDEX_DOWNLOADS...
diff --git a/libs/libapi/src/libapi/duckdb.py b/libs/libapi/src/libapi/duckdb.py index f4065fd10f..a466494fcc 100644 --- a/libs/libapi/src/libapi/duckdb.py +++ b/libs/libapi/src/libapi/duckdb.py @@ -75,7 +75,12 @@ def get_download_folder( def check_available_disk_space(path: StrPath, required_space: int) -> None: ...
borgbackup__borg-7665
2.0.0b6 - `borg benchmark cpu` results in a local exception While testing borgbackup-2.0.0b6 on OpenBSD: ``` $ borg benchmark cpu Chunkers ======================================================= buzhash,19,23,21,4095 1GB 8.041s fixed,1048576 1GB 0.134s Non-cryptographic checksums / h...
[ { "content": "import argparse\nfrom contextlib import contextmanager\nimport functools\nimport os\nimport tempfile\nimport time\n\nfrom ..constants import * # NOQA\nfrom ..crypto.key import FlexiKey\nfrom ..helpers import format_file_size\nfrom ..helpers import msgpack\nfrom ..item import Item\nfrom ..platform...
[ { "content": "import argparse\nfrom contextlib import contextmanager\nimport functools\nimport os\nimport tempfile\nimport time\n\nfrom ..constants import * # NOQA\nfrom ..crypto.key import FlexiKey\nfrom ..helpers import format_file_size\nfrom ..helpers import msgpack\nfrom ..item import Item\nfrom ..platform...
diff --git a/src/borg/archiver/benchmark_cmd.py b/src/borg/archiver/benchmark_cmd.py index 86d44ac001..e8a362c855 100644 --- a/src/borg/archiver/benchmark_cmd.py +++ b/src/borg/archiver/benchmark_cmd.py @@ -204,7 +204,7 @@ def chunkit(chunker_name, *args, **kwargs): print(f"{spec:<12} {size:<10} {timeit(la...
zigpy__zha-device-handlers-763
[BUG] ZHA aquara pressure sensor is not updating **Describe the bug** I'm seeing update messages in the debug logs, but in the pressure is not updating in the ui **Expected behavior** measurements in the UI should match values in the logs. **Screenshots** ![image](https://user-images.githubusercontent.com...
[ { "content": "\"\"\"Xiaomi common components for custom device handlers.\"\"\"\nimport binascii\nimport logging\nimport math\nfrom typing import Optional, Union\n\nfrom zigpy import types as t\nimport zigpy.device\nfrom zigpy.profiles import zha\nfrom zigpy.quirks import CustomCluster, CustomDevice\nfrom zigpy....
[ { "content": "\"\"\"Xiaomi common components for custom device handlers.\"\"\"\nimport binascii\nimport logging\nimport math\nfrom typing import Optional, Union\n\nfrom zigpy import types as t\nimport zigpy.device\nfrom zigpy.profiles import zha\nfrom zigpy.quirks import CustomCluster, CustomDevice\nfrom zigpy....
diff --git a/zhaquirks/xiaomi/__init__.py b/zhaquirks/xiaomi/__init__.py index dc0a9a050d..20043cb0a7 100644 --- a/zhaquirks/xiaomi/__init__.py +++ b/zhaquirks/xiaomi/__init__.py @@ -393,9 +393,9 @@ def __init__(self, *args, **kwargs): self.endpoint.device.pressure_bus.add_listener(self) def _update_att...
OCA__server-tools-74
[7.0] [base_optional_quick_create] AttributeError: 'NoneType' object has no attribute 'name_create' Error at starting before a migration if a model has been removed
[ { "content": "# -*- coding: utf-8 -*-\n##############################################################################\n#\n# Copyright (C) 2013 Agile Business Group sagl (<http://www.agilebg.com>)\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU...
[ { "content": "# -*- coding: utf-8 -*-\n##############################################################################\n#\n# Copyright (C) 2013 Agile Business Group sagl (<http://www.agilebg.com>)\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU...
diff --git a/base_optional_quick_create/model.py b/base_optional_quick_create/model.py index ab36da1866f..df927a1d40b 100644 --- a/base_optional_quick_create/model.py +++ b/base_optional_quick_create/model.py @@ -45,7 +45,7 @@ def _register_hook(self, cr, ids=None): if model.avoid_quick_create: ...
jupyterhub__jupyterhub-2264
Username with upper-case character causes 500 error **Describe the bug** I am on Ubuntu 16.04. If I create a username with an upper-case character, say userA1, I get a 500 Internal Server Error when I log in to JupyterHub. The stack trace: Traceback (most recent call last): File "/anaconda/envs/py35/lib/...
[ { "content": "\"\"\"Base Authenticator class and the default PAM Authenticator\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom concurrent.futures import ThreadPoolExecutor\nimport pipes\nimport re\nfrom shutil import which\nimport sys\nfrom ...
[ { "content": "\"\"\"Base Authenticator class and the default PAM Authenticator\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nfrom concurrent.futures import ThreadPoolExecutor\nimport pipes\nimport re\nfrom shutil import which\nimport sys\nfrom ...
diff --git a/jupyterhub/auth.py b/jupyterhub/auth.py index b3c79b9c9e..e7f68c2029 100644 --- a/jupyterhub/auth.py +++ b/jupyterhub/auth.py @@ -554,7 +554,12 @@ async def add_user(self, user): if self.create_system_users: await maybe_future(self.add_system_user(user)) else: - ...
secdev__scapy-2931
TLS1.3 Extension for SignatureAlgorithmsCert is using wrong Type value **Brief description** "Type" is set to 0x31 (PostHandshakeAuth), should be using 0x32 (SignatureAlgorithmsCert). https://github.com/secdev/scapy/blob/e79833e46ec33be0880447a1983e3840676302fe/scapy/layers/tls/extensions.py#L658-L667
[ { "content": "# This file is part of Scapy\n# Copyright (C) 2017 Maxence Tury\n# This program is published under a GPLv2 license\n\n\"\"\"\nTLS handshake extensions.\n\"\"\"\n\nfrom __future__ import print_function\n\nimport os\nimport struct\n\nfrom scapy.fields import ByteEnumField, ByteField, EnumField, Fiel...
[ { "content": "# This file is part of Scapy\n# Copyright (C) 2017 Maxence Tury\n# This program is published under a GPLv2 license\n\n\"\"\"\nTLS handshake extensions.\n\"\"\"\n\nfrom __future__ import print_function\n\nimport os\nimport struct\n\nfrom scapy.fields import ByteEnumField, ByteField, EnumField, Fiel...
diff --git a/scapy/layers/tls/extensions.py b/scapy/layers/tls/extensions.py index 8e1e8da9189..86dea5c11a5 100644 --- a/scapy/layers/tls/extensions.py +++ b/scapy/layers/tls/extensions.py @@ -657,7 +657,7 @@ class TLS_Ext_PostHandshakeAuth(TLS_Ext_Unknown): # RFC 8446 class TLS_Ext_SignatureAlgori...
google__turbinia-1042
state_manager.get_task_data filtering by task_id does not work the get_task_data method in the state manager takes in a task_id parameter to be able to filter results by task_id, however, the actual field in Redis is called 'id' so the function does not return any results for an existing task_id: https://github.com/...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2017 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 2017 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/state_manager.py b/turbinia/state_manager.py index bfed9388f..4141232c9 100644 --- a/turbinia/state_manager.py +++ b/turbinia/state_manager.py @@ -278,7 +278,7 @@ def get_task_data( # Redis only supports strings; we convert to/from datetime here and below tasks = [task for task in ta...
xonsh__xonsh-2836
hg split keys not being propogated `hg split` from Mercurial brings up a curses based ui. When I type j/k up/down it just prints the code characters. *If I type j and then hit Enter, it will propagate the keypress.* Mercurial is written in python, if that makes any difference https://www.mercurial-scm.org/repo/hg/f...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Module for caching command & alias names as well as for predicting whether\na command will be able to be run in the background.\n\nA background predictor is a function that accepts a single argument list\nand returns whether or not the process can be run in the backg...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Module for caching command & alias names as well as for predicting whether\na command will be able to be run in the background.\n\nA background predictor is a function that accepts a single argument list\nand returns whether or not the process can be run in the backg...
diff --git a/news/hgsplit.rst b/news/hgsplit.rst new file mode 100644 index 0000000000..7b369334de --- /dev/null +++ b/news/hgsplit.rst @@ -0,0 +1,13 @@ +**Added:** None + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** + +* The ``hg split`` command will now predict as unthreadable. + +**S...
ivy-llc__ivy-21138
triu_indices Working on (#8431 -> #18033)
[ { "content": "# global\r\nimport ivy\r\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\r\nfrom .tensor import Tensor\r\nfrom ivy.functional.frontends.paddle.func_wrapper import (\r\n to_ivy_arrays_and_back,\r\n)\r\n\r\n\r\n@to_ivy_arrays_and_back\r\ndef to_tensor(data, /, *, dtyp...
[ { "content": "# global\r\nimport ivy\r\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\r\nfrom .tensor import Tensor\r\nfrom ivy.functional.frontends.paddle.func_wrapper import (\r\n to_ivy_arrays_and_back,\r\n)\r\n\r\n\r\n@to_ivy_arrays_and_back\r\ndef to_tensor(data, /, *, dtyp...
diff --git a/ivy/functional/frontends/paddle/tensor/creation.py b/ivy/functional/frontends/paddle/tensor/creation.py index 917040ff75bbd..93d5a27449d5a 100644 --- a/ivy/functional/frontends/paddle/tensor/creation.py +++ b/ivy/functional/frontends/paddle/tensor/creation.py @@ -180,6 +180,16 @@ def logspace(start, stop, ...
lutris__lutris-997
Crash on invalid steamless binary ![e0ugeaf](https://user-images.githubusercontent.com/280336/43658908-15905768-970f-11e8-975b-b6581995f873.png)
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Runner for the Steam platform\"\"\"\nimport os\nimport time\nimport shlex\nimport subprocess\n\nfrom lutris import settings\nfrom lutris.gui.dialogs import DownloadDialog\nfrom lutris.runners import wine\nfrom lutris.thread import LutrisThread\nfrom lutris.util.proce...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Runner for the Steam platform\"\"\"\nimport os\nimport time\nimport shlex\nimport subprocess\n\nfrom lutris import settings\nfrom lutris.gui.dialogs import DownloadDialog\nfrom lutris.runners import wine\nfrom lutris.thread import LutrisThread\nfrom lutris.util.proce...
diff --git a/lutris/runners/winesteam.py b/lutris/runners/winesteam.py index 4f4a0f6826..0e673a3123 100644 --- a/lutris/runners/winesteam.py +++ b/lutris/runners/winesteam.py @@ -200,7 +200,7 @@ def working_dir(self): """Return the working directory to use when running the game.""" if self.runner_conf...
oppia__oppia-14577
[Contributor Dashboard] Unable to remove question contribution rights in admin dashboard We're seeing `InvalidInputException Schema validation for 'language_code' failed: Validation failed: is_supported_audio_language_code ({}) for object null` when trying to remove question contribution rights. <img width="1272" a...
[ { "content": "# coding: utf-8\n\n# Copyright 2021 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/licens...
[ { "content": "# coding: utf-8\n\n# Copyright 2021 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/licens...
diff --git a/core/controllers/contributor_dashboard_admin_test.py b/core/controllers/contributor_dashboard_admin_test.py index eaec0969a66ae..a3d43fa2a5168 100644 --- a/core/controllers/contributor_dashboard_admin_test.py +++ b/core/controllers/contributor_dashboard_admin_test.py @@ -301,7 +301,7 @@ def test_remove_que...
django-import-export__django-import-export-996
cannot exclude id field during import : KeyError: u'id' am trying to import in admin and already excluded the id field but i get ``` Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/import_export/resources.py", line 434, in import_row instance, new = self.get_or_init_instance(instan...
[ { "content": "import functools\nimport logging\nimport tablib\nimport traceback\nfrom collections import OrderedDict\nfrom copy import deepcopy\n\nfrom diff_match_patch import diff_match_patch\n\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured, ValidationError\nfrom dja...
[ { "content": "import functools\nimport logging\nimport tablib\nimport traceback\nfrom collections import OrderedDict\nfrom copy import deepcopy\n\nfrom diff_match_patch import diff_match_patch\n\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured, ValidationError\nfrom dja...
diff --git a/import_export/resources.py b/import_export/resources.py index b11dc3fcf..96ca4c806 100644 --- a/import_export/resources.py +++ b/import_export/resources.py @@ -252,8 +252,13 @@ def init_instance(self, row=None): def get_instance(self, instance_loader, row): """ - Calls the :doc:`Inst...
dask__dask-3157
LZ4_compress and LZ4_uncompress removed Since commit python-lz4/python-lz4@d62fdc50c0e183d7260961f09d4e0701fbdf0c5c LZ4_compress and LZ4_decompress have been removed (they've been deprecated for a while). With the version of python-lz4 released on pypi, it means we can't use lz4 compression with dask, and worse importi...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nimport bz2\nimport sys\nimport zlib\n\nfrom toolz import identity\n\nfrom ..compatibility import gzip_compress, gzip_decompress, GzipFile\nfrom ..utils import ignoring\n\n\ndef noop_file(file, **kwargs):\n return file\n\n\ncomp...
[ { "content": "from __future__ import print_function, division, absolute_import\n\nimport bz2\nimport sys\nimport zlib\n\nfrom toolz import identity\n\nfrom ..compatibility import gzip_compress, gzip_decompress, GzipFile\nfrom ..utils import ignoring\n\n\ndef noop_file(file, **kwargs):\n return file\n\n\ncomp...
diff --git a/dask/bytes/compression.py b/dask/bytes/compression.py index 37cebe5379f..40439e70976 100644 --- a/dask/bytes/compression.py +++ b/dask/bytes/compression.py @@ -33,10 +33,17 @@ def noop_file(file, **kwargs): decompress['snappy'] = snappy.decompress -with ignoring(ImportError): - import lz4 - ...
mitmproxy__mitmproxy-6648
Duplicate answers in DNS queries #### Problem Description Two duplicate records are returned for each unique A/AAAA record in a DNS query when using DNS mode. #### Steps to reproduce the behavior: ##### Without mitmproxy 1. Run `dig +short google.com` 2. Correct output: `142.250.193.206` ##### With mitm...
[ { "content": "import asyncio\nimport ipaddress\nimport socket\nfrom collections.abc import Callable\nfrom collections.abc import Iterable\n\nfrom mitmproxy import dns\nfrom mitmproxy.proxy import mode_specs\n\nIP4_PTR_SUFFIX = \".in-addr.arpa\"\nIP6_PTR_SUFFIX = \".ip6.arpa\"\n\n\nclass ResolveError(Exception):...
[ { "content": "import asyncio\nimport ipaddress\nimport socket\nfrom collections.abc import Callable\nfrom collections.abc import Iterable\n\nfrom mitmproxy import dns\nfrom mitmproxy.proxy import mode_specs\n\nIP4_PTR_SUFFIX = \".in-addr.arpa\"\nIP6_PTR_SUFFIX = \".ip6.arpa\"\n\n\nclass ResolveError(Exception):...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 44b4369036..8e613d5da0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ ([#6599](https://github.com/mitmproxy/mitmproxy/pull/6599), @basedBaba) * Add an arm64 variant for the precompiled macOS app. ([#6633](https://github.com/mitmproxy/mitmproxy/pull/6...
e-valuation__EvaP-1440
Crash when previewing results Steps to reproduce: 1. Log in as evap 2. Select `Preview results` on "Subject Specific English 2" (breaks in German too) Interestingly, I don't get any errors when viewing "Beautiful Data", which is also a preview, or "3d Computer Graphic - Software Architecture", which is public. ...
[ { "content": "from collections import defaultdict\nfrom statistics import median\n\nfrom django.conf import settings\nfrom django.db.models import Count, QuerySet\nfrom django.core.cache import caches\nfrom django.core.cache.utils import make_template_fragment_key\nfrom django.core.exceptions import PermissionD...
[ { "content": "from collections import defaultdict\nfrom statistics import median\n\nfrom django.conf import settings\nfrom django.db.models import Count, QuerySet\nfrom django.core.cache import caches\nfrom django.core.cache.utils import make_template_fragment_key\nfrom django.core.exceptions import PermissionD...
diff --git a/evap/results/tests/test_views.py b/evap/results/tests/test_views.py index 0b5aac55eb..7f4e70e7d4 100644 --- a/evap/results/tests/test_views.py +++ b/evap/results/tests/test_views.py @@ -230,6 +230,24 @@ def test_wrong_state(self): url = '/results/semester/%s/evaluation/%s' % (self.semester.id, eva...
translate__pootle-4398
Coalesce in get_units is creating bad sql Im seeing errors in get_units, regarding bad sql this is the dump of the sql in question, seems like theres a bracket missing - not sure how that has happened, but im figuring something to do with COALESCE ``` sql SELECT DISTINCT `pootle_store_unit`.`id`, `pootle_store_store`...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship informa...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship informa...
diff --git a/pootle/apps/pootle_store/views.py b/pootle/apps/pootle_store/views.py index c833bad95b6..491c17cd5fb 100644 --- a/pootle/apps/pootle_store/views.py +++ b/pootle/apps/pootle_store/views.py @@ -287,8 +287,7 @@ def get_step_query(request, units_queryset): sort_by = ALLOWED_SORTS[sort_on].get(sort...
pymodbus-dev__pymodbus-1062
Decoding Holding Registers to 16bit binary format ### Versions * Python: 3.9.13 * OS: Ubuntu 22.04 * Pymodbus: 2.5.3 * Modbus Hardware (if used): ### Pymodbus Specific * Server: tcp * Client: tcp ### Description In reference to the issue #634 I am simulating a real case in which in a modbus serve...
[ { "content": "\"\"\"Modbus Payload Builders.\n\nA collection of utilities for building and decoding\nmodbus messages payloads.\n\"\"\"\n# pylint: disable=missing-type-doc\nimport logging\nfrom struct import pack, unpack\n\nfrom pymodbus.constants import Endian\nfrom pymodbus.exceptions import ParameterException...
[ { "content": "\"\"\"Modbus Payload Builders.\n\nA collection of utilities for building and decoding\nmodbus messages payloads.\n\"\"\"\n# pylint: disable=missing-type-doc\nimport logging\nfrom struct import pack, unpack\n\nfrom pymodbus.constants import Endian\nfrom pymodbus.exceptions import ParameterException...
diff --git a/pymodbus/payload.py b/pymodbus/payload.py index 64aa0c0d1..3a2de2b59 100644 --- a/pymodbus/payload.py +++ b/pymodbus/payload.py @@ -373,9 +373,9 @@ def decode_8bit_uint(self): handle = make_byte_string(handle) return unpack(fstring, handle)[0] - def decode_bits(self): + def decode...
rotki__rotki-1371
Period task for uncached asset icons dies ## Problem Definition From the logs I cannot see more information regarding that but I get this error: ``` Task for periodically_query_icons_until_all_cached died with exception: Invalid URL 'missing_thumb.png': No schema supplied. Perhaps you meant http://missing_thumb....
[ { "content": "import itertools\nimport logging\nfrom pathlib import Path\nfrom typing import Optional\n\nimport gevent\nimport requests\nfrom typing_extensions import Literal\n\nfrom rotkehlchen.assets.asset import Asset\nfrom rotkehlchen.assets.resolver import AssetResolver, asset_type_mapping\nfrom rotkehlche...
[ { "content": "import itertools\nimport logging\nfrom pathlib import Path\nfrom typing import Optional\n\nimport gevent\nimport requests\nfrom typing_extensions import Literal\n\nfrom rotkehlchen.assets.asset import Asset\nfrom rotkehlchen.assets.resolver import AssetResolver, asset_type_mapping\nfrom rotkehlche...
diff --git a/rotkehlchen/icons.py b/rotkehlchen/icons.py index 4d63b8b009..93db466bfb 100644 --- a/rotkehlchen/icons.py +++ b/rotkehlchen/icons.py @@ -62,7 +62,12 @@ def _query_coingecko_for_icon(self, asset: Asset) -> bool: for size in ('thumb', 'small', 'large'): url = getattr(data.images, siz...
gratipay__gratipay.com-1494
can't stay logged in from @amaltson via [Twitter](https://twitter.com/amaltson/status/332678066985893889): > trying to log in with GitHub, each time I go to my account page, I get logged out..
[ { "content": "\"\"\"Defines website authentication helpers.\n\"\"\"\nimport rfc822\nimport time\n\nfrom aspen import Response\nfrom gittip.security import csrf\nfrom gittip.security.user import User\n\n\nBEGINNING_OF_EPOCH = rfc822.formatdate(0)\nTIMEOUT = 60 * 60 * 24 * 7 # one week\nROLES = ['anonymous', 'aut...
[ { "content": "\"\"\"Defines website authentication helpers.\n\"\"\"\nimport rfc822\nimport time\n\nimport gittip\nfrom aspen import Response\nfrom gittip.security import csrf\nfrom gittip.security.user import User\n\n\nBEGINNING_OF_EPOCH = rfc822.formatdate(0)\nTIMEOUT = 60 * 60 * 24 * 7 # one week\nROLES = ['a...
diff --git a/gittip/security/authentication.py b/gittip/security/authentication.py index 6c64055f32..e1d3dccc0a 100644 --- a/gittip/security/authentication.py +++ b/gittip/security/authentication.py @@ -3,6 +3,7 @@ import rfc822 import time +import gittip from aspen import Response from gittip.security import csr...
PennyLaneAI__pennylane-5831
[BUG] `qml.simplify` removes information regarding `num_steps` from `Exp` ### Expected behavior ``` py >>> op1 = qml.exp(qml.Z(0) + 1.2*qml.Z(1), -1.2j, num_steps=2) >>> qml.simplify(op1).num_steps 2 ``` ### Actual behavior ``` py >>> op1 = qml.exp(qml.Z(0) + 1.2*qml.Z(1), -1.2j, num_steps=2) >>> qml.simplify(...
[ { "content": "# Copyright 2018-2023 Xanadu Quantum Technologies 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# Unle...
[ { "content": "# Copyright 2018-2023 Xanadu Quantum Technologies 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# Unle...
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 12959fa6688..8c23238f73a 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -369,6 +369,9 @@ * Fixed a bug where `split_non_commuting` raises an error when the circuit contains measurements of observables th...
ray-project__ray-3399
[tune] Tune logger should indent format params.json It would be nice if the tune params.json was automatically formatted. I keep going back to the variants fairly often and always have to manually (automatically) reformat it.
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport csv\nimport json\nimport logging\nimport numpy as np\nimport os\nimport yaml\n\nfrom ray.tune.log_sync import get_syncer\nfrom ray.tune.result import NODE_IP, TRAINING_ITERATION...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport csv\nimport json\nimport logging\nimport numpy as np\nimport os\nimport yaml\n\nfrom ray.tune.log_sync import get_syncer\nfrom ray.tune.result import NODE_IP, TRAINING_ITERATION...
diff --git a/python/ray/tune/logger.py b/python/ray/tune/logger.py index f73aa4a1ef8ce..d2c79e6d871a0 100644 --- a/python/ray/tune/logger.py +++ b/python/ray/tune/logger.py @@ -97,7 +97,12 @@ class _JsonLogger(Logger): def _init(self): config_out = os.path.join(self.logdir, "params.json") with op...
django-oscar__django-oscar-1578
Billing address not saved Although billing address is now added into the build_submission properly, it's not passed forward to place_order in handle_order_placement and it doesn't get saved.
[ { "content": "import logging\n\nfrom django.http import HttpResponseRedirect\nfrom django.core.urlresolvers import reverse, NoReverseMatch\nfrom django.contrib.sites.models import Site, get_current_site\nfrom django.core.exceptions import ObjectDoesNotExist\n\nfrom oscar.core.loading import get_class, get_model...
[ { "content": "import logging\n\nfrom django.http import HttpResponseRedirect\nfrom django.core.urlresolvers import reverse, NoReverseMatch\nfrom django.contrib.sites.models import Site, get_current_site\nfrom django.core.exceptions import ObjectDoesNotExist\n\nfrom oscar.core.loading import get_class, get_model...
diff --git a/oscar/apps/checkout/mixins.py b/oscar/apps/checkout/mixins.py index ec1a4eec526..5fddb669af7 100644 --- a/oscar/apps/checkout/mixins.py +++ b/oscar/apps/checkout/mixins.py @@ -109,7 +109,8 @@ def handle_order_placement(self, order_number, user, basket, order = self.place_order( order_...
dbt-labs__dbt-core-9452
[CT-3190] Pinning detective work ### Housekeeping - [X] I am a maintainer of dbt-core ### Short description We recently pinned `types-requests<2.31.0` because it had a dependency conflict with `urllib3` which we have pinned to `~=1.0` because of another conflict with `requests` requiring `openssl`. This ticket is...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 8):\n print(\"Error: dbt does not support this version of Python.\")\n print(\"Please upgrade to Python 3.8 or higher.\")\n sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n from setuptools import find_name...
[ { "content": "#!/usr/bin/env python\nimport os\nimport sys\n\nif sys.version_info < (3, 8):\n print(\"Error: dbt does not support this version of Python.\")\n print(\"Please upgrade to Python 3.8 or higher.\")\n sys.exit(1)\n\n\nfrom setuptools import setup\n\ntry:\n from setuptools import find_name...
diff --git a/core/setup.py b/core/setup.py index 66edb342cd5..9b40a917a8c 100644 --- a/core/setup.py +++ b/core/setup.py @@ -61,6 +61,7 @@ # with major versions in each new minor version of dbt-core. "click>=8.0.2,<9", "networkx>=2.3,<4", + "requests<3.0.0", # should match dbt-common ...
jupyterhub__zero-to-jupyterhub-k8s-2820
Set singleuser.args to jupyterhub-singleuser After writing https://github.com/pangeo-data/pangeo-docker-images/pull/355/files#diff-a77643b43a7be453fa8556937bf32b27907e152a10d4c693f3e7670c66a44378, I would like to ask that we reconsider *requiring* entrypoint be set to a specific thing (`jupyterhub-singleuser`) in th...
[ { "content": "import glob\nimport os\nimport re\nimport sys\nfrom binascii import a2b_hex\n\nfrom jupyterhub.utils import url_path_join\nfrom kubernetes_asyncio import client\nfrom tornado.httpclient import AsyncHTTPClient\n\n# Make sure that modules placed in the same directory as the jupyterhub config are add...
[ { "content": "import glob\nimport os\nimport re\nimport sys\nfrom binascii import a2b_hex\n\nfrom jupyterhub.utils import url_path_join\nfrom kubernetes_asyncio import client\nfrom tornado.httpclient import AsyncHTTPClient\n\n# Make sure that modules placed in the same directory as the jupyterhub config are add...
diff --git a/docs/source/administrator/upgrading/upgrade-1-to-2.md b/docs/source/administrator/upgrading/upgrade-1-to-2.md index ec7e411cb0..8a3d35e709 100644 --- a/docs/source/administrator/upgrading/upgrade-1-to-2.md +++ b/docs/source/administrator/upgrading/upgrade-1-to-2.md @@ -81,19 +81,6 @@ singleuser: allowPr...
nltk__nltk-2446
Py2.7 compatibility: subprocess has no attribute 'DEVNULL' Hi, A call to tag() when using nltk.tag.stanford.StanfordPOSTagger fails on python 2.7. ``` File "/home/travis/virtualenv/python2.7.14/lib/python2.7/site-packages/nltk/tag/stanford.py", line 116, in tag_sents cmd, classpath=self._stanford_jar, stdou...
[ { "content": "# Natural Language Toolkit: Internal utility functions\n#\n# Copyright (C) 2001-2019 NLTK Project\n# Author: Steven Bird <stevenbird1@gmail.com>\n# Edward Loper <edloper@gmail.com>\n# Nitin Madnani <nmadnani@ets.org>\n# URL: <http://nltk.org/>\n# For license information, see LICENS...
[ { "content": "# Natural Language Toolkit: Internal utility functions\n#\n# Copyright (C) 2001-2019 NLTK Project\n# Author: Steven Bird <stevenbird1@gmail.com>\n# Edward Loper <edloper@gmail.com>\n# Nitin Madnani <nmadnani@ets.org>\n# URL: <http://nltk.org/>\n# For license information, see LICENS...
diff --git a/nltk/internals.py b/nltk/internals.py index 1af990d109..969db8339c 100644 --- a/nltk/internals.py +++ b/nltk/internals.py @@ -109,7 +109,11 @@ def java(cmd, classpath=None, stdin=None, stdout=None, stderr=None, blocking=Tru :raise OSError: If the java command returns a nonzero return code. """ ...
pallets__click-2009
Coverity 370644 Logically dead code in def version_option(), line 345 Coverity scan reports the following. The `>>>` markers indicate Coverity's inline comments. ``` 1 if version is None and package_name is None: 342 frame = inspect.currentframe() 343 assert frame is not None >>> implied_type...
[ { "content": "import inspect\nimport types\nimport typing as t\nfrom functools import update_wrapper\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import Command\nfrom .core import Context\nfrom .core import Group\nfrom .core import Option\nfrom .core import Parameter\nfrom .global...
[ { "content": "import inspect\nimport types\nimport typing as t\nfrom functools import update_wrapper\nfrom gettext import gettext as _\n\nfrom .core import Argument\nfrom .core import Command\nfrom .core import Context\nfrom .core import Group\nfrom .core import Option\nfrom .core import Parameter\nfrom .global...
diff --git a/src/click/decorators.py b/src/click/decorators.py index 5940e69f2..fa8c6f74e 100644 --- a/src/click/decorators.py +++ b/src/click/decorators.py @@ -340,9 +340,8 @@ def version_option( if version is None and package_name is None: frame = inspect.currentframe() - assert frame is not No...
zestedesavoir__zds-site-5711
Un membre devrait pouvoir signaler un message caché https://zestedesavoir.com/forums/sujet/11117/ne-plus-utiliser-anonyme/?page=4#p195842 Une personne avec les permissions staffs peut signaler un message caché alors qu'un membre ne peut pas. Il faudrait changer la condition de ce bouton dans le template.
[ { "content": "import json\n\nimport requests\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom django.urls ...
[ { "content": "import json\n\nimport requests\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import PermissionDenied\nfrom django.urls ...
diff --git a/doc/source/back-end/forum.rst b/doc/source/back-end/forum.rst index 3e147b0207..7d9bbe1a67 100644 --- a/doc/source/back-end/forum.rst +++ b/doc/source/back-end/forum.rst @@ -58,7 +58,7 @@ Ici, les différents choses que vous pouvez faire, sont : .. figure:: ../images/forum/edit_modo.png :align: c...
unionai-oss__pandera-1190
Remove incorrect(?) warning for `register_check_method()` in docs #### Location of the documentation https://pandera.readthedocs.io/en/latest/reference/generated/pandera.extensions.html #### Documentation problem It's documented for `register_check_method()` that > **Warning** > This is the legacy method f...
[ { "content": "\"\"\"Extensions module.\"\"\"\n\nimport inspect\nimport warnings\nfrom enum import Enum\nfrom functools import partial, wraps\nfrom inspect import signature\nfrom typing import Callable, List, Optional, Tuple, Type, Union\n\nimport pandas as pd\nimport typing_inspect\n\nfrom pandera.api.checks im...
[ { "content": "\"\"\"Extensions module.\"\"\"\n\nimport inspect\nimport warnings\nfrom enum import Enum\nfrom functools import partial, wraps\nfrom inspect import signature\nfrom typing import Callable, List, Optional, Tuple, Type, Union\n\nimport pandas as pd\nimport typing_inspect\n\nfrom pandera.api.checks im...
diff --git a/pandera/api/extensions.py b/pandera/api/extensions.py index b6b278c89..1e217912a 100644 --- a/pandera/api/extensions.py +++ b/pandera/api/extensions.py @@ -144,11 +144,6 @@ def register_check_method( See the :ref:`user guide<extensions>` for more details. - .. warning:: - - This is the l...
modin-project__modin-6337
Ray is incompatible with pydantic>=2.0 We should pin `pydantic<2.0` to workaround the issues on Ray side. Example [from](https://github.com/modin-project/modin/actions/runs/5425526005/jobs/9866377841): ```bash File "/usr/share/miniconda/envs/modin/lib/python3.8/site-packages/ray/util/state/__init__.py", line 1...
[ { "content": "from setuptools import setup, find_packages\nimport versioneer\n\nwith open(\"README.md\", \"r\", encoding=\"utf-8\") as fh:\n long_description = fh.read()\n\ndask_deps = [\"dask>=2.22.0\", \"distributed>=2.22.0\"]\n# ray==2.5.0 broken: https://github.com/conda-forge/ray-packages-feedstock/issu...
[ { "content": "from setuptools import setup, find_packages\nimport versioneer\n\nwith open(\"README.md\", \"r\", encoding=\"utf-8\") as fh:\n long_description = fh.read()\n\ndask_deps = [\"dask>=2.22.0\", \"distributed>=2.22.0\"]\n# ray==2.5.0 broken: https://github.com/conda-forge/ray-packages-feedstock/issu...
diff --git a/docs/requirements-doc.txt b/docs/requirements-doc.txt index 8832b1e478a..620f8a7a560 100644 --- a/docs/requirements-doc.txt +++ b/docs/requirements-doc.txt @@ -14,6 +14,8 @@ sphinx<6.0.0 sphinx-click # ray==2.5.0 broken: https://github.com/conda-forge/ray-packages-feedstock/issues/100 ray[default]>=1.13...
mne-tools__mne-python-6677
BUG: dipy website change broke intersphinx CircleCI now fails to load the dipy `objects.inv` with this error: ``` intersphinx inventory 'http://nipy.org/dipy/objects.inv' not fetchable due to <class 'requests.exceptions.HTTPError'>: 400 Client Error: Bad Request for url: https://dipy.org/objects.inv ``` It appears ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# MNE documentation build configuration file, created by\n# sphinx-quickstart on Fri Jun 11 10:45:48 2010.\n#\n# This file is execfile()d with the current directory set to its containing\n# dir.\n#\n# Note that not all possible configuration values are present in this\n...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# MNE documentation build configuration file, created by\n# sphinx-quickstart on Fri Jun 11 10:45:48 2010.\n#\n# This file is execfile()d with the current directory set to its containing\n# dir.\n#\n# Note that not all possible configuration values are present in this\n...
diff --git a/doc/conf.py b/doc/conf.py index 245b3ac4c29..634e66faaff 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -309,7 +309,7 @@ 'surfer': ('https://pysurfer.github.io/', None), 'pandas': ('https://pandas.pydata.org/pandas-docs/stable', None), 'statsmodels': ('http://www.statsmodels.org/stable/', Non...
web2py__web2py-1852
SPAN.flatten() raises UnicodeDecodeError with T-components Code like this crashes in Py2.7 with UnicodeDecodeError for T-languages where translate produces multi-byte utf-8 encoded strings (e.g. Japanese, Korean, etc.): ``` elem = SPAN(T("Complete")) text = elem.flatten() ``` The problem could be here: https://gi...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n| Plural subsystem is created by Vladyslav Kozlovskyy (Ukraine) <dbdev...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\n| This file is part of the web2py Web Framework\n| Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>\n| License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)\n| Plural subsystem is created by Vladyslav Kozlovskyy (Ukraine) <dbdev...
diff --git a/gluon/languages.py b/gluon/languages.py index 0d8bd4a20..293ecac90 100644 --- a/gluon/languages.py +++ b/gluon/languages.py @@ -431,10 +431,16 @@ def xml(self): return str(self) if self.M else local_html_escape(str(self), quote=False) def encode(self, *a, **b): - return str(self).enc...
cupy__cupy-2117
Support for Nvidia Tesla T4 Feature request Current Cupy build doesn't include Tesla T4. https://github.com/cupy/cupy/blob/master/cupy_setup_build.py#L633. It would be great if we have support for T4 as well. I believe this architecture is more for inference than training but still a good use case to consider. I ...
[ { "content": "from __future__ import print_function\n\nimport argparse\nimport copy\nfrom distutils import ccompiler\nfrom distutils import errors\nfrom distutils import msvccompiler\nfrom distutils import sysconfig\nfrom distutils import unixccompiler\nimport glob\nimport os\nfrom os import path\nimport shutil...
[ { "content": "from __future__ import print_function\n\nimport argparse\nimport copy\nfrom distutils import ccompiler\nfrom distutils import errors\nfrom distutils import msvccompiler\nfrom distutils import sysconfig\nfrom distutils import unixccompiler\nimport glob\nimport os\nfrom os import path\nimport shutil...
diff --git a/cupy/core/carray.pxi b/cupy/core/carray.pxi index 1c51375baa8..cbbac7c19bf 100644 --- a/cupy/core/carray.pxi +++ b/cupy/core/carray.pxi @@ -141,6 +141,8 @@ cpdef function.Module compile_with_cache( bundled_include = 'cuda-9.2' elif 10000 <= _cuda_runtime_version < 10010: ...
RedHatInsights__insights-core-2436
PsEo parser is raising ValueError exception `insights.parsers.ps.PsEo` parser is raising `ValueError` exception when attempting to parser content. The exception occurs when `insights.parsers.parse_delimited_table()` is called. The exception traceback: ``` File "/home/remote/vdymna/repos/insights-core/insights/core/...
[ { "content": "import pkgutil\nfrom collections import OrderedDict\nfrom insights.core.dr import SkipComponent\n\n\n__all__ = [n for (i, n, p) in pkgutil.iter_modules(__path__) if not p]\n\n\nclass ParseException(Exception):\n \"\"\"\n Exception that should be thrown from parsers that encounter\n except...
[ { "content": "import pkgutil\nfrom collections import OrderedDict\nfrom insights.core.dr import SkipComponent\n\n\n__all__ = [n for (i, n, p) in pkgutil.iter_modules(__path__) if not p]\n\n\nclass ParseException(Exception):\n \"\"\"\n Exception that should be thrown from parsers that encounter\n except...
diff --git a/insights/parsers/__init__.py b/insights/parsers/__init__.py index e05280c7bc..c6a5f293d2 100644 --- a/insights/parsers/__init__.py +++ b/insights/parsers/__init__.py @@ -265,7 +265,8 @@ def calc_offset(lines, target, invert_search=False): """ if target and target[0] is not None: for offs...
nautobot__nautobot-1117
Local variable 'username' referenced before assignment error when querying device status ### Environment * Python version: 3.9.9 * Nautobot version: v1.2.0b1 ### Steps to Reproduce 1. Set NAUTOBOT_NAPALM_USERNAME and NAUTOBOT_NAPALM_PASSWORD environment variables 1. Add a device with primary management inter...
[ { "content": "import socket\nfrom collections import OrderedDict\n\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models import F\nfrom django.http import HttpResponseForbidden, HttpResponse\nfrom django.shortcuts import get_object_or_404\nfrom django.vi...
[ { "content": "import socket\nfrom collections import OrderedDict\n\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models import F\nfrom django.http import HttpResponseForbidden, HttpResponse\nfrom django.shortcuts import get_object_or_404\nfrom django.vi...
diff --git a/nautobot/dcim/api/views.py b/nautobot/dcim/api/views.py index a0257e84e5f..94abcec5810 100644 --- a/nautobot/dcim/api/views.py +++ b/nautobot/dcim/api/views.py @@ -494,6 +494,9 @@ def napalm(self, request, pk): password = settings.NAPALM_PASSWORD except SecretError as exc:...
ansible__ansible-modules-core-2328
glance images uploaded via os_image with is_public: true are not public I have the following in a playbook: ``` - name: uploading centos atomic image to glance os_image: name: centos-7-atomic is_public: yes filename: images/centos-7-atomic.qcow2 ``` The resulting image is not public: ``` +-------------...
[ { "content": "#!/usr/bin/python\n\n# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.\n# Copyright (c) 2013, Benno Joy <benno@ansible.com>\n#\n# This module 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 Sof...
[ { "content": "#!/usr/bin/python\n\n# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.\n# Copyright (c) 2013, Benno Joy <benno@ansible.com>\n#\n# This module 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 Sof...
diff --git a/cloud/openstack/os_image.py b/cloud/openstack/os_image.py index 4687ce5e972..80e5e60bbac 100644 --- a/cloud/openstack/os_image.py +++ b/cloud/openstack/os_image.py @@ -154,7 +154,8 @@ def main(): disk_format=module.params['disk_format'], container_format=module.par...
netbox-community__netbox-14384
No 'Pre-Change Data' when updating interface via CSV import ### NetBox version v3.6.3 ### Python version 3.8 ### Steps to Reproduce 1. Accidentally change names on a dozen of interfaces using a CSV import 2. Check the changelog 3. See **None** as **Pre-Change Data** ### Expected Behavior **Pre-Change Data** sh...
[ { "content": "import logging\nimport re\nfrom copy import deepcopy\n\nfrom django.contrib import messages\nfrom django.contrib.contenttypes.fields import GenericRel\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import FieldDoesNotExist, ObjectDoesNotExist, ValidationEr...
[ { "content": "import logging\nimport re\nfrom copy import deepcopy\n\nfrom django.contrib import messages\nfrom django.contrib.contenttypes.fields import GenericRel\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import FieldDoesNotExist, ObjectDoesNotExist, ValidationEr...
diff --git a/netbox/netbox/views/generic/bulk_views.py b/netbox/netbox/views/generic/bulk_views.py index 676e3f5afe3..c5a08c80a2d 100644 --- a/netbox/netbox/views/generic/bulk_views.py +++ b/netbox/netbox/views/generic/bulk_views.py @@ -394,6 +394,10 @@ def create_and_update_objects(self, form, request): ...
ivy-llc__ivy-27311
__ge__
[ { "content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tens...
[ { "content": "# local\nimport ivy\nimport ivy.functional.frontends.paddle as paddle_frontend\nfrom ivy.func_wrapper import (\n with_supported_dtypes,\n with_unsupported_dtypes,\n with_supported_device_and_dtypes,\n)\nfrom ivy.functional.frontends.paddle.func_wrapper import _to_ivy_array\n\n\nclass Tens...
diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py index ee880dda5fc76..b84072c2da544 100644 --- a/ivy/functional/frontends/paddle/tensor/tensor.py +++ b/ivy/functional/frontends/paddle/tensor/tensor.py @@ -68,6 +68,22 @@ def ivy_array(self, array): def...
getredash__redash-543
Failed to run mongodb query When I try to run this mongodb on both local install or redash demo, a error raised "Error running query: string indices must be integers" Below is the query, I think this is an error of python code since I can run other simple query just fine. ``` json { "collection": "Email", "ag...
[ { "content": "import json\nimport datetime\nimport logging\nimport re\nimport time\nfrom dateutil.parser import parse\n\nfrom redash.utils import JSONEncoder\nfrom redash.query_runner import *\n\nlogger = logging.getLogger(__name__)\n\ntry:\n import pymongo\n from bson.objectid import ObjectId\n from b...
[ { "content": "import json\nimport datetime\nimport logging\nimport re\nimport time\nfrom dateutil.parser import parse\n\nfrom redash.utils import JSONEncoder\nfrom redash.query_runner import *\n\nlogger = logging.getLogger(__name__)\n\ntry:\n import pymongo\n from bson.objectid import ObjectId\n from b...
diff --git a/redash/query_runner/mongodb.py b/redash/query_runner/mongodb.py index 3d2c5578d5..f0966777c5 100644 --- a/redash/query_runner/mongodb.py +++ b/redash/query_runner/mongodb.py @@ -151,7 +151,11 @@ def _fix_dates(self, data): for k in data: if isinstance(data[k], list): ...
GeotrekCE__Geotrek-admin-1508
Clarify 3D and 2D lengths It is a good point that both lengths are now displayed in detail pages. On lists, this is the 3D length that is displayed, good point too but it would be good to mention it in label (3D length). In list exports, it would be great to have both length too. As actually it seems like there is on...
[ { "content": "# -*- coding: utf-8 -*-\nimport logging\nimport functools\n\nfrom django.contrib.gis.db import models\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.contrib.gis.geos import fromstr, LineString\n\nfrom mapentity.models import MapEntityMixin\n...
[ { "content": "# -*- coding: utf-8 -*-\nimport logging\nimport functools\n\nfrom django.contrib.gis.db import models\nfrom django.conf import settings\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.contrib.gis.geos import fromstr, LineString\n\nfrom mapentity.models import MapEntityMixin\n...
diff --git a/geotrek/altimetry/locale/fr/LC_MESSAGES/django.po b/geotrek/altimetry/locale/fr/LC_MESSAGES/django.po index adcffb0cdf..2731cdc51d 100644 --- a/geotrek/altimetry/locale/fr/LC_MESSAGES/django.po +++ b/geotrek/altimetry/locale/fr/LC_MESSAGES/django.po @@ -7,9 +7,8 @@ msgid "" msgstr "" "Project-Id-Version:...