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
⌀
flask-admin__flask-admin-1262
[Mongoengine] Inner field error for `ListField(EmbeddedDocumentField(Model))` eg. `users = ListField(EmbeddedDocumentField(User))` Assuming `User` has a required field that is missing or an URL field that is invalid, on form submit it doesnt display field errors, instead raises the following: ``` Traceback (most rece...
[ { "content": "from mongoengine import ValidationError\nfrom flask_admin._compat import itervalues, as_unicode\n\n\ndef make_gridfs_args(value):\n args = {\n 'id': value.grid_id,\n 'coll': value.collection_name\n }\n\n if value.db_alias != 'default':\n args['db'] = value.db_alias\n\...
[ { "content": "from mongoengine import ValidationError\nfrom wtforms.validators import ValidationError as wtfValidationError\nfrom flask_admin._compat import itervalues, as_unicode\n\n\ndef make_gridfs_args(value):\n args = {\n 'id': value.grid_id,\n 'coll': value.collection_name\n }\n\n i...
diff --git a/flask_admin/contrib/mongoengine/helpers.py b/flask_admin/contrib/mongoengine/helpers.py index 395fc50ed..48ee9f77c 100644 --- a/flask_admin/contrib/mongoengine/helpers.py +++ b/flask_admin/contrib/mongoengine/helpers.py @@ -1,4 +1,5 @@ from mongoengine import ValidationError +from wtforms.validators impor...
praw-dev__praw-1259
PRAW raises prawcore.exceptions.BadRequest when attempting to call send_removal_message() ## Issue Description Any time I try to use `send_removal_message()`, PRAW gives me a 400 error. Looking at the official Reddit API, it appears the endpoints for that function have been removed. **Attempt:** ```python PS C:...
[ { "content": "\"\"\"Package providing reddit class mixins.\"\"\"\nfrom json import dumps\n\nfrom ....const import API_PATH\nfrom .editable import EditableMixin\nfrom .fullname import FullnameMixin\nfrom .gildable import GildableMixin\nfrom .inboxable import InboxableMixin\nfrom .inboxtoggleable import InboxTogg...
[ { "content": "\"\"\"Package providing reddit class mixins.\"\"\"\nfrom json import dumps\nfrom ....const import API_PATH\nfrom .editable import EditableMixin\nfrom .fullname import FullnameMixin\nfrom .gildable import GildableMixin\nfrom .inboxable import InboxableMixin\nfrom .inboxtoggleable import InboxToggle...
diff --git a/praw/models/reddit/mixins/__init__.py b/praw/models/reddit/mixins/__init__.py index 8fb99980e..aa1e71e01 100644 --- a/praw/models/reddit/mixins/__init__.py +++ b/praw/models/reddit/mixins/__init__.py @@ -184,6 +184,11 @@ def send_removal_message( ): """Send a removal message for a :class:`~.C...
pyro-ppl__numpyro-1330
Vectorized sampling: error when var size is 0 JAX refuses to reshape an array using the `(-1, ...)` shape notation if its `size` (i.e. product of `shape`) is 0. This causes issues with vectorized sampling when samples from different chains are concatenated. # Steps to reproduce ```python import numpy as np import...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom abc import ABC, abstractmethod\nfrom functools import partial\nfrom operator import attrgetter\nimport os\nimport warnings\n\nimport numpy as np\n\nfrom jax import jit, lax, local_device_count, pmap, rando...
[ { "content": "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\nfrom abc import ABC, abstractmethod\nfrom functools import partial\nfrom operator import attrgetter\nimport os\nimport warnings\n\nimport numpy as np\n\nfrom jax import jit, lax, local_device_count, pmap, rando...
diff --git a/numpyro/infer/mcmc.py b/numpyro/infer/mcmc.py index 649b33951..72acaef9e 100644 --- a/numpyro/infer/mcmc.py +++ b/numpyro/infer/mcmc.py @@ -609,7 +609,9 @@ def run(self, rng_key, *args, extra_fields=(), init_params=None, **kwargs): # swap num_samples x num_chains to num_chains x num_sample...
netbox-community__netbox-5230
AttributeError raised on initialization when LDAP authentication is in place ### Environment * Python version: 3.6.9 * NetBox version: 2.9.5 ### Steps to Reproduce 1. Enable LDAP authentication and restart NetBox ### Expected Behavior NetBox should start normally and LDAP authentication should work. ### Ob...
[ { "content": "import logging\nfrom collections import defaultdict\n\nfrom django.conf import settings\nfrom django.contrib.auth.backends import ModelBackend, RemoteUserBackend as _RemoteUserBackend\nfrom django.contrib.auth.models import Group\nfrom django.core.exceptions import ImproperlyConfigured\nfrom djang...
[ { "content": "import logging\nfrom collections import defaultdict\n\nfrom django.conf import settings\nfrom django.contrib.auth.backends import ModelBackend, RemoteUserBackend as _RemoteUserBackend\nfrom django.contrib.auth.models import Group\nfrom django.core.exceptions import ImproperlyConfigured\nfrom djang...
diff --git a/docs/release-notes/version-2.9.md b/docs/release-notes/version-2.9.md index 41989536585..3a284a12134 100644 --- a/docs/release-notes/version-2.9.md +++ b/docs/release-notes/version-2.9.md @@ -1,5 +1,13 @@ # NetBox v2.9 +## v2.9.6 (2020-10-09) + +### Bug Fixes + +* [#5229](https://github.com/netbox-commu...
aio-libs__aiohttp-5119
MUST NOT send Content-Length/Transfer-Encoding for 1xx or 204 🐞 **Describe the bug** According to RFC7230 (https://tools.ietf.org/html/rfc7230#section-3.3.2 and https://tools.ietf.org/html/rfc7230#section-3.3.1) a server must not send neither the `Content-Length` nor the `Transfer-Encoding` header field for **1xx*...
[ { "content": "import asyncio # noqa\nimport collections.abc # noqa\nimport datetime\nimport enum\nimport json\nimport math\nimport time\nimport warnings\nimport zlib\nfrom concurrent.futures import Executor\nfrom email.utils import parsedate\nfrom http.cookies import Morsel, SimpleCookie\nfrom typing import (...
[ { "content": "import asyncio # noqa\nimport collections.abc # noqa\nimport datetime\nimport enum\nimport json\nimport math\nimport time\nimport warnings\nimport zlib\nfrom concurrent.futures import Executor\nfrom email.utils import parsedate\nfrom http.cookies import Morsel, SimpleCookie\nfrom typing import (...
diff --git a/CHANGES/4901.bugfix b/CHANGES/4901.bugfix new file mode 100644 index 00000000000..910bdd76685 --- /dev/null +++ b/CHANGES/4901.bugfix @@ -0,0 +1 @@ +Server doesn't send Content-Length for 1xx or 204 diff --git a/aiohttp/web_response.py b/aiohttp/web_response.py index d6f0d0f0850..c1cdc6cb46b 100644 --- a/a...
python-pillow__Pillow-5872
Incorrect behaviour of the ImageFile._safe_read function ### What did you do? Randomly came across the [ImageFile._safe_read](https://github.com/python-pillow/Pillow/blob/ab6efcb925f615d153538e84780f093f7f9f8df2/src/PIL/ImageFile.py#L527) fuction. ### What did you expect to happen? An "OSError: Truncated File ...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# base class for image file handlers\n#\n# history:\n# 1995-09-09 fl Created\n# 1996-03-11 fl Fixed load mechanism.\n# 1996-04-15 fl Added pcx/xbm decoders.\n# 1996-04-30 fl Added encoders.\n# 1996-12-14 fl Added load helpers\n# 1997-01-11 fl ...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# base class for image file handlers\n#\n# history:\n# 1995-09-09 fl Created\n# 1996-03-11 fl Fixed load mechanism.\n# 1996-04-15 fl Added pcx/xbm decoders.\n# 1996-04-30 fl Added encoders.\n# 1996-12-14 fl Added load helpers\n# 1997-01-11 fl ...
diff --git a/Tests/test_imagefile.py b/Tests/test_imagefile.py index f4e5a6a599e..372cee8c00c 100644 --- a/Tests/test_imagefile.py +++ b/Tests/test_imagefile.py @@ -2,7 +2,7 @@ import pytest -from PIL import EpsImagePlugin, Image, ImageFile, features +from PIL import BmpImagePlugin, EpsImagePlugin, Image, ImageFil...
apluslms__a-plus-1348
Use setUpTestData in tests `setUp` is ran before every test method but `setUpTestData` is run only once for the whole test class. Each test method is run in a transaction and rolled back at the end, so there is no need to re-create the database data for each method separately. Most of the time in unit tests seems to b...
[ { "content": "from datetime import timedelta\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.test import TestCase\nfrom django.utils import timezone\n\nfrom course.models import (\n Course,\n CourseInstance,\n CourseModule,\n LearningObjectCategory,\n)\nfr...
[ { "content": "from datetime import timedelta\nfrom django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.test import TestCase\nfrom django.utils import timezone\n\nfrom course.models import (\n Course,\n CourseInstance,\n CourseModule,\n LearningObjectCategory,\n)\nfr...
diff --git a/apps/tests.py b/apps/tests.py index 820fc87ae..0812e413b 100644 --- a/apps/tests.py +++ b/apps/tests.py @@ -13,25 +13,26 @@ class AppsTest(TestCase): - def setUp(self): - self.client = Client() - self.course = Course.objects.create(name="Test", code="test", url="test") - self.i...
googleapis__google-cloud-python-901
Subscription.pull() fails with KeyError Hi, My code below fails with a KeyError coming from the library: ``` python sub = Subscription(SUBSCRIPTION_NAME, Topic(INCOMING_TOPIC_NAME)) while True: try: msgs = sub.pull() ... except: msg = 'poll %s: %s' % (SUBSCRIPTION_NAME, traceback.format...
[ { "content": "# Copyright 2015 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 2015 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/gcloud/pubsub/subscription.py b/gcloud/pubsub/subscription.py index 8ecf1c3f76e8..51154f5bb239 100644 --- a/gcloud/pubsub/subscription.py +++ b/gcloud/pubsub/subscription.py @@ -188,7 +188,7 @@ def pull(self, return_immediately=False, max_messages=1, connection=None): ...
vllm-project__vllm-5164
[Bug]: Crash sometimes using LLM entrypoint and LoRA adapters ### Your current environment ```text File "/pkg/modal/_container_io_manager.py", line 488, in handle_input_exception yield File "/pkg/modal/_container_entrypoint.py", line 260, in run_input value = await res File "/root/modal_exp_auto_wow_p...
[ { "content": "import enum\nimport os\nimport random\nimport time\nfrom collections import deque\nfrom dataclasses import dataclass, field\nfrom typing import Deque, Dict, Iterable, List, Optional, Set, Tuple, Union\n\nfrom vllm.config import CacheConfig, LoRAConfig, SchedulerConfig\nfrom vllm.core.interfaces im...
[ { "content": "import enum\nimport os\nimport random\nimport time\nfrom collections import deque\nfrom dataclasses import dataclass, field\nfrom typing import Deque, Dict, Iterable, List, Optional, Set, Tuple, Union\n\nfrom vllm.config import CacheConfig, LoRAConfig, SchedulerConfig\nfrom vllm.core.interfaces im...
diff --git a/vllm/core/scheduler.py b/vllm/core/scheduler.py index 0159053b4dc..bb37c5f3136 100644 --- a/vllm/core/scheduler.py +++ b/vllm/core/scheduler.py @@ -423,7 +423,9 @@ def _schedule_running( num_running_seqs = seq_group.get_max_num_running_seqs() budget.subtract_num_seqs(seq_g...
pre-commit__pre-commit-2005
Fails when force pushing unrelated histories pre-commit looks to find difference between remote and local branches as pre-commit wants to know the files changed. But in case of force, git correctly fails to generate diff. Expected: pre-commit can run all the hooks that has pass-filename=false as they do not require...
[ { "content": "import logging\nimport os.path\nimport sys\nfrom typing import Dict\nfrom typing import List\nfrom typing import MutableMapping\nfrom typing import Optional\nfrom typing import Set\n\nfrom pre_commit.errors import FatalError\nfrom pre_commit.util import CalledProcessError\nfrom pre_commit.util imp...
[ { "content": "import logging\nimport os.path\nimport sys\nfrom typing import Dict\nfrom typing import List\nfrom typing import MutableMapping\nfrom typing import Optional\nfrom typing import Set\n\nfrom pre_commit.errors import FatalError\nfrom pre_commit.util import CalledProcessError\nfrom pre_commit.util imp...
diff --git a/pre_commit/git.py b/pre_commit/git.py index 4bf282357..6264529d5 100644 --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -155,12 +155,15 @@ def get_all_files() -> List[str]: def get_changed_files(old: str, new: str) -> List[str]: - return zsplit( - cmd_output( - 'git', 'diff', '...
google__pytype-122
Allow pytype to override an existing logging level. When pytype is called from analyze_project, we need to be able to override analyze_project's own logging level in order to use the one requrested for pytype. This will have to go through the github->internal->github workflow, but I figured that it would be nice t...
[ { "content": "\"\"\"Configuration for pytype (mostly derived from the commandline args).\n\nVarious parts of pytype use the command-line options. This module packages the\noptions into an Options class.\n\"\"\"\n\nimport argparse\nimport logging\nimport os\n\nfrom pytype import imports_map_loader\nfrom pytype i...
[ { "content": "\"\"\"Configuration for pytype (mostly derived from the commandline args).\n\nVarious parts of pytype use the command-line options. This module packages the\noptions into an Options class.\n\"\"\"\n\nimport argparse\nimport logging\nimport os\n\nfrom pytype import imports_map_loader\nfrom pytype i...
diff --git a/pytype/config.py b/pytype/config.py index d4b6cd883..5c72e50d7 100644 --- a/pytype/config.py +++ b/pytype/config.py @@ -408,7 +408,11 @@ def _store_verbosity(self, verbosity): # "verbosity=-1" can be used to disable all logging, so configure # logging accordingly. basic_logging_level =...
xorbitsai__inference-394
BUG: Register Custom Model Docs ### Describe the bug When running the code as provided in the [docs](https://inference.readthedocs.io/en/latest/models/custom.html#define-a-custom-model) to register a custom model, the following error was raised: <details> <summary>Full Error Stack</summary> ``` -------------...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/doc/source/models/custom.rst b/doc/source/models/custom.rst index 5da532884c..3a89400165 100644 --- a/doc/source/models/custom.rst +++ b/doc/source/models/custom.rst @@ -44,11 +44,11 @@ Define a custom model based on the following template: "model_id": "TheBloke/Llama-2-7B-GGML", "model...
Flexget__Flexget-603
Bump boto3 from 1.17.102 to 1.17.109 Bumps [boto3](https://github.com/boto/boto3) from 1.17.102 to 1.17.109. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/boto/boto3/blob/develop/CHANGELOG.rst">boto3's changelog</a>.</em></p> <blockquote> <h1>1.17.109</h1> <ul> <li>api-change:<c...
[ { "content": "from __future__ import unicode_literals, division, absolute_import\nimport logging\nfrom urlparse import urljoin\n\nfrom requests import RequestException\n\nfrom flexget import plugin\nfrom flexget.entry import Entry\nfrom flexget.event import event\nfrom flexget.utils.trakt import API_URL, get_se...
[ { "content": "from __future__ import unicode_literals, division, absolute_import\nimport logging\nfrom urlparse import urljoin\n\nfrom requests import RequestException\n\nfrom flexget import plugin\nfrom flexget.entry import Entry\nfrom flexget.event import event\nfrom flexget.utils.trakt import API_URL, get_se...
diff --git a/flexget/plugins/input/trakt_emit.py b/flexget/plugins/input/trakt_emit.py index be75b55523..69a9f26c75 100644 --- a/flexget/plugins/input/trakt_emit.py +++ b/flexget/plugins/input/trakt_emit.py @@ -59,7 +59,7 @@ def on_task_input(self, task, config): log.warning('The list "%s" is empty.' %...
sony__model_optimization-1019
MCT fails for "dims" parameter of type List in torch.permute ### Issue Type Bug ### Source source ### MCT Version nightly ### OS Platform and Distribution _No response_ ### Python version _No response_ ### Describe the issue ```shell the dims parameter is a list which fails MCT x = torch.permute(x, [0, 2, 3...
[ { "content": "# Copyright 2022 Sony Semiconductor Israel, 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/LICE...
[ { "content": "# Copyright 2022 Sony Semiconductor Israel, 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/LICE...
diff --git a/model_compression_toolkit/core/pytorch/reader/graph_builders.py b/model_compression_toolkit/core/pytorch/reader/graph_builders.py index b96058ca3..877ba64f4 100644 --- a/model_compression_toolkit/core/pytorch/reader/graph_builders.py +++ b/model_compression_toolkit/core/pytorch/reader/graph_builders.py @@ ...
Kinto__kinto-496
flush_endpoint capability added if flush_enabled (fixes #496)
[ { "content": "import pkg_resources\nimport logging\n\nimport cliquet\nfrom pyramid.config import Configurator\nfrom pyramid.settings import asbool\nfrom pyramid.security import Authenticated\n\nfrom kinto.authorization import RouteFactory\n\n# Module version, as defined in PEP-0396.\n__version__ = pkg_resources...
[ { "content": "import pkg_resources\nimport logging\n\nimport cliquet\nfrom pyramid.config import Configurator\nfrom pyramid.settings import asbool\nfrom pyramid.security import Authenticated\n\nfrom kinto.authorization import RouteFactory\n\n# Module version, as defined in PEP-0396.\n__version__ = pkg_resources...
diff --git a/kinto/__init__.py b/kinto/__init__.py index 29851a8d1..573c3d2d8 100644 --- a/kinto/__init__.py +++ b/kinto/__init__.py @@ -67,7 +67,16 @@ def main(global_config, config=None, **settings): # Scan Kinto views. kwargs = {} flush_enabled = asbool(settings.get('flush_endpoint_enabled')) - if ...
cocotb__cocotb-2668
Add `FutureWarning` when a `fork`ed coroutine exception causes the test to end If an error occurs in a `fork`ed Task before one `await`s a Task, the test ends. This can be non-deterministic and lead to inconsistent failures. Instead we should capture the error in the Task's outcome for propagation. If a Task results in...
[ { "content": "#!/usr/bin/env python\n\n# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are ...
[ { "content": "#!/usr/bin/env python\n\n# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are ...
diff --git a/cocotb/scheduler.py b/cocotb/scheduler.py index 9b7c2d22cc..fddfbbebfa 100755 --- a/cocotb/scheduler.py +++ b/cocotb/scheduler.py @@ -538,6 +538,11 @@ def _unschedule(self, coro): except Exception as e: coro.log.error("Exception raised by this forked coroutine") ...
networkx__networkx-1045
Need JSON format description The page on JSON serialization lacks information about the actual structure of produced data. This make it hard to see if networkx is a suitable tool for a backend of already existing JavaScript front. http://networkx.lanl.gov/reference/readwrite.json_graph.html
[ { "content": "\"\"\"\n*********\nJSON data \n*********\nGenerate and parse JSON serializable data for NetworkX graphs.\n\"\"\"\nfrom networkx.readwrite.json_graph.node_link import *\nfrom networkx.readwrite.json_graph.adjacency import *\nfrom networkx.readwrite.json_graph.tree import *\nfrom networkx.readwrite....
[ { "content": "\"\"\"\n*********\nJSON data\n*********\nGenerate and parse JSON serializable data for NetworkX graphs.\n\nThese formats are suitable for use with the d3.js examples http://d3js.org/\n\nThe three formats that you can generate with NetworkX are:\n\n - node-link like in the d3.js example http://bl.o...
diff --git a/networkx/readwrite/json_graph/__init__.py b/networkx/readwrite/json_graph/__init__.py index ea3db6e4879..5d0d2575e38 100644 --- a/networkx/readwrite/json_graph/__init__.py +++ b/networkx/readwrite/json_graph/__init__.py @@ -1,8 +1,16 @@ """ ********* -JSON data +JSON data ********* Generate and parse ...
xonsh__xonsh-2818
if _get_bash_completions_source() is None, 'set()' gets into bash completion script Once again, this is a borderline non-issue. I'm running NixOS, which does not follow FHS and _get_bash_completions_source() returns `None` there. While debugging the resulting lack of bash completion, I stumbled upon https://gi...
[ { "content": "\"\"\"This module provides the implementation for the retrieving completion results\nfrom bash.\n\"\"\"\n# developer note: this file should not perform any action on import.\n# This file comes from https://github.com/xonsh/py-bash-completion\n# and should be edited ...
[ { "content": "\"\"\"This module provides the implementation for the retrieving completion results\nfrom bash.\n\"\"\"\n# developer note: this file should not perform any action on import.\n# This file comes from https://github.com/xonsh/py-bash-completion\n# and should be edited ...
diff --git a/news/emptysrc.rst b/news/emptysrc.rst new file mode 100644 index 0000000000..2b25da55d9 --- /dev/null +++ b/news/emptysrc.rst @@ -0,0 +1,14 @@ +**Added:** None + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** + +* In Bash completions, if there are no files to source, a ``set(...
beetbox__beets-4825
auto_keep broken by playlist feature the quick n dirty playlist feature in this commit: https://github.com/beetbox/beets/commit/861bc69df55cb3d4d20da6082878542ff42d85d8 broken auto_keep: https://github.com/beetbox/beets/blob/79435c3b6f682d30cac169c97f978491dfd8f80d/beetsplug/convert.py#L204 When auto_keep is true...
[ { "content": "# This file is part of beets.\n# Copyright 2016, Jakob Schnitzer.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limit...
[ { "content": "# This file is part of beets.\n# Copyright 2016, Jakob Schnitzer.\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limit...
diff --git a/beetsplug/convert.py b/beetsplug/convert.py index ef68655979..9b28523c6f 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -200,8 +200,8 @@ def auto_convert(self, config, task): def auto_convert_keep(self, config, task): if self.config['auto_keep']: empty_opts = sel...
activeloopai__deeplake-683
[BUG] ## 🐛🐛 Bug Report ### ⚗️ Current Behavior Hub's version info is present in two locations, `setup.py` and `hub/version.py`. As result, the released version displays the wrong version info (1.2.3 instead of 1.3.0) when users do `hub --version`. ### 🧰 Possible Solution (optional) Remove version info fro...
[ { "content": "\"\"\"\nLicense:\nThis Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.\nIf a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\"\"\"\n\nimport os\n\nfrom setuptools import find_packages, setup\n\nproject = \"hu...
[ { "content": "\"\"\"\nLicense:\nThis Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.\nIf a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\"\"\"\n\nimport os\n\nfrom setuptools import find_packages, setup\n\nproject = \"hu...
diff --git a/setup.py b/setup.py index 63af5e3cfb..002ddf159f 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,6 @@ from setuptools import find_packages, setup project = "hub" -VERSION = "1.3.0" this_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(this_directory, "README.md")) as f:...
qtile__qtile-4379
[Wayland] AssertionError in the log file when opening flatpak windows. ### The issue: After running the 0.22.2.dev323+ge9915b12 version (installed right after https://github.com/qtile/qtile/pull/3985 has been merged) I've noticed the following errors in the logfile: ``` 2023-08-04 23:05:10,231 ERROR pywayland.serv...
[ { "content": "# Copyright (c) 2021 Matt Colligan\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, ...
[ { "content": "# Copyright (c) 2021 Matt Colligan\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, ...
diff --git a/libqtile/backend/wayland/xdgwindow.py b/libqtile/backend/wayland/xdgwindow.py index a1edddb31b..8b2bec58ac 100644 --- a/libqtile/backend/wayland/xdgwindow.py +++ b/libqtile/backend/wayland/xdgwindow.py @@ -188,7 +188,11 @@ def _update_fullscreen(self, do_full: bool) -> None: def handle_activation_re...
databricks__koalas-974
BUG: Index setter is not working when `None` is assigned to `name` with Pandas: ```python >>> idx = pd.Index([1, 2, 3], name='a') >>> idx Int64Index([1, 2, 3], dtype='int64', name='a') ``` if set name to `None` as below: ```python idx.name = None ``` then idx will turn to ```python Int64Index([1, 2, 3], dt...
[ { "content": "#\n# Copyright (C) 2019 Databricks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required...
[ { "content": "#\n# Copyright (C) 2019 Databricks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required...
diff --git a/databricks/koalas/indexes.py b/databricks/koalas/indexes.py index af1460d484..87cf3f29e3 100644 --- a/databricks/koalas/indexes.py +++ b/databricks/koalas/indexes.py @@ -174,7 +174,8 @@ def names(self, names: List[Union[str, Tuple[str, ...]]]) -> None: if len(internal.index_map) != len(names): ...
ros__ros_comm-1965
NameError: 'f' is not defined Not critical problem, happens when `roslaunch` is called with additional parameter: ``` $ xxx@pandart01:~$ roslaunch franka_example_controllers move_to_start.launch test Traceback (most recent call last): File "/opt/ros/melodic/lib/python3.8/site-packages/roslaunch/__init__.py", l...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so...
[ { "content": "# Software License Agreement (BSD License)\n#\n# Copyright (c) 2008, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of so...
diff --git a/tools/roslaunch/src/roslaunch/__init__.py b/tools/roslaunch/src/roslaunch/__init__.py index eec89659b5..597a895bb3 100644 --- a/tools/roslaunch/src/roslaunch/__init__.py +++ b/tools/roslaunch/src/roslaunch/__init__.py @@ -229,8 +229,10 @@ def _validate_args(parser, options, args): elif len(args) == ...
hpcaitech__ColossalAI-5227
[tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests
[ { "content": "import argparse\n\nimport torch\nimport torch.distributed as dist\nfrom coati.dataset import DataCollatorForSupervisedDataset\nfrom coati.models.bloom import BLOOMRM, BLOOMCritic\nfrom coati.models.gpt import GPTRM, GPTCritic\nfrom coati.models.llama import LlamaCritic, LlamaRM\nfrom coati.models....
[ { "content": "import argparse\n\nimport torch\nimport torch.distributed as dist\nfrom coati.dataset import DataCollatorForSupervisedDataset\nfrom coati.models.bloom import BLOOMRM, BLOOMCritic\nfrom coati.models.gpt import GPTRM, GPTCritic\nfrom coati.models.llama import LlamaCritic, LlamaRM\nfrom coati.models....
diff --git a/applications/Chat/examples/community/peft/train_peft_prompts.py b/applications/Chat/examples/community/peft/train_peft_prompts.py index 1dd9ffcdf1cd..4625f2bda4de 100644 --- a/applications/Chat/examples/community/peft/train_peft_prompts.py +++ b/applications/Chat/examples/community/peft/train_peft_prompts....
encode__uvicorn-592
Uvicorn via gunicorn worker doesn't respect `--forwarded-allow-ips` I use uvicorn in docker as uvicorn-worker for gunicorn for my fastapi app. My application needs to know the real client IP of each request, so I use proxy-server with the `X-Forwarded-For` header. Gunicorn has a special option to change proxy-ip to ...
[ { "content": "import asyncio\nimport logging\n\nfrom gunicorn.workers.base import Worker\nfrom uvicorn.config import Config\nfrom uvicorn.main import Server\n\n\nclass UvicornWorker(Worker):\n \"\"\"\n A worker class for Gunicorn that interfaces with an ASGI consumer callable,\n rather than a WSGI call...
[ { "content": "import asyncio\nimport logging\n\nfrom gunicorn.workers.base import Worker\n\nfrom uvicorn.config import Config\nfrom uvicorn.main import Server\n\n\nclass UvicornWorker(Worker):\n \"\"\"\n A worker class for Gunicorn that interfaces with an ASGI consumer callable,\n rather than a WSGI ca...
diff --git a/uvicorn/workers.py b/uvicorn/workers.py index 826b52b9c..848f914ed 100644 --- a/uvicorn/workers.py +++ b/uvicorn/workers.py @@ -2,6 +2,7 @@ import logging from gunicorn.workers.base import Worker + from uvicorn.config import Config from uvicorn.main import Server @@ -32,6 +33,7 @@ def __init__(self...
google__mobly-222
`snippet_client._start_event_client` crashes because of the extra `host_port` arg. This crashes all tests that use `@AsyncRpc`. We should add some unit tests for this...
[ { "content": "# Copyright 2016 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# Unless required by appli...
[ { "content": "# Copyright 2016 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# Unless required by appli...
diff --git a/mobly/controllers/android_device_lib/snippet_client.py b/mobly/controllers/android_device_lib/snippet_client.py index 14709277..f47308a9 100644 --- a/mobly/controllers/android_device_lib/snippet_client.py +++ b/mobly/controllers/android_device_lib/snippet_client.py @@ -138,10 +138,8 @@ def stop_app(self): ...
encode__django-rest-framework-3435
error_messages on serializer fields should also be used by validators. ``` email = models.EmailField( unique=True, error_messages={ 'unique': 'my message' } ) ``` This does not show the defined error as expected when the field is not unique. The message is still the default: "This field must be uni...
[ { "content": "\"\"\"\nHelper functions for mapping model fields to a dictionary of default\nkeyword arguments that should be used for their equivelent serializer fields.\n\"\"\"\nimport inspect\n\nfrom django.core import validators\nfrom django.db import models\nfrom django.utils.text import capfirst\n\nfrom re...
[ { "content": "\"\"\"\nHelper functions for mapping model fields to a dictionary of default\nkeyword arguments that should be used for their equivelent serializer fields.\n\"\"\"\nimport inspect\n\nfrom django.core import validators\nfrom django.db import models\nfrom django.utils.text import capfirst\n\nfrom re...
diff --git a/rest_framework/utils/field_mapping.py b/rest_framework/utils/field_mapping.py index f2598974ef..48c584b91f 100644 --- a/rest_framework/utils/field_mapping.py +++ b/rest_framework/utils/field_mapping.py @@ -193,7 +193,15 @@ def get_field_kwargs(field_name, model_field): ] if getattr(model_fi...
microsoft__Qcodes-1316
Unable to install qcodes after uninstalling it Uninstalling and installing qcodes again (with `pip install -e .`) results in the following exception: ``` (qcodes3) C:\Users\Administrator>pip list -e Package Version Location ------------------- ------- --------------------------------------------------...
[ { "content": "from setuptools import setup, find_packages\nfrom distutils.version import StrictVersion\nfrom importlib import import_module\nimport re\n\n\ndef get_version(verbose=1):\n \"\"\" Extract version information from source code \"\"\"\n\n try:\n with open('qcodes/version.py', 'r') as f:\n...
[ { "content": "from setuptools import setup, find_packages\nfrom distutils.version import StrictVersion\nfrom importlib import import_module\nimport re\n\n\ndef get_version(verbose=1):\n \"\"\" Extract version information from source code \"\"\"\n\n try:\n with open('qcodes/version.py', 'r') as f:\n...
diff --git a/setup.py b/setup.py index c486463d142..3b944140ba1 100644 --- a/setup.py +++ b/setup.py @@ -103,6 +103,13 @@ def readme(): ***** ''' +othererror_template = ''' +***** +***** could not import package {0}. Please try importing it from +***** the commandline to diagnose the issue. +***** +''' + # now te...
jazzband__django-simple-history-150
Do NOT delete the historical elements when a user is deleted. Hi there, We are porting over our simple-history to your and I'm comparing notes. This one burned us awhile ago that when a user is deleted you probably don't want the history of associated element to CASCADE delete. I have a pull request coming for this....
[ { "content": "from __future__ import unicode_literals\n\nimport threading\nimport copy\ntry:\n from django.apps import apps\nexcept ImportError: # Django < 1.7\n apps = None\nfrom django.db import models, router\nfrom django.db.models import loading\nfrom django.db.models.fields.proxy import OrderWrt\nfr...
[ { "content": "from __future__ import unicode_literals\n\nimport threading\nimport copy\ntry:\n from django.apps import apps # Django >= 1.7\nexcept ImportError:\n apps = None\nfrom django.db import models, router\nfrom django.db.models import loading\nfrom django.db.models.fields.proxy import OrderWrt\nf...
diff --git a/AUTHORS.rst b/AUTHORS.rst index bd6ce0486..dd057fc75 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -22,6 +22,7 @@ Authors - Micah Denbraver - Rajesh Pappula - Ross Lote +- Steven Klass - Trey Hunner - Ulysses Vilela - vnagendra diff --git a/CHANGES.rst b/CHANGES.rst index 123868e9a..5e91501a7 100644 ...
piskvorky__gensim-1837
Incorrect setting of FastText parameters during online training #### Description The `FastText` model is trained with wrong parameters (`epochs`, `total_examples`, `start_alpha`, `end_alpha`) when calling `FastText.train` after building vocabulary. Since the above-mentioned training parameters are not logged, this b...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Authors: Chinmaya Pancholi <chinmayapancholi13@gmail.com>, Shiva Manne <s.manne@rare-technologies.com>\n# Copyright (C) 2017 RaRe Technologies s.r.o.\n\n\"\"\"Learn word representations via fasttext's \"skip-gram and CBOW models\", using either\nhi...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Authors: Chinmaya Pancholi <chinmayapancholi13@gmail.com>, Shiva Manne <s.manne@rare-technologies.com>\n# Copyright (C) 2017 RaRe Technologies s.r.o.\n\n\"\"\"Learn word representations via fasttext's \"skip-gram and CBOW models\", using either\nhi...
diff --git a/gensim/models/fasttext.py b/gensim/models/fasttext.py index 2210c4e0ed..b52b8ecbde 100644 --- a/gensim/models/fasttext.py +++ b/gensim/models/fasttext.py @@ -528,9 +528,10 @@ def train(self, sentences, total_examples=None, total_words=None, self.neg_labels = zeros(self.negative + 1) ...
ray-project__ray-3793
Actor definition needs Actor(object). The following code does not work on Python 2 but works on Python 3. ``` import ray ray.init() @ray.remote class Outer(): def __init__(self): pass ``` Error thrown: ``` Traceback (most recent call last): File "/Users/rliaw/miniconda2/envs/py2/lib/pytho...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport copy\nimport hashlib\nimport inspect\nimport logging\nimport sys\nimport threading\nimport traceback\n\nimport ray.cloudpickle as pickle\nfrom ray.function_manager import Functi...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport copy\nimport hashlib\nimport inspect\nimport logging\nimport sys\nimport threading\nimport traceback\n\nimport ray.cloudpickle as pickle\nfrom ray.function_manager import Functi...
diff --git a/python/ray/actor.py b/python/ray/actor.py index 51c36484f9e0b..e742201b32d69 100644 --- a/python/ray/actor.py +++ b/python/ray/actor.py @@ -779,6 +779,13 @@ def __setstate__(self, state): def make_actor(cls, num_cpus, num_gpus, resources, actor_method_cpus, checkpoint_interval, max_recon...
dj-stripe__dj-stripe-1055
Cancelling a Subscription removes the model instance I notice at the moment when you cancel a subscription the model instance is deleted too and looking at the code this seems to be by design. Is this the correct action to take - surely having the history would be useful and would there not be foreign keys to invoices ...
[ { "content": "\"\"\"\nWebhook event handlers for the various models\n\nStripe docs for Events: https://stripe.com/docs/api/events\nStripe docs for Webhooks: https://stripe.com/docs/webhooks\n\nTODO: Implement webhook event handlers for all the models that need to\n respond to webhook events.\n\nNOTE:\n ...
[ { "content": "\"\"\"\nWebhook event handlers for the various models\n\nStripe docs for Events: https://stripe.com/docs/api/events\nStripe docs for Webhooks: https://stripe.com/docs/webhooks\n\nTODO: Implement webhook event handlers for all the models that need to\n respond to webhook events.\n\nNOTE:\n ...
diff --git a/HISTORY.rst b/HISTORY.rst index 1d916798d4..93d8f43c48 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -34,6 +34,8 @@ History - Change urls.py to use the new style urls. - Update forward relation fields in the admin to be raw id fields. - Updated ``StripeQuantumCurrencyAmountField`` and ``StripeDecimalCur...
ManimCommunity__manim-189
With no scene specified on CLI, manim gives false choice. I was running the command: `manim -pl --media_dir ~/renderings ~/dev/manim/example_scenes/basic.py ` and was greeted by this: ``` [19:29:42] INFO Read configuration files: config.py:...
[ { "content": "import inspect\nimport os\nimport platform\nimport subprocess as sp\nimport sys\nimport re\nimport traceback\nimport importlib.util\n\nfrom .config import file_writer_config\nfrom .scene.scene import Scene\nfrom .utils.sounds import play_error_sound\nfrom .utils.sounds import play_finish_sound\nfr...
[ { "content": "import inspect\nimport os\nimport platform\nimport subprocess as sp\nimport sys\nimport re\nimport traceback\nimport importlib.util\n\nfrom .config import file_writer_config\nfrom .scene.scene import Scene\nfrom .utils.sounds import play_error_sound\nfrom .utils.sounds import play_finish_sound\nfr...
diff --git a/manim/__main__.py b/manim/__main__.py index d1536e26fc..df5e9dd307 100644 --- a/manim/__main__.py +++ b/manim/__main__.py @@ -135,7 +135,9 @@ def get_module(file_name): sys.exit(2) else: if os.path.exists(file_name): - module_name = re.sub(r"\..+$", "", file_name.repla...
xorbitsai__inference-1343
BUG: Launching embedding or reranking models from commandline fails due to PEFT issue ### Describe the bug I am testing Xinference==0.10.2.post1 (before running 0.10.1) but launching Embedding or Reranking models through command line files now due to an update to the peft_model_config object. This does not happen when...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/xinference/deploy/cmdline.py b/xinference/deploy/cmdline.py index 89ae648f07..34ccad9566 100644 --- a/xinference/deploy/cmdline.py +++ b/xinference/deploy/cmdline.py @@ -736,11 +736,15 @@ def model_launch( else [] ) - peft_model_config = { - "image_lora_load_kwargs": image_lora_lo...
sopel-irc__sopel-958
AttributeError: 'NoneType' object has no attribute 'strip' (file "/usr/local/lib/python2.7/dist-packages/sopel/modules/unicode_info.py", line 23, in codepoint) [01:04am] <Ant> .u 01:04AM <Sopel> AttributeError: 'NoneType' object has no attribute 'strip' (file "/usr/local/lib/python2.7/dist-packages/sopel/modules/unicod...
[ { "content": "# coding=utf-8\n\"\"\"Codepoints Module\"\"\"\n# Copyright 2013, Elsie Powell, embolalia.com\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Licensed under the Eiffel Forum License 2.\nfrom __future__ import unicode_literals, absolute_import, print_function, division\nimport unicodedata\nimport...
[ { "content": "# coding=utf-8\n\"\"\"Codepoints Module\"\"\"\n# Copyright 2013, Elsie Powell, embolalia.com\n# Copyright 2008, Sean B. Palmer, inamidst.com\n# Licensed under the Eiffel Forum License 2.\nfrom __future__ import unicode_literals, absolute_import, print_function, division\nimport unicodedata\nimport...
diff --git a/sopel/modules/unicode_info.py b/sopel/modules/unicode_info.py index be5f44d301..6f7b3bfaa8 100644 --- a/sopel/modules/unicode_info.py +++ b/sopel/modules/unicode_info.py @@ -16,11 +16,14 @@ @example('.u ‽', 'U+203D INTERROBANG (‽)') @example('.u 203D', 'U+203D INTERROBANG (‽)') def codepoint(bot, trigge...
openshift__openshift-ansible-3037
Quick install dumps out “openshift” four times Reporting on behalf of @jwforres Noticed several times during the quick install that it dumps out “openshift” four times. It’s odd looking output with no clear reason for why it’s there. Example snippet https://gist.github.com/jwforres/e67120e06f709c6cf9d33c5b1a6ab75c ...
[ { "content": "# pylint: disable=bad-continuation,missing-docstring,no-self-use,invalid-name,global-statement,global-variable-not-assigned\n\nfrom __future__ import (absolute_import, print_function)\n\nimport socket\nimport subprocess\nimport sys\nimport os\nimport logging\nimport yaml\nfrom ooinstall.variants i...
[ { "content": "# pylint: disable=bad-continuation,missing-docstring,no-self-use,invalid-name,global-statement,global-variable-not-assigned\n\nfrom __future__ import (absolute_import, print_function)\n\nimport socket\nimport subprocess\nimport sys\nimport os\nimport logging\nimport yaml\nfrom ooinstall.variants i...
diff --git a/utils/src/ooinstall/openshift_ansible.py b/utils/src/ooinstall/openshift_ansible.py index 113aca0e15b..ce6e5466416 100644 --- a/utils/src/ooinstall/openshift_ansible.py +++ b/utils/src/ooinstall/openshift_ansible.py @@ -212,7 +212,7 @@ def write_host(host, role, inventory, schedulable=None): if instal...
optuna__optuna-402
params not being converted to internal_repr in FixedTrial suggest_* functions FixedTrial's `_suggest` function is missing a call to `distribution.to_internal_repr` before line [L606.](https://github.com/pfnet/optuna/blob/master/optuna/trial.py#L606) **Conditions** - Optuna version: 0.11.0 - Python version: 3.5.2 ...
[ { "content": "import abc\nimport math\nimport six\nimport warnings\n\nfrom optuna import distributions\nfrom optuna.distributions import BaseDistribution # NOQA\nfrom optuna import logging\nfrom optuna import types\n\nif types.TYPE_CHECKING:\n from optuna.study import Study # NOQA\n from typing import A...
[ { "content": "import abc\nimport math\nimport six\nimport warnings\n\nfrom optuna import distributions\nfrom optuna.distributions import BaseDistribution # NOQA\nfrom optuna import logging\nfrom optuna import types\n\nif types.TYPE_CHECKING:\n from optuna.study import Study # NOQA\n from typing import A...
diff --git a/optuna/trial.py b/optuna/trial.py index d2756f3667..a076b3be86 100644 --- a/optuna/trial.py +++ b/optuna/trial.py @@ -603,7 +603,8 @@ def _suggest(self, name, distribution): 'the construction of the FixedTrial object.'.format(name)) value = self._params[name] - ...
dotkom__onlineweb4-741
Ability to format company-url ![screenshot from 2014-01-29 17 32 37](https://f.cloud.github.com/assets/1758308/2031524/225447e4-8903-11e3-9de0-90237ad655ba.png) Like in this case, this ugly url should be formated to vimsa.no or the like.
[ { "content": "from django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom filebrowser.fields import FileBrowseField\n\nclass Company(models.Model):\n\n IMAGE_FOLDER = \"images/companies\"\n IMAGE_EXTENSIONS = ['.jpg', '.jpeg', '.gif', '.png', '.tif', '.tiff']\n\n\n name ...
[ { "content": "from django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom filebrowser.fields import FileBrowseField\n\nclass Company(models.Model):\n\n IMAGE_FOLDER = \"images/companies\"\n IMAGE_EXTENSIONS = ['.jpg', '.jpeg', '.gif', '.png', '.tif', '.tiff']\n\n\n name ...
diff --git a/apps/companyprofile/models.py b/apps/companyprofile/models.py index 24ee39986..340b44fd8 100644 --- a/apps/companyprofile/models.py +++ b/apps/companyprofile/models.py @@ -14,7 +14,7 @@ class Company(models.Model): image = FileBrowseField(_(u"bilde"), max_length=200, directory=IMAGE_FOLDER, ...
ethereum__web3.py-407
Remove shh from default list of modules The whisper protocol is not standardized enough to be in the default list. Also, note in the docs the current fractured nature of whisper. See #384
[ { "content": "from __future__ import absolute_import\n\nfrom eth_utils import (\n apply_to_return_value,\n add_0x_prefix,\n from_wei,\n is_address,\n is_checksum_address,\n keccak,\n remove_0x_prefix,\n to_checksum_address,\n to_wei,\n)\n\nfrom web3.admin import Admin\nfrom web3.eth i...
[ { "content": "from __future__ import absolute_import\n\nfrom eth_utils import (\n apply_to_return_value,\n add_0x_prefix,\n from_wei,\n is_address,\n is_checksum_address,\n keccak,\n remove_0x_prefix,\n to_checksum_address,\n to_wei,\n)\n\nfrom web3.admin import Admin\nfrom web3.eth i...
diff --git a/docs/web3.shh.rst b/docs/web3.shh.rst index f55e5c377b..5f7aea91ee 100644 --- a/docs/web3.shh.rst +++ b/docs/web3.shh.rst @@ -7,6 +7,11 @@ SHH API The ``web3.shh`` object exposes methods to interact with the RPC APIs under the ``shh_`` namespace. +.. warning:: The Whisper protocol is in flux, with inco...
ansible__ansible-modules-core-3732
os_floating_ip errors if an ip is attached. ##### Issue Type: Regression (so inevitably a feature idea). ##### Ansible Version: ansible 2.0.0 ##### Ansible Configuration: ``` < lookup_plugins = ./lookup_plugins:~/.ansible/plugins/lookup_plugins/:/usr/share/ansible_plugins/ < timeout = 120 --- > timeout = 10 ``` ###...
[ { "content": "#!/usr/bin/python\n# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.\n# Author: Davide Guerri <davide.guerri@hp.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 Software F...
[ { "content": "#!/usr/bin/python\n# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.\n# Author: Davide Guerri <davide.guerri@hp.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 Software F...
diff --git a/cloud/openstack/os_floating_ip.py b/cloud/openstack/os_floating_ip.py index d4ea326c98a..ee86c8490a5 100644 --- a/cloud/openstack/os_floating_ip.py +++ b/cloud/openstack/os_floating_ip.py @@ -163,6 +163,10 @@ def main(): msg="server {0} not found".format(server_name_or_id)) if s...
docker__docker-py-1908
registry auth for docker service does not work on Windows Credentials to authenticated docker registry are not passed to docker service on Windows after login: ``` client.login(username, password, registry=registry, reauth=True) client.services.create([any_args]) ``` On Centos7 it works fine. Tested with AWS EC...
[ { "content": "import base64\nimport json\nimport logging\n\nimport dockerpycreds\nimport six\n\nfrom . import errors\nfrom .utils import config\n\nINDEX_NAME = 'docker.io'\nINDEX_URL = 'https://index.{0}/v1/'.format(INDEX_NAME)\nTOKEN_USERNAME = '<token>'\n\nlog = logging.getLogger(__name__)\n\n\ndef resolve_re...
[ { "content": "import base64\nimport json\nimport logging\n\nimport dockerpycreds\nimport six\n\nfrom . import errors\nfrom .utils import config\n\nINDEX_NAME = 'docker.io'\nINDEX_URL = 'https://index.{0}/v1/'.format(INDEX_NAME)\nTOKEN_USERNAME = '<token>'\n\nlog = logging.getLogger(__name__)\n\n\ndef resolve_re...
diff --git a/docker/auth.py b/docker/auth.py index 91be2b850..48fcd8b50 100644 --- a/docker/auth.py +++ b/docker/auth.py @@ -90,9 +90,12 @@ def resolve_authconfig(authconfig, registry=None): log.debug( 'Using credentials store "{0}"'.format(store_name) ) - return _r...
xorbitsai__inference-777
XINFERENCE_HOME环境变量问题 hi , 我这边设置了XINFERENCE_HOME环境变量,但是去指定的目录下看到里面的模型都是软连接,这是什么原因,谢谢! ![image](https://github.com/xorbitsai/inference/assets/9452272/2dade7e0-b1b7-45e1-b1fa-a0ca52ef18e4)
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/xinference/constants.py b/xinference/constants.py index fe27a67623..5fee675083 100644 --- a/xinference/constants.py +++ b/xinference/constants.py @@ -23,8 +23,15 @@ XINFERENCE_ENV_DISABLE_VLLM = "XINFERENCE_DISABLE_VLLM" -def get_xinference_home(): - return os.environ.get(XINFERENCE_ENV_HOME_PATH, ...
python__mypy-7529
`new_semantic_analyzer = ...` raises AttributeError Having a setting for `new_semantic_analyzer` in setup.cfg raises an AttributeError for me on master (`mypy 0.730+dev.475148f2b08dbe0126fc3e22c277132b65e47007`). This should probably fall back to the same error message as other unknown options yields :) ``` Traceb...
[ { "content": "import argparse\nimport configparser\nimport glob as fileglob\nfrom io import StringIO\nimport os\nimport re\nimport sys\n\nfrom typing import Any, Dict, List, Mapping, Optional, Tuple, TextIO\nfrom typing_extensions import Final\n\nfrom mypy import defaults\nfrom mypy.options import Options, PER_...
[ { "content": "import argparse\nimport configparser\nimport glob as fileglob\nfrom io import StringIO\nimport os\nimport re\nimport sys\n\nfrom typing import Any, Dict, List, Mapping, Optional, Tuple, TextIO\nfrom typing_extensions import Final\n\nfrom mypy import defaults\nfrom mypy.options import Options, PER_...
diff --git a/mypy/config_parser.py b/mypy/config_parser.py index b48c23587d1b..6a94757f58ed 100644 --- a/mypy/config_parser.py +++ b/mypy/config_parser.py @@ -178,7 +178,12 @@ def parse_section(prefix: str, template: Options, if key in config_types: ct = config_types[key] else: - ...
wright-group__WrightTools-1009
Matplotlib depreciation related to _helpers ``` c:\users\dmorrow\source\wrighttools\WrightTools\artists\_helpers.py:990: MatplotlibDeprecationWarning: The numRows attribute was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Use get_gridspec().nrows instead. numRows = fig.axes[0].numRow...
[ { "content": "\"\"\"Functions to help with plotting.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\n\nimport numpy as np\n\nfrom scipy.interpolate import interp2d\n\nimport matplotlib\nimport matplotlib.pyplot as plt\nimport matplot...
[ { "content": "\"\"\"Functions to help with plotting.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport os\n\nimport numpy as np\n\nfrom scipy.interpolate import interp2d\n\nimport matplotlib\nimport matplotlib.pyplot as plt\nimport matplot...
diff --git a/CHANGELOG.md b/CHANGELOG.md index eeab9c41..cc347841 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Fixed - Fixed bug in `from_COLORS` that misordered the relationship between variables and channels for 1D dataset...
django-json-api__django-rest-framework-json-api-1010
Add support for Django 4.0 ## Description of the Bug Report Django 4.0a1 has been [released](https://www.djangoproject.com/weblog/2021/sep/21/django-40-alpha-1-released/). As it is marked as feature freeze we can also add it to our test suite. DRF has also already [added](https://github.com/encode/django-rest-fra...
[ { "content": "import os\n\nSITE_ID = 1\nDEBUG = True\n\nMEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))\nMEDIA_URL = \"/media/\"\n\nDATABASE_ENGINE = \"sqlite3\"\n\nDATABASES = {\n \"default\": {\n \"ENGINE\": \"django.db.backends.sqlite3\",\n \"NAME\": \"drf_example\"...
[ { "content": "import os\n\nSITE_ID = 1\nDEBUG = True\n\nMEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))\nMEDIA_URL = \"/media/\"\nUSE_TZ = False\n\nDATABASE_ENGINE = \"sqlite3\"\n\nDATABASES = {\n \"default\": {\n \"ENGINE\": \"django.db.backends.sqlite3\",\n \"NAME\":...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b631eda7..18ca7b03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ any parts of the framework not mentioned in the documentation should generally b ## [Unreleased] +### Added + +* Added support for Django 4.0. + ### Fixed * Adjusted error messages ...
aio-libs-abandoned__aioredis-py-1017
[2.0] Lock class uses blocking sleep aioredis/lock.py calls `time.sleep` instead of `asyncio.sleep`. Pull request on its way...
[ { "content": "import threading\nimport time as mod_time\nimport uuid\nfrom types import SimpleNamespace\nfrom typing import TYPE_CHECKING, Awaitable, NoReturn, Union\n\nfrom aioredis.exceptions import LockError, LockNotOwnedError\n\nif TYPE_CHECKING:\n from aioredis import Redis\n\n\nclass Lock:\n \"\"\"\...
[ { "content": "import asyncio\nimport threading\nimport time as mod_time\nimport uuid\nfrom types import SimpleNamespace\nfrom typing import TYPE_CHECKING, Awaitable, NoReturn, Union\n\nfrom aioredis.exceptions import LockError, LockNotOwnedError\n\nif TYPE_CHECKING:\n from aioredis import Redis\n\n\nclass Lo...
diff --git a/CHANGES/1016.bugfix b/CHANGES/1016.bugfix new file mode 100644 index 000000000..ab8a0d7e0 --- /dev/null +++ b/CHANGES/1016.bugfix @@ -0,0 +1 @@ +Fix aioredis.lock.Lock using a sleep that blocks the event loop. diff --git a/aioredis/lock.py b/aioredis/lock.py index a31ec3e6b..56fbba40a 100644 --- a/aioredis...
typeddjango__django-stubs-1814
Add ManyRelatedManager and distinguish from RelatedManager Methods of `RelatedManager` and `ManyRelatedManager` have different signatures. I noticed while reviewing #1443.
[ { "content": "ABSTRACT_USER_MODEL_FULLNAME = \"django.contrib.auth.models.AbstractUser\"\nPERMISSION_MIXIN_CLASS_FULLNAME = \"django.contrib.auth.models.PermissionsMixin\"\nMODEL_METACLASS_FULLNAME = \"django.db.models.base.ModelBase\"\nMODEL_CLASS_FULLNAME = \"django.db.models.base.Model\"\nFIELD_FULLNAME = \"...
[ { "content": "ABSTRACT_USER_MODEL_FULLNAME = \"django.contrib.auth.models.AbstractUser\"\nPERMISSION_MIXIN_CLASS_FULLNAME = \"django.contrib.auth.models.PermissionsMixin\"\nMODEL_METACLASS_FULLNAME = \"django.db.models.base.ModelBase\"\nMODEL_CLASS_FULLNAME = \"django.db.models.base.Model\"\nFIELD_FULLNAME = \"...
diff --git a/django-stubs/db/models/fields/related_descriptors.pyi b/django-stubs/db/models/fields/related_descriptors.pyi index ccabc4f36..f5b2db95b 100644 --- a/django-stubs/db/models/fields/related_descriptors.pyi +++ b/django-stubs/db/models/fields/related_descriptors.pyi @@ -6,7 +6,7 @@ from django.db.models.base ...
ivy-llc__ivy-26013
acos
[ { "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 b7c451fbb0c33..e18f35a224a08 100644 --- a/ivy/functional/frontends/paddle/tensor/tensor.py +++ b/ivy/functional/frontends/paddle/tensor/tensor.py @@ -957,6 +957,10 @@ def nonzero(self): def inner(...
pypa__setuptools-3515
[BUG] Installing in editable mode fails when an optional extension fails to build ### setuptools version setuptools==60.0.1 ### Python version Python 3.10 ### OS osx-arm64 ### Additional environment information _No response_ ### Description If an optional extension fails to build in editable mode, the whole in...
[ { "content": "import os\nimport sys\nimport itertools\nfrom importlib.machinery import EXTENSION_SUFFIXES\nfrom importlib.util import cache_from_source as _compiled_file_name\nfrom typing import Dict, Iterator, List, Tuple\n\nfrom distutils.command.build_ext import build_ext as _du_build_ext\nfrom distutils.cco...
[ { "content": "import os\nimport sys\nimport itertools\nfrom importlib.machinery import EXTENSION_SUFFIXES\nfrom importlib.util import cache_from_source as _compiled_file_name\nfrom typing import Dict, Iterator, List, Tuple\n\nfrom distutils.command.build_ext import build_ext as _du_build_ext\nfrom distutils.cco...
diff --git a/changelog.d/3515.misc.rst b/changelog.d/3515.misc.rst new file mode 100644 index 0000000000..c884a316b8 --- /dev/null +++ b/changelog.d/3515.misc.rst @@ -0,0 +1,2 @@ +Fixed "inline" file copying for editable installations and +optional extensions. \ No newline at end of file diff --git a/setuptools/comman...
pyinstaller__pyinstaller-5663
Failure in 'Looking for ctypes DLLs' when specifying 'ctypes' as a hidden import. With `hiddenimports=["ctypes"]`, I get the following exception: ``` 24 INFO: PyInstaller: 3.4 24 INFO: Python: 3.7.1 25 INFO: Platform: Linux-4.18.16-arch1-1-ARCH-x86_64-with-arch 26 INFO: UPX is not available. 26 INFO: Extending PY...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/depend/analysis.py b/PyInstaller/depend/analysis.py index b4f87b31f5..c33dc446f3 100644 --- a/PyInstaller/depend/analysis.py +++ b/PyInstaller/depend/analysis.py @@ -741,6 +741,11 @@ def get_co_using_ctypes(self): if node: referers = self.getReferers(node) for...
pyinstaller__pyinstaller-6875
issue with having a folder name packaging when --hiddenimport pandas (this is very weird) ## Description of the issue I came across this very weird behavior of pyinstaller. I found out that when I have a folder in the project dir named as "packaging", pyinstaller while building distribution would throw error. I have c...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2022, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2022, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/depend/analysis.py b/PyInstaller/depend/analysis.py index 564ffa0e67..8a78f84c07 100644 --- a/PyInstaller/depend/analysis.py +++ b/PyInstaller/depend/analysis.py @@ -662,6 +662,10 @@ def get_code_using(self, module: str) -> dict: if identifier == module or identifier.startswith...
iterative__dvc-4764
unable to plot file from repo subfolder DVC version: `1.8.4` ``` #!/bin/bash set -ex rm -rf wspace mkdir wspace pushd wspace mkdir repo pushd repo git init --quiet dvc init --quiet mkdir subfolder pushd subfolder echo '[{"val":1},{"val":3}]' >> plot.json dvc plots show plot.json ``` fa...
[ { "content": "import logging\n\nfrom funcy import cached_property, first, project\n\nfrom dvc.exceptions import DvcException, NoPlotsError\nfrom dvc.repo.collect import collect\nfrom dvc.schema import PLOT_PROPS\nfrom dvc.tree.repo import RepoTree\nfrom dvc.utils import relpath\n\nlogger = logging.getLogger(__n...
[ { "content": "import logging\n\nfrom funcy import cached_property, first, project\n\nfrom dvc.exceptions import DvcException, NoPlotsError\nfrom dvc.repo.collect import collect\nfrom dvc.schema import PLOT_PROPS\nfrom dvc.tree.repo import RepoTree\nfrom dvc.utils import relpath\n\nlogger = logging.getLogger(__n...
diff --git a/dvc/repo/plots/__init__.py b/dvc/repo/plots/__init__.py index 2748baa5bf..5ae87abd69 100644 --- a/dvc/repo/plots/__init__.py +++ b/dvc/repo/plots/__init__.py @@ -84,7 +84,8 @@ def show(self, targets=None, revs=None, props=None, templates=None): # If any mentioned plot doesn't have any data then th...
readthedocs__readthedocs.org-3387
Can't edit canonical domain ## Details Putting in a canonical domain and then trying to change the domain name results in "Only 1 Domain can be canonical at a time." ## Expected Result Domain is updated with new domain name ## Actual Result Form errors.
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Project forms.\"\"\"\n\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nfrom builtins import object\nfrom random import choice\n\nfrom django import forms\nfrom django.conf import settings\nfrom django.contrib.auth.models...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Project forms.\"\"\"\n\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nfrom builtins import object\nfrom random import choice\n\nfrom django import forms\nfrom django.conf import settings\nfrom django.contrib.auth.models...
diff --git a/readthedocs/projects/forms.py b/readthedocs/projects/forms.py index 5cd9fad44d5..a2f868c8a3c 100644 --- a/readthedocs/projects/forms.py +++ b/readthedocs/projects/forms.py @@ -570,9 +570,10 @@ def clean_domain(self): def clean_canonical(self): canonical = self.cleaned_data['canonical'] + ...
RedHatInsights__insights-core-3108
The modprobe combiner is raising AttributeError exceptions in production. The AllModProbe combiner is throwing a number of the exception AttributeError("'bool' object has no attribute 'append'",) in production.
[ { "content": "\"\"\"\nModprobe configuration\n======================\n\nThe modprobe configuration files are normally available to rules as a list of\nModProbe objects. This combiner turns those into one set of data, preserving\nthe original file name that defined modprobe configuration line using a tuple.\n\n...
[ { "content": "\"\"\"\nModprobe configuration\n======================\n\nThe modprobe configuration files are normally available to rules as a list of\nModProbe objects. This combiner turns those into one set of data, preserving\nthe original file name that defined modprobe configuration line using a tuple.\n\n...
diff --git a/insights/combiners/modprobe.py b/insights/combiners/modprobe.py index a3fb596e4f..97c6c6e53d 100644 --- a/insights/combiners/modprobe.py +++ b/insights/combiners/modprobe.py @@ -82,7 +82,7 @@ def __init__(self, modprobe): if section not in self.data: self.data[section]...
openvstorage__framework-584
Add vDisk not working for VMWare `2016-05-26 13:39:36 72900 +0200 - OVS-1 - 23171/140722815354688 - celery/celery.worker.job - 226 - ERROR - Task ovs.vdisk.create_new[dff66fdc-aa3b-41cf-81f2-25f6e51e3f43] raised unexpected: RuntimeError('Could not find datastore',) Traceback (most recent call last): File "/usr/lib/py...
[ { "content": "# Copyright (C) 2016 iNuron NV\n#\n# This file is part of Open vStorage Open Source Edition (OSE),\n# as available from\n#\n# http://www.openvstorage.org and\n# http://www.openvstorage.com.\n#\n# This file is free software; you can redistribute it and/or modify it\n# under the terms of t...
[ { "content": "# Copyright (C) 2016 iNuron NV\n#\n# This file is part of Open vStorage Open Source Edition (OSE),\n# as available from\n#\n# http://www.openvstorage.org and\n# http://www.openvstorage.com.\n#\n# This file is free software; you can redistribute it and/or modify it\n# under the terms of t...
diff --git a/ovs/extensions/hypervisor/apis/vmware/sdk.py b/ovs/extensions/hypervisor/apis/vmware/sdk.py index 226a9b34d..4203f4582 100644 --- a/ovs/extensions/hypervisor/apis/vmware/sdk.py +++ b/ovs/extensions/hypervisor/apis/vmware/sdk.py @@ -976,7 +976,9 @@ def _get_files_on_datastore(self, ip, mountpoint, host=None...
bridgecrewio__checkov-686
No module named 'packaging' **Describe the bug** Since latest docker image v1.0.640. We got an issue when running checkov on our CI. **To Reproduce** ``` $ checkov --quiet -d directory Traceback (most recent call last): File "/usr/local/bin/checkov", line 2, in <module> from checkov.main import run Fi...
[ { "content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\")...
[ { "content": "#!/usr/bin/env python\nimport logging\nimport os\nfrom importlib import util\nfrom os import path\n\nimport setuptools\nfrom setuptools import setup\n\n# read the contents of your README file\nthis_directory = path.abspath(path.dirname(__file__))\nwith open(path.join(this_directory, \"README.md\")...
diff --git a/HomebrewFormula/checkov.rb b/HomebrewFormula/checkov.rb index db190db1d6..782ae67129 100644 --- a/HomebrewFormula/checkov.rb +++ b/HomebrewFormula/checkov.rb @@ -148,6 +148,11 @@ class Checkov < Formula sha256 "91056c15fa70756691db97756772bb1eb9678fa585d9184f24534b100dc60f4a" end + resource "pac...
xorbitsai__inference-1166
是否考虑支持CodeShell? 是否考虑支持CodeShell? 北大开源的多语言代码大模型基座:https://github.com/WisdomShell/codeshell
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/xinference/model/llm/llm_family.json b/xinference/model/llm/llm_family.json index 9b8921a411..98eb221dc3 100644 --- a/xinference/model/llm/llm_family.json +++ b/xinference/model/llm/llm_family.json @@ -98,6 +98,72 @@ ] } }, + { + "version": 1, + "context_length": 8194, + "model_nam...
pulp__pulpcore-2382
Duplicate Key Exception Raised during Sync related to duplicate RemoteArtifact objects **Version** pulpcore 3.18 at 3e5b68377088616c9ec55884f614b00c4a5dfc4e and pulp_container at d801f93ee4f50b08bd9e8c699be668e2ed5732c1 **Describe the bug** Sync with pulp_container until you receive the duplicate RemoteArtifact ex...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom gettext import gettext as _\nimport logging\n\nfrom asgiref.sync import sync_to_async\nfrom django.db.models import Prefetch, prefetch_related_objects, Q\n\nfrom pulpcore.plugin.exceptions import UnsupportedDigestValidationError\nfrom pulpc...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom gettext import gettext as _\nimport logging\n\nfrom asgiref.sync import sync_to_async\nfrom django.db.models import Prefetch, prefetch_related_objects, Q\n\nfrom pulpcore.plugin.exceptions import UnsupportedDigestValidationError\nfrom pulpc...
diff --git a/CHANGES/2381.bugfix b/CHANGES/2381.bugfix new file mode 100644 index 0000000000..c0f06ddc14 --- /dev/null +++ b/CHANGES/2381.bugfix @@ -0,0 +1,2 @@ +Fixes duplicate key error ``Key (content_artifact_id, remote_id)`` when creating ``RemoteArtifacts`` +during syncs in pulp_container and possibly other plugin...
adamchainz__django-mysql-273
ImportError: No module named termios on Windows Summary: https://stackoverflow.com/questions/36508126/importerror-no-module-named-termios-with-django-mysql-on-windows Django Version: 1.8.7 Database and version used: MySQL 5.6 Version: Django-MySQL 1.0.7 Even after installing Cygwin.
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import division\n\nimport os\nimport pty\nimport time\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom subprocess import PIPE, Popen, call\nfrom threading import Lock, Thread\n\nfrom django.db import DEFAULT_DB_ALIAS, connect...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import division\n\nimport os\nimport time\nfrom collections import defaultdict\nfrom contextlib import contextmanager\nfrom subprocess import PIPE, Popen, call\nfrom threading import Lock, Thread\n\nfrom django.db import DEFAULT_DB_ALIAS, connections\nfrom d...
diff --git a/HISTORY.rst b/HISTORY.rst index cbf135e6..94097059 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -8,6 +8,8 @@ Pending * ``SmartChunkedIterator`` now fails properly for models whose primary key is a non-integer foreign key. +* ``pty`` is no longer imported at the top-level in ``django_mysql.utils``, +...
learningequality__kolibri-11896
Add regression testing for channel update deletion behaviour Ref: https://github.com/learningequality/kolibri/pull/5853/files/b0104f3ef0e978f41beddf090240c4f1b5cafe04..94c5800705a4f5f5b5295de4fb75b9d7e4a75c6e#r329181611 Add a test to ensure that deleting during an upgrade proceeds properly.
[ { "content": "import io\nimport json\nimport logging\nimport time\nfrom itertools import islice\n\nfrom django.apps import apps\nfrom django.db.models.fields.related import ForeignKey\nfrom sqlalchemy import and_\nfrom sqlalchemy import or_\nfrom sqlalchemy.dialects.postgresql import insert\nfrom sqlalchemy.exc...
[ { "content": "import io\nimport json\nimport logging\nimport time\nfrom itertools import islice\n\nfrom django.apps import apps\nfrom django.db.models.fields.related import ForeignKey\nfrom sqlalchemy import and_\nfrom sqlalchemy import or_\nfrom sqlalchemy.dialects.postgresql import insert\nfrom sqlalchemy.exc...
diff --git a/kolibri/core/content/test/test_channel_import.py b/kolibri/core/content/test/test_channel_import.py index 58abba088b1..2a0eef1d1b6 100644 --- a/kolibri/core/content/test/test_channel_import.py +++ b/kolibri/core/content/test/test_channel_import.py @@ -960,3 +960,77 @@ def tearDownClass(cls): @classmet...
pulp__pulpcore-2383
Duplicate Key Exception Raised during Sync related to duplicate RemoteArtifact objects **Version** pulpcore 3.18 at 3e5b68377088616c9ec55884f614b00c4a5dfc4e and pulp_container at d801f93ee4f50b08bd9e8c699be668e2ed5732c1 **Describe the bug** Sync with pulp_container until you receive the duplicate RemoteArtifact ex...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom gettext import gettext as _\nimport logging\n\nfrom asgiref.sync import sync_to_async\nfrom django.db.models import Prefetch, prefetch_related_objects, Q\n\nfrom pulpcore.plugin.exceptions import UnsupportedDigestValidationError\nfrom pulpc...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom gettext import gettext as _\nimport logging\n\nfrom asgiref.sync import sync_to_async\nfrom django.db.models import Prefetch, prefetch_related_objects, Q\n\nfrom pulpcore.plugin.exceptions import UnsupportedDigestValidationError\nfrom pulpc...
diff --git a/CHANGES/2381.bugfix b/CHANGES/2381.bugfix new file mode 100644 index 0000000000..c0f06ddc14 --- /dev/null +++ b/CHANGES/2381.bugfix @@ -0,0 +1,2 @@ +Fixes duplicate key error ``Key (content_artifact_id, remote_id)`` when creating ``RemoteArtifacts`` +during syncs in pulp_container and possibly other plugin...
PennyLaneAI__pennylane-3119
[BUG] `ControlledQubitUnitary` behaves differently in `0.25` and `0.26` ### Expected behavior Here is a minimal example with `v0.26`: ```python U = qml.PauliX.compute_matrix() * (1.0j) def subcircuit(): qml.ControlledQubitUnitary(U @ U, control_wires=1, wires=2, control_values='0') dev = qml.device("def...
[ { "content": "# Copyright 2018-2021 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-2021 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 387215141f7..7425dbcea8d 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -99,6 +99,9 @@ keyword argument when using `GellMann`, which determines which of the 8 Gell-Man <h3>Bug fixes</h3> +* Fixed a b...
cupy__cupy-568
Output of cupy.get_array_module is not correct When the input to cupy.get_array_module is a "cupy.sparse" matrix, this function returns "numpy". ``` >>> import cupy >>> a = cupy.array([0,0,1], dtype=xp.float32) >>> a = cupy.sparse.csr_matrix(a) >>> cupy.get_array_module(a) <module 'numpy' from '.../numpy/__in...
[ { "content": "from __future__ import division\nimport pkg_resources\nimport sys\n\nimport numpy\nimport six\n\ntry:\n from cupy import core # NOQA\nexcept ImportError:\n # core is a c-extension module.\n # When a user cannot import core, it represents that CuPy is not correctly\n # built.\n exc_...
[ { "content": "from __future__ import division\nimport pkg_resources\nimport sys\n\nimport numpy\nimport six\n\ntry:\n from cupy import core # NOQA\nexcept ImportError:\n # core is a c-extension module.\n # When a user cannot import core, it represents that CuPy is not correctly\n # built.\n exc_...
diff --git a/cupy/__init__.py b/cupy/__init__.py index bc20db8f892..baec02e5035 100644 --- a/cupy/__init__.py +++ b/cupy/__init__.py @@ -40,6 +40,7 @@ def is_available(): from cupy import padding # NOQA from cupy import random # NOQA from cupy import sorting # NOQA +from cupy import sparse # NOQA from cupy impo...
qutebrowser__qutebrowser-2008
Crash when pasting emoji into the command line qutebrowser crashes when I paste 🌀 into the command line. ``` 01:01:57 DEBUG completion completer:_partition:163 partitioning ['🌀'] around position 2 01:01:57 ERROR misc crashsignal:exception_hook:211 Uncaught exception Traceback (most recent call last): F...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
[ { "content": "# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:\n\n# Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org>\n#\n# This file is part of qutebrowser.\n#\n# qutebrowser is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License...
diff --git a/qutebrowser/completion/completer.py b/qutebrowser/completion/completer.py index 21f7b99cec5..0c83a497623 100644 --- a/qutebrowser/completion/completer.py +++ b/qutebrowser/completion/completer.py @@ -157,6 +157,7 @@ def _partition(self): result = runner.parse(text, fallback=True, keep=True) ...
nautobot__nautobot-5467
Duplicated location link in VLAN_LINK <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with Nautobot installation, or if you have a general question, please start a discussion instead: https://githu...
[ { "content": "from django.utils.safestring import mark_safe\nimport django_tables2 as tables\nfrom django_tables2.utils import Accessor\n\nfrom nautobot.core.tables import (\n BaseTable,\n BooleanColumn,\n ButtonsColumn,\n LinkedCountColumn,\n TagColumn,\n ToggleColumn,\n)\nfrom nautobot.core....
[ { "content": "from django.utils.safestring import mark_safe\nimport django_tables2 as tables\nfrom django_tables2.utils import Accessor\n\nfrom nautobot.core.tables import (\n BaseTable,\n BooleanColumn,\n ButtonsColumn,\n LinkedCountColumn,\n TagColumn,\n ToggleColumn,\n)\nfrom nautobot.core....
diff --git a/changes/5466.fixed b/changes/5466.fixed new file mode 100644 index 00000000000..e43174e8d33 --- /dev/null +++ b/changes/5466.fixed @@ -0,0 +1 @@ +Remove duplicated location param in vlan table. diff --git a/nautobot/ipam/tables.py b/nautobot/ipam/tables.py index 78b016277e8..527913725b2 100644 --- a/nautob...
pulp__pulpcore-2384
Duplicate Key Exception Raised during Sync related to duplicate RemoteArtifact objects **Version** pulpcore 3.18 at 3e5b68377088616c9ec55884f614b00c4a5dfc4e and pulp_container at d801f93ee4f50b08bd9e8c699be668e2ed5732c1 **Describe the bug** Sync with pulp_container until you receive the duplicate RemoteArtifact ex...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom gettext import gettext as _\nimport logging\n\nfrom asgiref.sync import sync_to_async\nfrom django.db.models import Prefetch, prefetch_related_objects\n\nfrom pulpcore.plugin.exceptions import UnsupportedDigestValidationError\nfrom pulpcore...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom gettext import gettext as _\nimport logging\n\nfrom asgiref.sync import sync_to_async\nfrom django.db.models import Prefetch, prefetch_related_objects\n\nfrom pulpcore.plugin.exceptions import UnsupportedDigestValidationError\nfrom pulpcore...
diff --git a/CHANGES/2381.bugfix b/CHANGES/2381.bugfix new file mode 100644 index 0000000000..c0f06ddc14 --- /dev/null +++ b/CHANGES/2381.bugfix @@ -0,0 +1,2 @@ +Fixes duplicate key error ``Key (content_artifact_id, remote_id)`` when creating ``RemoteArtifacts`` +during syncs in pulp_container and possibly other plugin...
cobbler__cobbler-3552
SafeConfigParser was removed in 3.12 ### Describe the bug From https://docs.python.org/3.12/whatsnew/3.12.html: Several names deprecated in the configparser way back in 3.2 have been removed per gh-89336: - configparser.ParsingError no longer has a filename attribute or argument. Use the source attribute and arg...
[ { "content": "\"\"\"\nAuthorization module that allow users listed in\n/etc/cobbler/users.conf to be permitted to access resources.\nFor instance, when using authz_ldap, you want to use authn_configfile,\nnot authz_allowall, which will most likely NOT do what you want.\n\"\"\"\n# SPDX-License-Identifier: GPL-2....
[ { "content": "\"\"\"\nAuthorization module that allow users listed in\n/etc/cobbler/users.conf to be permitted to access resources.\nFor instance, when using authz_ldap, you want to use authn_configfile,\nnot authz_allowall, which will most likely NOT do what you want.\n\"\"\"\n# SPDX-License-Identifier: GPL-2....
diff --git a/changelog.d/3552.fixed b/changelog.d/3552.fixed new file mode 100644 index 0000000000..801fbfbaf6 --- /dev/null +++ b/changelog.d/3552.fixed @@ -0,0 +1 @@ +Removed from Python 3.12 SafeConfigParser replaced with ConfigParser diff --git a/cobbler/modules/authorization/configfile.py b/cobbler/modules/authori...
django-compressor__django-compressor-526
Add option for CssAbsoluteFilter COMPRESS_CSS_HASHING_METHOD to be None I am currently versioning my static files by application version in my static root. I don't need to add ?hash to my files. It would be preferable to be able to disable appending a querystring to file names.
[ { "content": "import os\nimport re\nimport posixpath\n\nfrom compressor.cache import get_hashed_mtime, get_hashed_content\nfrom compressor.conf import settings\nfrom compressor.filters import FilterBase, FilterError\nfrom compressor.utils import staticfiles\n\nURL_PATTERN = re.compile(r'url\\(([^\\)]+)\\)')\nSR...
[ { "content": "import os\nimport re\nimport posixpath\n\nfrom compressor.cache import get_hashed_mtime, get_hashed_content\nfrom compressor.conf import settings\nfrom compressor.filters import FilterBase, FilterError\nfrom compressor.utils import staticfiles\n\nURL_PATTERN = re.compile(r'url\\(([^\\)]+)\\)')\nSR...
diff --git a/compressor/filters/css_default.py b/compressor/filters/css_default.py index 1727beb76..2e28cddb9 100644 --- a/compressor/filters/css_default.py +++ b/compressor/filters/css_default.py @@ -70,6 +70,8 @@ def add_suffix(self, url): suffix = get_hashed_mtime(filename) elif setting...
bokeh__bokeh-10165
custom latex examples do not run Cannot get either example under `custom` to function with 2.1.0rc3 with a simple python call to the script. Both seem to compile things fine, but then report > Unhandled Promise Rejection: Error: Model 'latex_label.LatexLabel' does not exist. This could be due to a widget or a custom ...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/embed/bundle.py b/bokeh/embed/bundle.py index 075aa07dcfe..fd75368313a 100644 --- a/bokeh/embed/bundle.py +++ b/bokeh/embed/bundle.py @@ -183,7 +183,11 @@ def bundle_for_objs_and_resources(objs, resources): elif mode == "server": js_files.extend([ bundle.server_url for bundle in...
pulp__pulpcore-2385
Duplicate Key Exception Raised during Sync related to duplicate RemoteArtifact objects **Version** pulpcore 3.18 at 3e5b68377088616c9ec55884f614b00c4a5dfc4e and pulp_container at d801f93ee4f50b08bd9e8c699be668e2ed5732c1 **Describe the bug** Sync with pulp_container until you receive the duplicate RemoteArtifact ex...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom gettext import gettext as _\nimport logging\n\nfrom asgiref.sync import sync_to_async\nfrom django.db.models import Prefetch, prefetch_related_objects, Q\n\nfrom pulpcore.plugin.exceptions import UnsupportedDigestValidationError\nfrom pulpc...
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom gettext import gettext as _\nimport logging\n\nfrom asgiref.sync import sync_to_async\nfrom django.db.models import Prefetch, prefetch_related_objects, Q\n\nfrom pulpcore.plugin.exceptions import UnsupportedDigestValidationError\nfrom pulpc...
diff --git a/CHANGES/2381.bugfix b/CHANGES/2381.bugfix new file mode 100644 index 0000000000..c0f06ddc14 --- /dev/null +++ b/CHANGES/2381.bugfix @@ -0,0 +1,2 @@ +Fixes duplicate key error ``Key (content_artifact_id, remote_id)`` when creating ``RemoteArtifacts`` +during syncs in pulp_container and possibly other plugin...
localstack__localstack-2559
DynamoDB streams describe-streams returns ResourceNotFoundException <!-- Love localstack? Please consider supporting our collective: 👉 https://opencollective.com/localstack/donate --> # Type of request: This is a ... [x] bug report [ ] feature request # Detailed description DynamoDB streams can be liste...
[ { "content": "import re\nimport os\nimport sys\nimport json\nimport logging\nfrom requests.models import Response\nfrom localstack import config\nfrom localstack.constants import HEADER_LOCALSTACK_TARGET, HEADER_LOCALSTACK_EDGE_URL, LOCALSTACK_ROOT_FOLDER\nfrom localstack.utils.common import run, is_root, TMP_T...
[ { "content": "import re\nimport os\nimport sys\nimport json\nimport logging\nfrom requests.models import Response\nfrom localstack import config\nfrom localstack.constants import HEADER_LOCALSTACK_TARGET, HEADER_LOCALSTACK_EDGE_URL, LOCALSTACK_ROOT_FOLDER\nfrom localstack.utils.common import run, is_root, TMP_T...
diff --git a/localstack/services/edge.py b/localstack/services/edge.py index 45b86c5293a0a..27ec3b1632956 100644 --- a/localstack/services/edge.py +++ b/localstack/services/edge.py @@ -105,7 +105,8 @@ def get_api_from_headers(headers, path=None): elif '.execute-api.' in host: result = 'apigateway', config...
saleor__saleor-11825
Bug: Unable to update Warehouse address ### What are you trying to achieve? I'm trying to update the warehouse update, with the country set to "UK", according to addressValidationRules query, the required fields are ``` streetAddress1", "city", "postalCode" ``` ### Steps to reproduce the problem 1. In shipping...
[ { "content": "from phonenumbers.phonenumberutil import country_code_for_region\n\nfrom .i18n import AddressMetaForm, get_address_form_class\n\n\ndef get_address_form(\n data, country_code, initial=None, instance=None, enable_normalization=True, **kwargs\n):\n country_form = AddressMetaForm(data, initial=i...
[ { "content": "from phonenumbers.phonenumberutil import country_code_for_region\n\nfrom .i18n import AddressMetaForm, get_address_form_class\n\n\ndef get_address_form(\n data, country_code, initial=None, instance=None, enable_normalization=True, **kwargs\n):\n country_form = AddressMetaForm(data, initial=i...
diff --git a/saleor/account/forms.py b/saleor/account/forms.py index 8c409c4cd30..ecb7706157b 100644 --- a/saleor/account/forms.py +++ b/saleor/account/forms.py @@ -14,11 +14,9 @@ def get_address_form( initial = {} if country_code: initial["phone"] = "+{}".format(country_code_for_region(country_c...
pyro-ppl__pyro-733
another error in ss_vae_M2.py As running ss_vae_M2.py in the latest pyro and latest pytorch, I have another error if `--aux-loss` is on: ``` Traceback (most recent call last): File "/home/jbaik/.pyenv/versions/3.6.4/lib/python3.6/site-packages/pyro_ppl-0.1.2-py3.6.egg/pyro/poutine/trace.py", line 81, in log_pdf ...
[ { "content": "\nimport torch\nimport pyro\nfrom torch.autograd import Variable\nimport pyro.distributions as dist\nfrom utils.mnist_cached import MNISTCached, setup_data_loaders\nfrom pyro.infer import SVI\nfrom pyro.optim import Adam\nfrom pyro.nn import ClippedSoftmax, ClippedSigmoid\nfrom utils.custom_mlp im...
[ { "content": "\nimport torch\nimport pyro\nfrom torch.autograd import Variable\nimport pyro.distributions as dist\nfrom utils.mnist_cached import MNISTCached, setup_data_loaders\nfrom pyro.infer import SVI\nfrom pyro.optim import Adam\nfrom pyro.nn import ClippedSoftmax, ClippedSigmoid\nfrom utils.custom_mlp im...
diff --git a/examples/ss_vae_M2.py b/examples/ss_vae_M2.py index e00080dd42..9fdcc7aa90 100644 --- a/examples/ss_vae_M2.py +++ b/examples/ss_vae_M2.py @@ -188,11 +188,8 @@ def model_classify(self, xs, ys=None): # similar to the NIPS 14 paper (Kingma et al). if ys is not None: ...
ocadotechnology__codeforlife-portal-439
Typo in introduction to coding teaching materials page https://staging-dot-decent-digit-629.appspot.com/redesign/teach/materials/introduction_to_coding "This document shows how the progrssion through rapid router levels cover each stage of the computing curriculum for key stages one and two."=> should be progression...
[ { "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/pdfs.py b/portal/views/teacher/pdfs.py index 93ae537cdc..be8da91e63 100644 --- a/portal/views/teacher/pdfs.py +++ b/portal/views/teacher/pdfs.py @@ -39,7 +39,7 @@ # .........User Guide........# "introduction_to_coding": { "title": "Introduction to Coding", - "...
python__mypy-1559
Interaction between NamedTuple and @property ``` Base = NamedTuple('Base', [('i', int), ('f', float)]) class Derived(Base): @property def inverse(self): # type: () -> Derived return Derived(-self.i, -self.f) x = Derived(1, 1.5) i = x.inverse.i # error: Invalid method type ``` This error does...
[ { "content": "\"\"\"Type checking of attribute access\"\"\"\n\nfrom typing import cast, Callable, List, Optional\n\nfrom mypy.types import (\n Type, Instance, AnyType, TupleType, CallableType, FunctionLike, TypeVarDef,\n Overloaded, TypeVarType, TypeTranslator, UnionType, PartialType, DeletedType, NoneTyp...
[ { "content": "\"\"\"Type checking of attribute access\"\"\"\n\nfrom typing import cast, Callable, List, Optional\n\nfrom mypy.types import (\n Type, Instance, AnyType, TupleType, CallableType, FunctionLike, TypeVarDef,\n Overloaded, TypeVarType, TypeTranslator, UnionType, PartialType, DeletedType, NoneTyp...
diff --git a/mypy/checkmember.py b/mypy/checkmember.py index 0282c7fad46b..f6019e3a6721 100644 --- a/mypy/checkmember.py +++ b/mypy/checkmember.py @@ -237,6 +237,10 @@ def check_method_type(functype: FunctionLike, itype: Instance, is_classmethod: b elif not is_classmethod: # Check that self argume...
pytorch__vision-6929
PyTorch 1.13 release breaks torchvision 0.14.0 - bad python import from maxvit ### 🐛 Describe the bug Bad import in TorchVision > Models > maxvit.py ```python from torchvision import models ``` ``` File "py3.7\lib\site-packages\torchvision\__init__.py", line 5, in <module> from torchvision import data...
[ { "content": "import math\nfrom functools import partial\nfrom typing import Any, Callable, List, Optional, OrderedDict, Sequence, Tuple\n\nimport numpy as np\nimport torch\nimport torch.nn.functional as F\nfrom torch import nn, Tensor\nfrom torchvision.models._api import register_model, Weights, WeightsEnum\nf...
[ { "content": "import math\nfrom collections import OrderedDict\nfrom functools import partial\nfrom typing import Any, Callable, List, Optional, Sequence, Tuple\n\nimport numpy as np\nimport torch\nimport torch.nn.functional as F\nfrom torch import nn, Tensor\nfrom torchvision.models._api import register_model,...
diff --git a/torchvision/models/maxvit.py b/torchvision/models/maxvit.py index 96c39513278..d32fc5bb586 100644 --- a/torchvision/models/maxvit.py +++ b/torchvision/models/maxvit.py @@ -1,6 +1,7 @@ import math +from collections import OrderedDict from functools import partial -from typing import Any, Callable, List, O...
vispy__vispy-1377
SceneCanvas central_widget display area is wrong (PyQt5 & SDL2) Hi, I tried this code, but plot area is wrong because SceneCanvas central_widget is not placed at correct area. https://github.com/vispy/vispy/issues/1189#issuecomment-198597473 I think the bug is because of PyQt5/SDL2, but I'm not familiar with Qt....
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\n\"\"\"\nBase code for the Qt backends. Note that this is *not* (anymore) a\nbackend by itself! One has to explicitly use either PySide...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\n\"\"\"\nBase code for the Qt backends. Note that this is *not* (anymore) a\nbackend by itself! One has to explicitly use either PySide...
diff --git a/vispy/app/backends/_qt.py b/vispy/app/backends/_qt.py index 1d6d29d634..472a102d54 100644 --- a/vispy/app/backends/_qt.py +++ b/vispy/app/backends/_qt.py @@ -287,7 +287,12 @@ def __init__(self, *args, **kwargs): # Qt supports OS double-click events, so we set this here to # avoid double e...
Lightning-AI__pytorch-lightning-837
advanced profiler description fails for python 3.6 ## 🐛 Bug Python 3.6 doesn't have the `pstats.SortKey.CUMULATIVE` enum so the profiler description breaks. ### To Reproduce Steps to reproduce the behavior: Use Python 3.6, pass in the AdvancedProfiler, get report at end of a training run. ``` profiler...
[ { "content": "from contextlib import contextmanager\nfrom collections import defaultdict\nimport time\nimport numpy as np\nimport cProfile\nimport pstats\nimport io\nfrom abc import ABC, abstractmethod\nimport logging\n\nlogger = logging.getLogger(__name__)\n\n\nclass BaseProfiler(ABC):\n \"\"\"\n If you ...
[ { "content": "from contextlib import contextmanager\nfrom collections import defaultdict\nimport time\nimport numpy as np\nimport cProfile\nimport pstats\nimport io\nfrom abc import ABC, abstractmethod\nimport logging\n\nlogger = logging.getLogger(__name__)\n\n\nclass BaseProfiler(ABC):\n \"\"\"\n If you ...
diff --git a/pytorch_lightning/profiler/profiler.py b/pytorch_lightning/profiler/profiler.py index 32f220897a9dc..ffecba5dff34b 100644 --- a/pytorch_lightning/profiler/profiler.py +++ b/pytorch_lightning/profiler/profiler.py @@ -163,8 +163,7 @@ def describe(self): self.recorded_stats = {} for action_n...
Kinto__kinto-769
kinto.id_generator option doesn't work #### Issue As per the [docs](http://kinto.readthedocs.io/en/latest/configuration/settings.html?highlight=id_generator#feature-settings), we should be able to define a `kinto.id_generator` options that will work for records, but this is not the case in the current (3.4.0.dev0) imp...
[ { "content": "import pkg_resources\nimport logging\n\nimport kinto.core\nfrom pyramid.config import Configurator\nfrom pyramid.settings import asbool\nfrom pyramid.security import Authenticated\n\nfrom kinto.authorization import RouteFactory\n\n\n# Module version, as defined in PEP-0396.\n__version__ = pkg_reso...
[ { "content": "import pkg_resources\nimport logging\n\nimport kinto.core\nfrom pyramid.config import Configurator\nfrom pyramid.settings import asbool\nfrom pyramid.security import Authenticated\n\nfrom kinto.authorization import RouteFactory\n\n\n# Module version, as defined in PEP-0396.\n__version__ = pkg_reso...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 65eebc594..d6d4e7ae5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -9,6 +9,8 @@ This document describes changes between each past release. **Internal changes** - Fix documentation of errors codes (fixes #766) +- ``kinto.id_generator`` was removed from documentati...
feast-dev__feast-1940
feast alpha enable command messes up feature_store.yaml ## Expected Behavior Calling `feast alpha enable python_feature_server` should add ``` flags: alpha_features: true python_feature_server: true ``` to `feature_store.yaml`. ## Current Behavior Instead, it changes ``` project: sharing_sculpin r...
[ { "content": "import os\nfrom pathlib import Path\nfrom typing import Any\n\nimport yaml\nfrom pydantic import (\n BaseModel,\n StrictInt,\n StrictStr,\n ValidationError,\n root_validator,\n validator,\n)\nfrom pydantic.error_wrappers import ErrorWrapper\nfrom pydantic.typing import Dict, Opti...
[ { "content": "import os\nfrom pathlib import Path\nfrom typing import Any\n\nimport yaml\nfrom pydantic import (\n BaseModel,\n StrictInt,\n StrictStr,\n ValidationError,\n root_validator,\n validator,\n)\nfrom pydantic.error_wrappers import ErrorWrapper\nfrom pydantic.typing import Dict, Opti...
diff --git a/sdk/python/feast/repo_config.py b/sdk/python/feast/repo_config.py index 3274e3b9a63..9a04723201a 100644 --- a/sdk/python/feast/repo_config.py +++ b/sdk/python/feast/repo_config.py @@ -277,14 +277,7 @@ def write_to_path(self, repo_path: Path): config_path = repo_path / "feature_store.yaml" ...
ansible__ansible-20247
systemd module: should not check initscript status when user=yes ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME systemd module ##### ANSIBLE VERSION ansible 2.2.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides ##### OS / ENVIRONMENT Debian Jessie ...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# (c) 2016, Brian Coca <bcoca@ansible.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, e...
[ { "content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# (c) 2016, Brian Coca <bcoca@ansible.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, e...
diff --git a/lib/ansible/modules/system/systemd.py b/lib/ansible/modules/system/systemd.py index e6b3d49c07ade1..338515c0f46599 100644 --- a/lib/ansible/modules/system/systemd.py +++ b/lib/ansible/modules/system/systemd.py @@ -359,8 +359,11 @@ def main(): if rc == 0: enabled = True elif r...
archlinux__archinstall-2114
loop device fetching results in permission error @codefiles When archinstall was previously run in non root mode it would be gracefully handled with an error. loop devices are non eagerly loaded on startup, however, pyparted seems to require root for that ``` File "/home/dan/Git/archinstall/archinstall/__init__...
[ { "content": "from __future__ import annotations\n\nimport json\nimport os\nimport time\nimport logging\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, TYPE_CHECKING\n\nfrom parted import ( # type: ignore\n\tDisk, Geometry, FileSystem,\n\tPartitionException, DiskLabelException,\n\tgetD...
[ { "content": "from __future__ import annotations\n\nimport json\nimport os\nimport time\nimport logging\nfrom pathlib import Path\nfrom typing import List, Dict, Any, Optional, TYPE_CHECKING\n\nfrom parted import ( # type: ignore\n\tDisk, Geometry, FileSystem,\n\tPartitionException, DiskLabelException,\n\tgetD...
diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py index 9646103f84..9b6beada91 100644 --- a/archinstall/lib/disk/device_handler.py +++ b/archinstall/lib/disk/device_handler.py @@ -49,12 +49,11 @@ def load_devices(self): try: loop_devices = SysCommand(['losetup', '-a']...
bokeh__bokeh-8840
"WARNING:bokeh.resources:root_url should end with a /, adding one" spam # READ AND FOLLOW THESE INSTRUCTIONS CAREFULLY *ISSUES THAT DO NOT CONTAIN NECESSARY INFORMATION MAY BE CLOSED, IMMEDIATELY* The issue tracker is NOT the place for general support. For questions and technical assistance, come ask the [Bokeh ...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/resources.py b/bokeh/resources.py index 8cb4ef9c9dd..02644274b29 100644 --- a/bokeh/resources.py +++ b/bokeh/resources.py @@ -86,7 +86,7 @@ def __init__(self, mode='inline', version=None, root_dir=None, self.path_versioner = path_versioner; del path_versioner if root_url...
pyinstaller__pyinstaller-6653
Pyinstaller leaks key when using with GitHub action secrets When using with GitHub action secrets, pyinstaller prints the key parameter into the console, a solution to this would be an additional argument to suppress the using key output. In this case the test key is ``` [=?)K]P=`D!B,T} ``` https://github.com/ill...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2021, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/building/build_main.py b/PyInstaller/building/build_main.py index baf037163c..5799bded24 100644 --- a/PyInstaller/building/build_main.py +++ b/PyInstaller/building/build_main.py @@ -286,7 +286,7 @@ def __init__( self.custom_runtime_hooks = runtime_hooks or [] if cipher: - ...
fossasia__open-event-server-5559
Allow GET access to ticket attendees for an order, for non logged in users parent issue #5546
[ { "content": "from datetime import datetime\n\nfrom flask import Blueprint, request, jsonify, abort, make_response\nfrom flask_jwt import current_identity, jwt_required\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom flask_rest_jsonapi.exceptions import ObjectNotFound\nf...
[ { "content": "from datetime import datetime\n\nfrom flask import Blueprint, request, jsonify, abort, make_response\nfrom flask_jwt import current_identity, jwt_required\nfrom flask_rest_jsonapi import ResourceDetail, ResourceList, ResourceRelationship\nfrom flask_rest_jsonapi.exceptions import ObjectNotFound\nf...
diff --git a/app/api/attendees.py b/app/api/attendees.py index 774137ca4f..4982748c74 100644 --- a/app/api/attendees.py +++ b/app/api/attendees.py @@ -112,8 +112,8 @@ def query(self, view_kwargs): if view_kwargs.get('ticket_id'): ticket = safe_query(self, Ticket, 'id', view_kwargs['ticket_id'], ...
bids-standard__pybids-217
variables: BIDSVariableCollection.to_df loses n/as This relates to: https://github.com/poldracklab/fitlins/issues/56 If there are `n/a`s in a `Sparse` variable, and `get_design_collection` is called with `force=True`, missing values are ommited (even if `Analysis.setup` was called with `drop_na=False`, and the varia...
[ { "content": "''' Classes and functions related to the management of sets of BIDSVariables.\n\nWhy 'kollekshuns'? Because 'collections' would conflict with the standard lib\nmodule of the same name on Python 2. We could go with something sensible but\nverbose like 'variable_collections', but that would make far...
[ { "content": "''' Classes and functions related to the management of sets of BIDSVariables.\n\nWhy 'kollekshuns'? Because 'collections' would conflict with the standard lib\nmodule of the same name on Python 2. We could go with something sensible but\nverbose like 'variable_collections', but that would make far...
diff --git a/bids/variables/kollekshuns.py b/bids/variables/kollekshuns.py index fdaf8f922..ab76c83d9 100644 --- a/bids/variables/kollekshuns.py +++ b/bids/variables/kollekshuns.py @@ -113,9 +113,11 @@ def to_df(self, variables=None, format='wide', fillna=np.nan, **kwargs): return df.reset_index(drop=True)...
pytorch__text-1067
pip install torchtext==0.7.0 installs incompatible PyTorch 1.7.0 ## 🐛 Bug **Describe the bug** Recently, after I do `pip install torchtext==0.7.0`, import torchtext would cause segmentation fault. I found that degrading pytorch to 1.6.0 fixes this issue. **To Reproduce** Steps to reproduce the behavior: 1. `pi...
[ { "content": "#!/usr/bin/env python\nimport io\nimport os\nimport shutil\nimport subprocess\nfrom pathlib import Path\nimport distutils.command.clean\nfrom setuptools import setup, find_packages\n\nfrom build_tools import setup_helpers\n\nROOT_DIR = Path(__file__).parent.resolve()\n\n\ndef read(*names, **kwargs...
[ { "content": "#!/usr/bin/env python\nimport io\nimport os\nimport shutil\nimport subprocess\nfrom pathlib import Path\nimport distutils.command.clean\nfrom setuptools import setup, find_packages\n\nfrom build_tools import setup_helpers\n\nROOT_DIR = Path(__file__).parent.resolve()\n\n\ndef read(*names, **kwargs...
diff --git a/setup.py b/setup.py index 0abad6a625..7c71a0ddca 100644 --- a/setup.py +++ b/setup.py @@ -49,6 +49,12 @@ def _export_version(version, sha): print('-- Building version ' + VERSION) +pytorch_package_version = os.getenv('PYTORCH_VERSION') + +pytorch_package_dep = 'torch' +if pytorch_package_version is no...
ourownstory__neural_prophet-1411
Plotting warning for global model is wrong When fitting a global model and calling `m.plot_parameters` the following warning makes no sense as the parameters are all the same for every ID. <img width="1113" alt="image" src="https://github.com/ourownstory/neural_prophet/assets/42536262/29d34879-50d2-43f3-a906-97d70f...
[ { "content": "import logging\nimport warnings\nfrom collections import OrderedDict\nfrom typing import Optional\n\nimport numpy as np\nimport torch\n\nfrom neuralprophet import time_dataset, utils_torch\n\nlog = logging.getLogger(\"NP.plotting\")\n\n\ndef log_warning_deprecation_plotly(plotting_backend):\n i...
[ { "content": "import logging\nimport warnings\nfrom collections import OrderedDict\nfrom typing import Optional\n\nimport numpy as np\nimport torch\n\nfrom neuralprophet import time_dataset, utils_torch\n\nlog = logging.getLogger(\"NP.plotting\")\n\n\ndef log_warning_deprecation_plotly(plotting_backend):\n i...
diff --git a/neuralprophet/plot_utils.py b/neuralprophet/plot_utils.py index bdebd023c..6ad7d10e8 100644 --- a/neuralprophet/plot_utils.py +++ b/neuralprophet/plot_utils.py @@ -304,10 +304,6 @@ def get_valid_configuration( # move to utils ) else: d...
Textualize__rich-3067
[BUG] Tilde not included in link regex The following doesn't highlight pas the `~` ``` >>> from rich import print >>> print("http://127.0.0.1/~foo") http://127.0.0.1/~foo ```
[ { "content": "import re\nfrom abc import ABC, abstractmethod\nfrom typing import List, Union\n\nfrom .text import Span, Text\n\n\ndef _combine_regex(*regexes: str) -> str:\n \"\"\"Combine a number of regexes in to a single regex.\n\n Returns:\n str: New regex with all regexes ORed together.\n \"...
[ { "content": "import re\nfrom abc import ABC, abstractmethod\nfrom typing import List, Union\n\nfrom .text import Span, Text\n\n\ndef _combine_regex(*regexes: str) -> str:\n \"\"\"Combine a number of regexes in to a single regex.\n\n Returns:\n str: New regex with all regexes ORed together.\n \"...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 61d5cc8d7..eb07a4107 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic ...
facebookresearch__hydra-930
pdb can't be used if hydra main decorator used # 🚀 Feature Request: PDB support <!-- A clear and concise description of the feature you are requesting --> ## Motivation I got used to debug pipelines with `pdb`, but it looks to be impossible with hydra decorator ### Example Consider a script ``` # test.p...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport argparse\nimport copy\nimport inspect\nimport logging.config\nimport os\nimport sys\nimport warnings\nfrom dataclasses import dataclass\nfrom os.path import dirname, join, normpath, realpath\nfrom traceback import print...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport argparse\nimport copy\nimport inspect\nimport logging.config\nimport os\nimport sys\nimport warnings\nfrom dataclasses import dataclass\nfrom os.path import dirname, join, normpath, realpath\nfrom traceback import print...
diff --git a/hydra/_internal/utils.py b/hydra/_internal/utils.py index 24088400276..fc8e7d1d64c 100644 --- a/hydra/_internal/utils.py +++ b/hydra/_internal/utils.py @@ -198,12 +198,16 @@ def create_config_search_path(search_path_dir: Optional[str]) -> ConfigSearchPat return search_path +def _is_env_set(name: s...
aws-cloudformation__cfn-lint-2236
Support for the docker lambda runtime cfn-lint 0.43.0 This is a feature request for supporting docker lambda sam templates. Please provide as much information as possible: * SAM templates produced by aws-sam-cli with the docker deploy option don't pass validation Running on the template.yaml in the base direc...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport os\nimport logging\nimport six\nimport samtranslator\nfrom samtranslator.parser import parser\nfrom samtranslator.translator.translator import Translator\nfrom samtranslator.p...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport os\nimport logging\nimport six\nimport samtranslator\nfrom samtranslator.parser import parser\nfrom samtranslator.translator.translator import Translator\nfrom samtranslator.p...
diff --git a/src/cfnlint/transform.py b/src/cfnlint/transform.py index f57f18f5dc..217fcf998c 100644 --- a/src/cfnlint/transform.py +++ b/src/cfnlint/transform.py @@ -76,7 +76,10 @@ def _replace_local_codeuri(self): if resource_type == 'AWS::Serverless::Function': - Transform._update_to_...
encode__django-rest-framework-4638
Unhandled exception traceback hides exception original string on python 2.7 After commit e3686aca93a8224280b38b7669342bcadb24176e (3.5.1 version) python 2.7 traceback for unhandled exceptions no longer contain line where exception occured, because we're reraising exception explicitly. ``` File "/Users/coagulant/.env...
[ { "content": "\"\"\"\nProvides an APIView class that is the base of all views in REST framework.\n\"\"\"\nfrom __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import models\nfrom django.http import Http404\nfrom django.h...
[ { "content": "\"\"\"\nProvides an APIView class that is the base of all views in REST framework.\n\"\"\"\nfrom __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import models\nfrom django.http import Http404\nfrom django.h...
diff --git a/rest_framework/views.py b/rest_framework/views.py index 07575fba73..a8710c7a0f 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -445,7 +445,7 @@ def raise_uncaught_exception(self, exc): renderer_format = getattr(request.accepted_renderer, 'format') use_plainte...
matrix-org__synapse-12177
RC versions of dependencies don't satisfy the run-time dependency checker; `Need Twisted>=18.9.0, but got Twisted==21.7.0rc3` (1.54.0rc1 suspected regression) When deploying `1.54.0rc1` to matrix.org and some personal homeservers that had an RC of Twisted installed, the dependency checker complained: `Need Twisted>=...
[ { "content": "# Copyright 2022 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ...
[ { "content": "# Copyright 2022 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# ...
diff --git a/changelog.d/12177.bugfix b/changelog.d/12177.bugfix new file mode 100644 index 000000000000..3f2852f345b9 --- /dev/null +++ b/changelog.d/12177.bugfix @@ -0,0 +1 @@ +Fix a bug introduced in 1.54.0rc1 which meant that Synapse would refuse to start if pre-release versions of dependencies were installed. \ No...
django-helpdesk__django-helpdesk-927
TicketCustomFieldValue Boolean (if not required) does not set in EditTicketForm **Describe the bug** When a Custom Field Value is created as Boolean and is Not Required the value never sets. If Required the value is only allowed to be set to true. django-helpdesk 0.3.0b3 Django 3.1.5 **To...
[ { "content": "\"\"\"\ndjango-helpdesk - A Django powered ticket tracker for small enterprise.\n\n(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.\n\nforms.py - Definitions of newforms-based forms for creating and maintaining\n tickets.\n\"\"\"\nimport logging\n\nfrom django.core...
[ { "content": "\"\"\"\ndjango-helpdesk - A Django powered ticket tracker for small enterprise.\n\n(c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details.\n\nforms.py - Definitions of newforms-based forms for creating and maintaining\n tickets.\n\"\"\"\nimport logging\n\nfrom django.core...
diff --git a/helpdesk/forms.py b/helpdesk/forms.py index d6779c699..92594fcaf 100644 --- a/helpdesk/forms.py +++ b/helpdesk/forms.py @@ -98,6 +98,9 @@ def __init__(self, *args, **kwargs): try: current_value = TicketCustomFieldValue.objects.get(ticket=self.instance, field=field) ...
secdev__scapy-2588
Sessions can crash Scapy Loading a Python3 session on a Python2 Scapy, will crash it. ``` ./run_scapy -3 -s crash.session ./run_scapy -2 -s crash.session [..] Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) Fi...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nMain module for interactive startup.\n\"\"\"\n\nfrom __future__ import absolute_import\nfro...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nMain module for interactive startup.\n\"\"\"\n\nfrom __future__ import absolute_import\nfro...
diff --git a/scapy/main.py b/scapy/main.py index 30bc53669e2..803079644f6 100644 --- a/scapy/main.py +++ b/scapy/main.py @@ -418,6 +418,9 @@ def init_session(session_name, # type: Optional[Union[str, None]] except IOError: SESSION = six.moves.cPickle.load(open(session_name, "rb"))...
carpentries__amy-1031
Strange behavior when filtering events by tag 1. Go to https://amy.software-carpentry.org/workshops/persons 2. Select 'TTT' under "Taught at workshops of type'. 3. Submit. A _lot_ of people come up (500 or more), almost none of whom have taught at TTT events.
[ { "content": "import re\n\nimport django_filters\nfrom django.db.models import Q\nfrom django.forms import widgets\nfrom django_countries import Countries\n\nfrom workshops.forms import bootstrap_helper_filter\nfrom workshops.models import (\n Event,\n Organization,\n Person,\n Airport,\n EventRe...
[ { "content": "import re\n\nimport django_filters\nfrom django.db.models import Q\nfrom django.forms import widgets\nfrom django_countries import Countries\n\nfrom workshops.forms import bootstrap_helper_filter\nfrom workshops.models import (\n Event,\n Organization,\n Person,\n Airport,\n EventRe...
diff --git a/workshops/filters.py b/workshops/filters.py index b752819e2..44aa60d7b 100644 --- a/workshops/filters.py +++ b/workshops/filters.py @@ -187,11 +187,12 @@ def filter_taught_workshops(queryset, values): support `action` parameter as supposed, ie. with `action='filter_taught_workshops'` it doesn't c...
cisagov__manage.get.gov-1872
Optimize Gunicorn gthread setup ### Issue description We recently switched to using gthread with only one worker as part of our gunicorn setup (see run.sh). However, the documentation references that there should be more than one worker, and in our case ideally 3 workers. ### Acceptance criteria - [ ] update the gun...
[ { "content": "\"\"\"\nDjango settings for .gov registrar project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/4.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/4.0/ref/settings/\n\nIF you'd like to see all of these set...
[ { "content": "\"\"\"\nDjango settings for .gov registrar project.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/4.0/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/4.0/ref/settings/\n\nIF you'd like to see all of these set...
diff --git a/.github/workflows/createcachetable.yaml b/.github/workflows/createcachetable.yaml new file mode 100644 index 000000000..8fa4d76c8 --- /dev/null +++ b/.github/workflows/createcachetable.yaml @@ -0,0 +1,46 @@ +# This workflow can be run from the CLI for any environment +# gh workflow run createcachetable...
cupy__cupy-1138
cupy.random.permutation() overwrites its argument. `cupy.random.permutation()` overwrites its argument. This is incompatible with `numpy.random.permutation`.
[ { "content": "from cupy.random import generator\nimport six\n\n\ndef shuffle(a):\n \"\"\"Shuffles an array.\n\n Args:\n a (cupy.ndarray): The array to be shuffled.\n\n .. seealso:: :func:`numpy.random.shuffle`\n\n \"\"\"\n rs = generator.get_random_state()\n return rs.shuffle(a)\n\n\nde...
[ { "content": "from cupy.random import generator\nimport six\n\n\ndef shuffle(a):\n \"\"\"Shuffles an array.\n\n Args:\n a (cupy.ndarray): The array to be shuffled.\n\n .. seealso:: :func:`numpy.random.shuffle`\n\n \"\"\"\n rs = generator.get_random_state()\n return rs.shuffle(a)\n\n\nde...
diff --git a/cupy/random/permutations.py b/cupy/random/permutations.py index ac9bae42e78..a95f6e0e1d5 100644 --- a/cupy/random/permutations.py +++ b/cupy/random/permutations.py @@ -16,9 +16,20 @@ def shuffle(a): def permutation(a): - """Returns a permuted range or shuffles an array.""" + """Returns a permute...
saleor__saleor-3535
Attribute filters are not available in subcategories ### What I'm trying to achieve I'm trying to filter products in subcategories by attributes of this products ### Steps to reproduce the problem 1. Create category and then create 2 or more subcategory 2. Add product to last subcategory 3. Select category, ...
[ { "content": "from collections import OrderedDict\n\nfrom django.db.models import Q\nfrom django.forms import CheckboxSelectMultiple\nfrom django.utils.translation import pgettext_lazy\nfrom django_filters import MultipleChoiceFilter, OrderingFilter, RangeFilter\n\nfrom ..core.filters import SortedFilterSet\nfr...
[ { "content": "from collections import OrderedDict\n\nfrom django.db.models import Q\nfrom django.forms import CheckboxSelectMultiple\nfrom django.utils.translation import pgettext_lazy\nfrom django_filters import MultipleChoiceFilter, OrderingFilter, RangeFilter\n\nfrom ..core.filters import SortedFilterSet\nfr...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0184676ee90..b8973fa97c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,3 +42,4 @@ All notable, unreleased changes to this project will be documented in this file. - Fixed hard-coded site name in order PDFs - #3526 by @NyanKiyoshi - Extract enums to separate files -...
googleapis__python-spanner-django-66
django: `AttributeError: 'tuple' object has no attribute 'items'` on trying to login When I go to login, I get ```shell [19/Nov/2019 04:20:14] "GET /admin/login/?next=/admin/ HTTP/1.1" 200 1819 Internal Server Error: /admin/login/ Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Ve...
[ { "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# https://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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/spanner/dbapi/cursor.py b/spanner/dbapi/cursor.py index c85b0c4d38..b752a14dfb 100644 --- a/spanner/dbapi/cursor.py +++ b/spanner/dbapi/cursor.py @@ -107,8 +107,9 @@ def execute(self, sql, args=None): except grpc_exceptions.InternalServerError as e: raise OperationalError(e.details if...