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
⌀
huggingface__huggingface_hub-1218
AttributeError: 'NoneType' object has no attribute 'split' ### Describe the bug When I try to log into my account with the token via `huggingface-cli login`, I get this error: ``` Exception in thread Thread-1 (_readerthread): Traceback (most recent call last): File "C:\Users\mikwee\AppData\Local\Programs\Pytho...
[ { "content": "#!/usr/bin/env python\n# coding=utf-8\n# Copyright 2021 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# h...
[ { "content": "#!/usr/bin/env python\n# coding=utf-8\n# Copyright 2021 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# h...
diff --git a/src/huggingface_hub/utils/_subprocess.py b/src/huggingface_hub/utils/_subprocess.py index e3b95d2800..c9de3e32f0 100644 --- a/src/huggingface_hub/utils/_subprocess.py +++ b/src/huggingface_hub/utils/_subprocess.py @@ -64,6 +64,7 @@ def run_subprocess( stdout=subprocess.PIPE, check=check, ...
vyperlang__vyper-1720
Code that ends in a comment (with no newline) cannot be compiled This was previously [reported](https://github.com/ethereum/vyper/issues/1161) for Vyper, but it’s actually [a Python bug](https://bugs.python.org/issue35107): ```python @public def __init__(): pass # BUG (no newline) ```
[ { "content": "from collections import (\n OrderedDict,\n deque,\n)\nfrom typing import (\n Any,\n Callable,\n Sequence,\n Union,\n)\nimport warnings\n\nimport asttokens\n\nfrom vyper import (\n compile_lll,\n optimizer,\n)\nfrom vyper.ast_utils import (\n ast_to_dict,\n)\nfrom vyper.o...
[ { "content": "from collections import (\n OrderedDict,\n deque,\n)\nfrom typing import (\n Any,\n Callable,\n Sequence,\n Union,\n)\nimport warnings\n\nimport asttokens\n\nfrom vyper import (\n compile_lll,\n optimizer,\n)\nfrom vyper.ast_utils import (\n ast_to_dict,\n)\nfrom vyper.o...
diff --git a/vyper/compiler.py b/vyper/compiler.py index e7f851101a..4b518d9e35 100644 --- a/vyper/compiler.py +++ b/vyper/compiler.py @@ -321,7 +321,9 @@ def compile_codes(contract_sources: ContractCodes, interfaces = interfaces[contract_name] out.setdefault(contract_name, {}) ...
e-valuation__EvaP-425
Creating a duplicate user results in Server Error When creating a user with a username that already exists, the `ValidationError` for the form seems to be not correctly raised because the server returns an Internal Server Error caused by this: ``` IntegrityError: null value in column "username" violates not-null const...
[ { "content": "from django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.contrib.auth.models import User\nfrom django.forms.fields import FileField\nfrom django.forms.models import BaseInlineFormSet\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.utils.text i...
[ { "content": "from django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.contrib.auth.models import User\nfrom django.forms.fields import FileField\nfrom django.forms.models import BaseInlineFormSet\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.utils.text i...
diff --git a/evap/fsr/forms.py b/evap/fsr/forms.py index 532af6d1d7..328f6ab442 100644 --- a/evap/fsr/forms.py +++ b/evap/fsr/forms.py @@ -385,6 +385,9 @@ def clean_username(self): raise forms.ValidationError(_(u"A user with the username '%s' already exists") % self.cleaned_data.get('username')) def _po...
vllm-project__vllm-1004
Code llama output gibberish code. Test on this [https://huggingface.co/docs/transformers/main/model_doc/code_llama](https://huggingface.co/docs/transformers/main/model_doc/code_llama) Env: 1. model: `Code Llama 7b Instruct` 2. `vLLM` `main` branch 0.1.4 on [4b6f069](https://github.com/vllm-project/vllm/commit/4b6...
[ { "content": "\"\"\"Multi-head attention.\"\"\"\nfrom typing import List, Optional\n\nimport torch\nimport torch.nn as nn\nfrom xformers import ops as xops\nfrom xformers.ops.fmha.attn_bias import (BlockDiagonalCausalMask,\n LowerTriangularMaskWithTensorBias)\n\nfrom vllm...
[ { "content": "\"\"\"Multi-head attention.\"\"\"\nfrom typing import List, Optional\n\nimport torch\nimport torch.nn as nn\nfrom xformers import ops as xops\nfrom xformers.ops.fmha.attn_bias import (BlockDiagonalCausalMask,\n LowerTriangularMaskWithTensorBias)\n\nfrom vllm...
diff --git a/tests/kernels/test_pos_encoding.py b/tests/kernels/test_pos_encoding.py index 1e591295e1c..0d255900d4c 100644 --- a/tests/kernels/test_pos_encoding.py +++ b/tests/kernels/test_pos_encoding.py @@ -133,9 +133,10 @@ def test_rotary_embedding( device="cuda") # Create the rotary em...
hpcaitech__ColossalAI-5738
[tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests
[ { "content": "import functools\nfrom time import time\nfrom typing import Dict, Iterable, List, Optional, Tuple\n\nimport torch\nimport torch.distributed as dist\n\nfrom .chunk import Chunk, ChunkManager\nfrom .memory_tracer import ChunkMemStatsCollector, MemStats\nfrom .placement_policy import PlacementPolicy,...
[ { "content": "import functools\nfrom time import time\nfrom typing import Dict, Iterable, List, Optional, Tuple\n\nimport torch\nimport torch.distributed as dist\n\nfrom .chunk import Chunk, ChunkManager\nfrom .memory_tracer import ChunkMemStatsCollector, MemStats\nfrom .placement_policy import PlacementPolicy,...
diff --git a/colossalai/zero/gemini/gemini_mgr.py b/colossalai/zero/gemini/gemini_mgr.py index 5b309c7a1998..0a8e0ae4a018 100644 --- a/colossalai/zero/gemini/gemini_mgr.py +++ b/colossalai/zero/gemini/gemini_mgr.py @@ -42,7 +42,9 @@ def __init__( self._mem_stats_collector = ( ChunkMemStatsCollecto...
ESMCI__cime-577
Report baseline fails differently if just because baseline directory DNE (both Overall and detailed) In cime4 this was called a "BFAIL" if the baseline directory didn't exist. I don't know that's the best name, but we need a way to easily figure out that the baseline comparison failed -- just because it didn't have a b...
[ { "content": "\"\"\"\nFunctions for actions pertaining to history files.\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\n\nimport logging, glob, os, shutil, re\nlogger = logging.getLogger(__name__)\n\ndef _iter_model_file_substrs(case):\n models = case.get_compset_components()\n models.append('cp...
[ { "content": "\"\"\"\nFunctions for actions pertaining to history files.\n\"\"\"\n\nfrom CIME.XML.standard_module_setup import *\nfrom CIME.test_status import TEST_NO_BASELINES_COMMENT\n\nimport logging, glob, os, shutil, re\nlogger = logging.getLogger(__name__)\n\ndef _iter_model_file_substrs(case):\n model...
diff --git a/scripts/Tools/cs_status b/scripts/Tools/cs_status index 864e7e4a392..877d1d0a9ff 100755 --- a/scripts/Tools/cs_status +++ b/scripts/Tools/cs_status @@ -47,7 +47,7 @@ def cs_status(test_paths, model): test_name = ts.get_name() summary = ts.get_overall_test_status() print "%s (Over...
tornadoweb__tornado-1821
TCP connection fails on systems without IPv6 support when connecting to a host that has an IPv6 address `getaddrinfo` will return IPv6 addresses when the system doesn't support it, and Tornado will then fail to connect to the IPv6 address with this error (I get [a report for my project here](https://github.com/lilydjwg...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2014 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unle...
[ { "content": "#!/usr/bin/env python\n#\n# Copyright 2014 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unle...
diff --git a/tornado/tcpclient.py b/tornado/tcpclient.py index f594d91b88..1114686079 100644 --- a/tornado/tcpclient.py +++ b/tornado/tcpclient.py @@ -177,7 +177,13 @@ def connect(self, host, port, af=socket.AF_UNSPEC, ssl_options=None, def _create_stream(self, max_buffer_size, af, addr): # Always connect...
davanstrien__flyswot-156
catch no files found before running prediction function
[ { "content": "\"\"\"Inference functionality\"\"\"\nimport csv\nimport mimetypes\nimport time\nfrom abc import ABC\nfrom abc import abstractmethod\nfrom dataclasses import asdict\nfrom dataclasses import dataclass\nfrom datetime import datetime\nfrom datetime import timedelta\nfrom pathlib import Path\nfrom typi...
[ { "content": "\"\"\"Inference functionality\"\"\"\nimport csv\nimport mimetypes\nimport time\nfrom abc import ABC\nfrom abc import abstractmethod\nfrom dataclasses import asdict\nfrom dataclasses import dataclass\nfrom datetime import datetime\nfrom datetime import timedelta\nfrom pathlib import Path\nfrom typi...
diff --git a/.flake8 b/.flake8 index 66df698a..8c6c7d9a 100644 --- a/.flake8 +++ b/.flake8 @@ -1,6 +1,6 @@ [flake8] select = B,B9,C,D,DAR,E,F,N,RST,S,W -ignore = E203,E501,RST201,RST203,RST301,W503,D415, D300, B008, S310, D403, DAR101 +ignore = E203,E501,RST201,RST203,RST301,W503,D415, D300, B008, S310, D403, DAR101,...
paperless-ngx__paperless-ngx-5187
[BUG] Unable to save doc link when target doc has value None ### Description If I want to save a document that contains a custom field with an unfilled document link, an error 500 occurs and a trace is thrown in the server log. ### Steps to reproduce - add a custom field with a document link - add a document ...
[ { "content": "import datetime\nimport math\nimport re\nimport zoneinfo\nfrom decimal import Decimal\n\nimport magic\nfrom celery import states\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.contrib.auth.models import User\nfrom django.contrib.contenttypes.models imp...
[ { "content": "import datetime\nimport math\nimport re\nimport zoneinfo\nfrom decimal import Decimal\n\nimport magic\nfrom celery import states\nfrom django.conf import settings\nfrom django.contrib.auth.models import Group\nfrom django.contrib.auth.models import User\nfrom django.contrib.contenttypes.models imp...
diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index 5e80379600a..c65d4d2ffc9 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -566,6 +566,9 @@ def reflect_doclinks( value_document_ids=[document.id], ), ...
opensearch-project__opensearch-build-499
Make plugin integtest.sh run against non-snapshot build The plugin integtest.sh picks up the opensearch version provided in build.gradle, which is 1.1.0-SNAPSHOT. Since the release candidates are non snapshot built artifacts, make this configurable in integ test job
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\n\nclass ScriptFinder:\n class ScriptNotFoundError(Exception):\n def __init__...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\n\nclass ScriptFinder:\n class ScriptNotFoundError(Exception):\n def __init__...
diff --git a/bundle-workflow/src/paths/script_finder.py b/bundle-workflow/src/paths/script_finder.py index be70eb83d5..1fccd56396 100644 --- a/bundle-workflow/src/paths/script_finder.py +++ b/bundle-workflow/src/paths/script_finder.py @@ -64,8 +64,9 @@ def find_build_script(cls, component_name, git_dir): @classmet...
mlflow__mlflow-10095
Set `openai.api_key` if `OPENAI_API_KEY` exists ### Summary The line that needs a fix: https://github.com/mlflow/mlflow/blob/a4db4ee826765f0365944f83124af8840c72f4d8/mlflow/openai/utils.py#L161 Just because `"OPENAI_API_KEY" in os.environ` is True doesn't mean `openai.api_key` is set. The following code curren...
[ { "content": "import json\nimport os\nimport time\nfrom contextlib import contextmanager\nfrom unittest import mock\n\nimport requests\n\nimport mlflow\n\nTEST_CONTENT = \"test\"\n\nTEST_SOURCE_DOCUMENTS = [\n {\n \"page_content\": \"We see the unity among leaders ...\",\n \"metadata\": {\"sour...
[ { "content": "import json\nimport os\nimport time\nfrom contextlib import contextmanager\nfrom unittest import mock\n\nimport requests\n\nimport mlflow\n\nTEST_CONTENT = \"test\"\n\nTEST_SOURCE_DOCUMENTS = [\n {\n \"page_content\": \"We see the unity among leaders ...\",\n \"metadata\": {\"sour...
diff --git a/mlflow/openai/utils.py b/mlflow/openai/utils.py index fc4c2441b6b4d..fdaef6d444085 100644 --- a/mlflow/openai/utils.py +++ b/mlflow/openai/utils.py @@ -158,7 +158,13 @@ def __init__(self, api_type): self._api_token = None self._credential = None self._is_azure_ad = api_type in ("...
dask__dask-4901
Define __await__ method for collections What should this do? ```python async def f(): df = dask.datasets.timeseries() df = await df ``` One option, would be that it is shorthand for the following: ```python async def f(): df = dask.datasets.timeseries() df = df.persist() await wait(...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import OrderedDict\nfrom functools import partial\nfrom hashlib import md5\nfrom operator import getitem\nimport inspect\nimport pickle\nimport os\nimport threading\nimport uuid\n\nfrom toolz import merge, groupby...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom collections import OrderedDict\nfrom functools import partial\nfrom hashlib import md5\nfrom operator import getitem\nimport inspect\nimport pickle\nimport os\nimport threading\nimport uuid\n\nfrom toolz import merge, groupby...
diff --git a/dask/base.py b/dask/base.py index 4887ecd8db2..dbf12e0edae 100644 --- a/dask/base.py +++ b/dask/base.py @@ -156,6 +156,23 @@ def compute(self, **kwargs): (result,) = compute(self, traverse=False, **kwargs) return result + def __await__(self): + try: + from distribut...
networkx__networkx-3907
Add support for sets of graph edges Currently it looks like only tuples and lists of graph edgeds are supported, however with a small change I think it would be easy to add support for any Iterable, providing greater flexibilty to users of the library. Are there any considerations I'd need to take before submitting a P...
[ { "content": "\"\"\"Functions to convert NetworkX graphs to and from other formats.\n\nThe preferred way of converting data to a NetworkX graph is through the\ngraph constructor. The constructor calls the to_networkx_graph() function\nwhich attempts to guess the input type and convert it automatically.\n\nExam...
[ { "content": "\"\"\"Functions to convert NetworkX graphs to and from other formats.\n\nThe preferred way of converting data to a NetworkX graph is through the\ngraph constructor. The constructor calls the to_networkx_graph() function\nwhich attempts to guess the input type and convert it automatically.\n\nExam...
diff --git a/networkx/convert.py b/networkx/convert.py index 344ef22a633..565d57e69f3 100644 --- a/networkx/convert.py +++ b/networkx/convert.py @@ -50,7 +50,7 @@ def to_networkx_graph(data, create_using=None, multigraph_input=False): any NetworkX graph dict-of-dicts dict-of-lists - ...
localstack__localstack-5700
bug: sqs creation breaks with 0.14.1 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Having the following cdk definition for a sqs queue const queue = new sqs.Queue(scope, `foo-queue`, { fifo: true, visibilityTimeout: Duration.seconds(300), cont...
[ { "content": "import json\nimport logging\n\nfrom botocore.exceptions import ClientError\n\nfrom localstack.services.cloudformation.deployment_utils import (\n PLACEHOLDER_RESOURCE_NAME,\n generate_default_name,\n params_list_to_dict,\n params_select_attributes,\n)\nfrom localstack.services.cloudfor...
[ { "content": "import json\nimport logging\n\nfrom botocore.exceptions import ClientError\n\nfrom localstack.services.cloudformation.deployment_utils import (\n PLACEHOLDER_RESOURCE_NAME,\n generate_default_name,\n params_list_to_dict,\n params_select_attributes,\n)\nfrom localstack.services.cloudfor...
diff --git a/localstack/services/cloudformation/models/sqs.py b/localstack/services/cloudformation/models/sqs.py index 49b7cf648563a..17a9dd39bbe68 100644 --- a/localstack/services/cloudformation/models/sqs.py +++ b/localstack/services/cloudformation/models/sqs.py @@ -107,10 +107,13 @@ def fetch_state(self, stack_name,...
svthalia__concrexit-3692
Fix trying to delete moneybird invoice that has already been removed on moneybird ### Describe the bug [CONCREXIT-1D2](https://thalia.sentry.io/issues/5029597650/) When trying to delete moneybird external invoices, if they have already been removed on moneybird, it currently cuases this issue where the DELETE reque...
[ { "content": "import logging\n\nfrom django.conf import settings\nfrom django.contrib.admin.utils import model_ngettext\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models import CharField, Exists, F, OuterRef, Q, Subquery\nfr...
[ { "content": "import logging\n\nfrom django.conf import settings\nfrom django.contrib.admin.utils import model_ngettext\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.db.models import CharField, Exists, F, OuterRef, Q, Subquery\nfr...
diff --git a/website/moneybirdsynchronization/services.py b/website/moneybirdsynchronization/services.py index caae802d0..e72dfa125 100644 --- a/website/moneybirdsynchronization/services.py +++ b/website/moneybirdsynchronization/services.py @@ -177,8 +177,19 @@ def delete_external_invoice(obj): return m...
Nitrate__Nitrate-671
Replace smart_text() with smart_str() To suppress warning: `RemovedInDjango40Warning: smart_text() is deprecated in favor of smart_str()` Run command `runserver`, find out the warning messages from output.
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\n\nfrom .models import TCMSLogModel\n\nfrom django.utils.encoding import smart_text as smart_unicode\n\n\nclass TCMSLog:\n \"\"\"TCMS Log\"\"\"\n\n def __init__(self, model...
[ { "content": "# -*- coding: utf-8 -*-\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\n\nfrom .models import TCMSLogModel\n\nfrom django.utils.encoding import smart_str\n\n\nclass TCMSLog:\n \"\"\"TCMS Log\"\"\"\n\n def __init__(self, model):\n super(...
diff --git a/src/tcms/logs/views.py b/src/tcms/logs/views.py index 83b0bdca..da847a88 100755 --- a/src/tcms/logs/views.py +++ b/src/tcms/logs/views.py @@ -5,7 +5,7 @@ from .models import TCMSLogModel -from django.utils.encoding import smart_text as smart_unicode +from django.utils.encoding import smart_str cl...
hpcaitech__ColossalAI-3185
[tensor] fix some unittests [tensor] fix some unittests [tensor] fix some unittests
[ { "content": "# this code is inspired by the DeepSpeed library and implemented with our own design from scratch\nimport functools\nimport itertools\nfrom collections import OrderedDict\nfrom copy import deepcopy\nfrom typing import Any, Iterator, Optional, Tuple\n\nimport torch\nimport torch.distributed as dist...
[ { "content": "# this code is inspired by the DeepSpeed library and implemented with our own design from scratch\nimport functools\nimport itertools\nfrom collections import OrderedDict\nfrom copy import deepcopy\nfrom typing import Any, Iterator, Optional, Tuple\n\nimport torch\nimport torch.distributed as dist...
diff --git a/colossalai/zero/sharded_model/sharded_model_v2.py b/colossalai/zero/sharded_model/sharded_model_v2.py index 094f7d76a86d..12e8f65d4a35 100644 --- a/colossalai/zero/sharded_model/sharded_model_v2.py +++ b/colossalai/zero/sharded_model/sharded_model_v2.py @@ -494,6 +494,7 @@ def _colo_load_from_state_dict(se...
mesonbuild__meson-2541
Linker error while building gtkdoc I'm trying to make GStreamer modules build with meson inside Cerbero. When it builds gtkdoc I get this error: ``` Error in gtkdoc helper script: 'gtkdoc-scangobj' failed with status 1 ld: unrecognized option '-Wl,-rpath,/home/xclaesse/programmation/cerbero/build/sources/linux_x8...
[ { "content": "# Copyright 2015-2016 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
[ { "content": "# Copyright 2015-2016 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
diff --git a/mesonbuild/scripts/gtkdochelper.py b/mesonbuild/scripts/gtkdochelper.py index 45ed96bc7fd3..4406b2881bad 100644 --- a/mesonbuild/scripts/gtkdochelper.py +++ b/mesonbuild/scripts/gtkdochelper.py @@ -112,7 +112,8 @@ def build_gtkdoc(source_root, build_root, doc_subdir, src_subdirs, scanobjs_cmd = ['...
pytorch__vision-5970
Mypy job failing due to incorrect return-value from upstream The latest, freshest mypy time waster https://app.circleci.com/pipelines/github/pytorch/vision/17366/workflows/a475b8b1-1463-4159-bf00-be2d82030c0b/jobs/1405650 Caused by https://github.com/pytorch/pytorch/pull/74171 I think we just need to wait for ...
[ { "content": "import importlib\nimport inspect\nimport sys\nfrom collections import OrderedDict\nfrom dataclasses import dataclass, fields\nfrom inspect import signature\nfrom typing import Any, Callable, Dict, cast\n\nfrom torchvision._utils import StrEnum\n\nfrom .._internally_replaced_utils import load_state...
[ { "content": "import importlib\nimport inspect\nimport sys\nfrom dataclasses import dataclass, fields\nfrom inspect import signature\nfrom typing import Any, Callable, Dict, cast\n\nfrom torchvision._utils import StrEnum\n\nfrom .._internally_replaced_utils import load_state_dict_from_url\n\n\n__all__ = [\"Weig...
diff --git a/torchvision/models/_api.py b/torchvision/models/_api.py index e47eaf73aab..05b35fe87f0 100644 --- a/torchvision/models/_api.py +++ b/torchvision/models/_api.py @@ -1,7 +1,6 @@ import importlib import inspect import sys -from collections import OrderedDict from dataclasses import dataclass, fields from...
bokeh__bokeh-6688
BokehJS fails to load at all in notebooks after 0.12.7dev12 (bryan) Just clarifying: the issue is that BokehJS no longer works at all in notebooks ---- When moving from bokeh 0.12.7dev11 to 0.12.7dev12, the following code import holoviews as hv hv.notebook_extension('bokeh','matplotlib') goes from w...
[ { "content": "''' Provide functions and classes to help with various JS and CSS compilation.\n\n'''\nfrom __future__ import absolute_import\n\nimport logging\nlogger = logging.getLogger(__name__)\n\nimport io\nimport os\nimport sys\nimport six\nimport json\nimport hashlib\nfrom os.path import dirname, join, abs...
[ { "content": "''' Provide functions and classes to help with various JS and CSS compilation.\n\n'''\nfrom __future__ import absolute_import\n\nimport logging\nlogger = logging.getLogger(__name__)\n\nimport io\nimport os\nimport sys\nimport six\nimport json\nimport hashlib\nfrom os.path import dirname, join, abs...
diff --git a/bokeh/core/_templates/autoload_js.js b/bokeh/core/_templates/autoload_js.js index 369f783402a..7e912d17b2f 100644 --- a/bokeh/core/_templates/autoload_js.js +++ b/bokeh/core/_templates/autoload_js.js @@ -15,16 +15,16 @@ calls it with the rendered model. :type css_urls: list #} -(function(global) { +(fu...
privacyidea__privacyidea-659
LDAP resolver does not respect some boolean configuration options Please think about and cover the following questions: # Versions privacyIDEA: git revision 1888c8a Installation method: virtualenv ## more details: OS: Arch Linux Webserver: Flask integrated webserver Tokendatabase: sqlite3 # Wh...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2014 Cornelius Kölbel\n# contact: corny@cornelinux.de\n#\n# 2017-01-23 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add certificate verification\n# 2017-01-07 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Use ge...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (C) 2014 Cornelius Kölbel\n# contact: corny@cornelinux.de\n#\n# 2017-01-23 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Add certificate verification\n# 2017-01-07 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Use ge...
diff --git a/privacyidea/lib/resolvers/LDAPIdResolver.py b/privacyidea/lib/resolvers/LDAPIdResolver.py index e6a94866d7..38730943bd 100644 --- a/privacyidea/lib/resolvers/LDAPIdResolver.py +++ b/privacyidea/lib/resolvers/LDAPIdResolver.py @@ -589,8 +589,8 @@ def loadConfig(self, config): self.userinfo["usernam...
kartoza__prj.app-543
Sponsorship levels view should be grouped by level http://changelog.inasafe.org/en/qgis/sponsorshipperiod/list/ Should list the same way as current sponsors are listed (with grouping by sponsorship level).
[ { "content": "__author__ = 'rischan - <--rischan@kartoza.com-->'\n__date__ = '12/28/15'\n\nimport logging\nfrom base.models import Project\n\nfrom django.core.urlresolvers import reverse\nfrom django.shortcuts import get_object_or_404\nfrom django.http import HttpResponse\nfrom django.views.generic import (\n ...
[ { "content": "__author__ = 'rischan - <--rischan@kartoza.com-->'\n__date__ = '12/28/15'\n\nimport logging\nfrom base.models import Project\n\nfrom django.core.urlresolvers import reverse\nfrom django.shortcuts import get_object_or_404\nfrom django.http import HttpResponse\nfrom django.views.generic import (\n ...
diff --git a/django_project/changes/templates/sponsorship_period/list.html b/django_project/changes/templates/sponsorship_period/list.html index 6cc798e69..b0fd81a11 100644 --- a/django_project/changes/templates/sponsorship_period/list.html +++ b/django_project/changes/templates/sponsorship_period/list.html @@ -44,27 +...
edgedb__edgedb-3686
Upserts failing in `For` block when I query: ``` with raw_data := <json>$data for item in json_array_unpack(raw_data) union (insert Person {slug := <str>json_get(item, 'slug')} unless conflict on .slug else (select Person)) {slug, id, name} ``` it fails with `edgedb.errors.ConstraintViolationError: slug viola...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy...
diff --git a/edb/edgeql/compiler/conflicts.py b/edb/edgeql/compiler/conflicts.py index 3757a7e5af2..3efd7f40adb 100644 --- a/edb/edgeql/compiler/conflicts.py +++ b/edb/edgeql/compiler/conflicts.py @@ -133,10 +133,13 @@ def _compile_conflict_select( error, context=parser_context ) ...
open-telemetry__opentelemetry-python-contrib-583
Fix eachdist.py `scripts/eachdist.py` is ignoring certain packages because it tries to get the package name by splitting with `split("/", maxsplit=1)`. This fails for a regular package path: ```python In [1]: "/a/b/c/d".split("/", maxsplit=1) Out[1]: ['', 'a/b/c/d'] ``` This script also tries to split at a diffe...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport os\nimport re\nimport shlex\nimport shutil\nimport subprocess\nimport sys\nfrom configparser import ConfigParser\nfrom datetime import datetime\nfrom inspect import cleandoc\nfrom itertools import chain\nfrom pathlib import Path, PurePath\n\nDEFAUL...
[ { "content": "#!/usr/bin/env python3\n\nimport argparse\nimport os\nimport re\nimport shlex\nimport shutil\nimport subprocess\nimport sys\nfrom configparser import ConfigParser\nfrom datetime import datetime\nfrom inspect import cleandoc\nfrom itertools import chain\nfrom os.path import basename\nfrom pathlib i...
diff --git a/scripts/eachdist.py b/scripts/eachdist.py index 92644573a3..eed31eb62d 100755 --- a/scripts/eachdist.py +++ b/scripts/eachdist.py @@ -11,6 +11,7 @@ from datetime import datetime from inspect import cleandoc from itertools import chain +from os.path import basename from pathlib import Path, PurePath ...
fidals__shopelectro-466
Pin celery version to 4.1.1 and move SELENIUM_* variables to local.py/drone.py See the [issue](https://github.com/celery/kombu/issues/870) for a detail about celery. SELENIUM_* variables are not required for prod, so let's move them from base.py
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
[ { "content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/...
diff --git a/requirements.txt b/requirements.txt index 8e4873fe..9e9a172f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ beautifulsoup4 -celery==4.2.0 +celery==4.1.1 Django==1.10 django-debug-toolbar django-redis diff --git a/shopelectro/settings/base.py b/shopelectro/settings/base.py index af...
cal-itp__benefits-38
Ensure cookies are enabled Need a basic client-side check that cookies are enabled (and UI if not) as soon as the app loads, since we require cookies to store the temporary transaction data.
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os...
[ { "content": "\"\"\"\nDjango settings for benefits project.\n\"\"\"\nimport os\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os...
diff --git a/benefits/core/templates/core/base.html b/benefits/core/templates/core/base.html index c487593a17..a234d5506f 100644 --- a/benefits/core/templates/core/base.html +++ b/benefits/core/templates/core/base.html @@ -25,6 +25,14 @@ <a href="#main-content">{% translate "core.skip" %}</a> ...
fossasia__open-event-server-7862
Calendar link in calendar not working properly In the description, "Join using link: https://eventyay.com/e/fa96ae2c/video/Main Hall/187" The space is treated as a break, clipping the link at Main" "Main Hall" should be HTTP encoded to Main%20Hall
[ { "content": "import pytz\nfrom flask import jsonify\nfrom flask_jwt_extended import current_user\nfrom icalendar import Calendar, Event\nfrom sqlalchemy import or_\nfrom sqlalchemy.orm import joinedload\n\nfrom app.models.session import Session\n\n\ndef to_ical(event, include_sessions=False, my_schedule=False,...
[ { "content": "from urllib.parse import quote\n\nimport pytz\nfrom flask import jsonify\nfrom flask_jwt_extended import current_user\nfrom icalendar import Calendar, Event\nfrom sqlalchemy import or_\nfrom sqlalchemy.orm import joinedload\n\nfrom app.models.session import Session\n\n\ndef to_ical(event, include_...
diff --git a/app/api/helpers/calendar/ical.py b/app/api/helpers/calendar/ical.py index d6c52bc16b..1ccffd084a 100644 --- a/app/api/helpers/calendar/ical.py +++ b/app/api/helpers/calendar/ical.py @@ -1,3 +1,5 @@ +from urllib.parse import quote + import pytz from flask import jsonify from flask_jwt_extended import cur...
yt-project__yt-4316
reloading after `save_as_dataset` fails ### Bug report Originally reported on slack: if you `save_as_dataset()` then reload in a new python session, it will error for `athena_pp` datasets (and maybe others?). **Code for reproduction** ```python import yt fi = "AM06/AM06.out1.00300.athdf" ds = yt.load(fi) ...
[ { "content": "from yt.units.yt_array import YTArray\nfrom yt.utilities.logger import ytLogger as mylog\nfrom yt.utilities.on_demand_imports import _h5py as h5py\n\n\ndef save_as_dataset(ds, filename, data, field_types=None, extra_attrs=None):\n r\"\"\"Export a set of field arrays to a reloadable yt dataset.\...
[ { "content": "from yt.units.yt_array import YTArray\nfrom yt.utilities.logger import ytLogger as mylog\nfrom yt.utilities.on_demand_imports import _h5py as h5py\n\n\ndef save_as_dataset(ds, filename, data, field_types=None, extra_attrs=None):\n r\"\"\"Export a set of field arrays to a reloadable yt dataset.\...
diff --git a/nose_unit.cfg b/nose_unit.cfg index 9e076eaf111..81ca36685ae 100644 --- a/nose_unit.cfg +++ b/nose_unit.cfg @@ -6,5 +6,5 @@ nologcapture=1 verbosity=2 where=yt with-timer=1 -ignore-files=(test_load_errors.py|test_load_sample.py|test_commons.py|test_ambiguous_fields.py|test_field_access_pytest.py|test_sa...
pypa__setuptools-3613
[BUG] StaticModule not choosing the Python file encoding ### setuptools version setuptools==65.4.0 ### Python version 3.7, 3.8, 3.9, 3.10, 3.11 ### OS Windows mainly, but reproducible on Linux ### Additional environment information _No response_ ### Description The [StaticModule](https://github.com/pypa/setupt...
[ { "content": "\"\"\"Utility functions to expand configuration directives or special values\n(such glob patterns).\n\nWe can split the process of interpreting configuration files into 2 steps:\n\n1. The parsing the file contents from strings to value objects\n that can be understand by Python (for example a st...
[ { "content": "\"\"\"Utility functions to expand configuration directives or special values\n(such glob patterns).\n\nWe can split the process of interpreting configuration files into 2 steps:\n\n1. The parsing the file contents from strings to value objects\n that can be understand by Python (for example a st...
diff --git a/changelog.d/3613.misc.rst b/changelog.d/3613.misc.rst new file mode 100644 index 0000000000..7e64ed46aa --- /dev/null +++ b/changelog.d/3613.misc.rst @@ -0,0 +1 @@ +Fixed encoding errors in ``expand.StaticModule`` when system default encoding doesn't match expectations for source files. diff --git a/setupt...
huggingface__trl-29
adap_kl_ctrl boolean is not used Hello, Thanks for this implementation, is it possible that your kl adaptation is always on ? https://github.com/lvwerra/trl/blob/750f5fd5329bb81c79b00243c4c8923ac14981d5/trl/ppo.py#L92 Best, Thibaud
[ { "content": "# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02-ppo.ipynb (unless otherwise specified).\n\n__all__ = ['AdaptiveKLController', 'FixedKLController', 'PPOTrainer']\n\n# Cell\nimport numpy as np\nimport torch.nn.functional as F\nfrom torch.optim import Adam\nimport torch\nimport collections\nimport...
[ { "content": "# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02-ppo.ipynb (unless otherwise specified).\n\n__all__ = ['AdaptiveKLController', 'FixedKLController', 'PPOTrainer']\n\n# Cell\nimport numpy as np\nimport torch.nn.functional as F\nfrom torch.optim import Adam\nimport torch\nimport collections\nimport...
diff --git a/docs/02-ppo.html b/docs/02-ppo.html index 6c42cf4707..1cef108a3f 100644 --- a/docs/02-ppo.html +++ b/docs/02-ppo.html @@ -211,10 +211,13 @@ <h2 id="FixedKLController" class="doc_header"><code>class</code> <code>FixedKLCo <span class="bp">self</span><span class="o">.</span><span class="n">ref_model...
Lightning-AI__torchmetrics-2499
The default value of `compute_with_cache` should be `True` . ## 📚 Documentation I found an inconsistency around `compute_with_cache` in `Metic`. The docstring says the default value is `False` but the actual one is `True`. https://github.com/Lightning-AI/torchmetrics/blob/ca7c8ebb7ee5ab63833cb2be4097e29b58b51b4...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/src/torchmetrics/metric.py b/src/torchmetrics/metric.py index c5e6999e89e..7437fc35f95 100644 --- a/src/torchmetrics/metric.py +++ b/src/torchmetrics/metric.py @@ -75,7 +75,7 @@ class Metric(Module, ABC): - distributed_available_fn: Function that checks if the distributed backend is available....
arviz-devs__arviz-1629
Check for InferenceData input on from_pymc3 `pymc3.sample` has a keyword argument that makes the function return an InferenceData object, `from_pymc3` is called under the hood by pymc3. This can generate confusion when doing also posterior predictive checks or similar postprocessing, and it is common to end up calling ...
[ { "content": "\"\"\"PyMC3-specific conversion code.\"\"\"\nimport logging\nimport warnings\nfrom types import ModuleType\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Tuple, Union\n\nimport numpy as np\nimport xarray as xr\n\nfrom .. import utils\nfrom ..rcparams import rcParams\nfrom ...
[ { "content": "\"\"\"PyMC3-specific conversion code.\"\"\"\nimport logging\nimport warnings\nfrom types import ModuleType\nfrom typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Tuple, Union\n\nimport numpy as np\nimport xarray as xr\n\nfrom .. import utils\nfrom ..rcparams import rcParams\nfrom ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c624daac4..c71605f2db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ * Fix `ess/rhat` plots in `plot_forest` ([1606](https://github.com/arviz-devs/arviz/pull/1606)) * Fix `from_numpyro` crash when importing model with `thinning=x` for `x > 1` ([1619](htt...
pydantic__pydantic-8262
unittest.mock deprecation warnings ### Initial Checks - [X] I confirm that I'm using Pydantic V2 ### Description Deprecation warning triggered when trying to use a `BaseModel` as a `spec` for a Mock object (used in unit testing). ```bash .../.pyenv/versions/3.10.8/lib/python3.10/unittest/mock.py:496: PydanticDep...
[ { "content": "\"\"\"Private logic for creating models.\"\"\"\nfrom __future__ import annotations as _annotations\n\nimport operator\nimport typing\nimport warnings\nimport weakref\nfrom abc import ABCMeta\nfrom functools import partial\nfrom types import FunctionType\nfrom typing import Any, Callable, Generic, ...
[ { "content": "\"\"\"Private logic for creating models.\"\"\"\nfrom __future__ import annotations as _annotations\n\nimport operator\nimport typing\nimport warnings\nimport weakref\nfrom abc import ABCMeta\nfrom functools import partial\nfrom types import FunctionType\nfrom typing import Any, Callable, Generic, ...
diff --git a/pydantic/_internal/_model_construction.py b/pydantic/_internal/_model_construction.py index 1d7fbf788ab..d72493b0392 100644 --- a/pydantic/_internal/_model_construction.py +++ b/pydantic/_internal/_model_construction.py @@ -249,6 +249,12 @@ def __fields__(self) -> dict[str, FieldInfo]: warnings.wa...
kivy__kivy-4684
Explicitly state the need to install docutils and pigments in the relevant modules `RstDocument` assumes presence of `docutils` package. However this is not deployed by default on Android when you add kivy package in requirements, resulting the following error. I guess it's a missing dependency somewhere: ``` 02-26 1...
[ { "content": "'''\nreStructuredText renderer\n=========================\n\n.. versionadded:: 1.1.0\n\n`reStructuredText <http://docutils.sourceforge.net/rst.html>`_ is an\neasy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser\nsystem.\n\n.. warning::\n\n This widget is highly experime...
[ { "content": "'''\nreStructuredText renderer\n=========================\n\n.. versionadded:: 1.1.0\n\n`reStructuredText <http://docutils.sourceforge.net/rst.html>`_ is an\neasy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser\nsystem.\n\n.. note::\n\n This widget requires ``docutils``...
diff --git a/kivy/uix/codeinput.py b/kivy/uix/codeinput.py index cc8fb335fb..6621efc07c 100644 --- a/kivy/uix/codeinput.py +++ b/kivy/uix/codeinput.py @@ -6,6 +6,9 @@ .. image:: images/codeinput.jpg +.. note:: + + This widget requires ``pygments`` package to run. Install it with ``pip``. The :class:`CodeInpu...
getredash__redash-3298
Pending invitation links broken in latest version <!-- We use GitHub only for bug reports 🐛 Anything else should be posted to https://discuss.redash.io 👫 🚨For support, help & questions use https://discuss.redash.io/c/support 💡For feature requests & ideas use https://discuss.redash.io/c/feature-requests ...
[ { "content": "import logging\n\nfrom flask import abort, flash, redirect, render_template, request, url_for\n\nfrom flask_login import current_user, login_required, login_user, logout_user\nfrom redash import __version__, limiter, models, settings\nfrom redash.authentication import current_org, get_login_url, g...
[ { "content": "import logging\n\nfrom flask import abort, flash, redirect, render_template, request, url_for\n\nfrom flask_login import current_user, login_required, login_user, logout_user\nfrom redash import __version__, limiter, models, settings\nfrom redash.authentication import current_org, get_login_url, g...
diff --git a/redash/handlers/authentication.py b/redash/handlers/authentication.py index d6c0380d6a..77b5de0ec5 100644 --- a/redash/handlers/authentication.py +++ b/redash/handlers/authentication.py @@ -38,7 +38,7 @@ def render_token_login_page(template, org_slug, token): return render_template("error.html", ...
fidals__shopelectro-552
models.py:122-123: Move Product.get_siblings method to... The puzzle `388-509fa51e` from #388 has to be resolved: https://github.com/fidals/shopelectro/blob/5d0c5e97622abce3a922eda62c1f38810d7da5f8/shopelectro/models.py#L122-L123 The puzzle was created by duker33 on 12-Aug-18. Estimate: 30 minutes, If you hav...
[ { "content": "import random\nimport string\nfrom itertools import chain, groupby\nfrom operator import attrgetter\nfrom typing import Dict, List, Optional, Tuple\nfrom uuid import uuid4\n\nfrom django.conf import settings\nfrom django.db import models\nfrom django.urls import reverse\nfrom django.utils.text imp...
[ { "content": "import random\nimport string\nfrom itertools import chain, groupby\nfrom operator import attrgetter\nfrom typing import Dict, List, Optional, Tuple\nfrom uuid import uuid4\n\nfrom django.conf import settings\nfrom django.db import models\nfrom django.urls import reverse\nfrom django.utils.text imp...
diff --git a/requirements.txt b/requirements.txt index 6f51b0f7..8bf6bb46 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,4 +17,4 @@ ua-parser==0.8.0 user-agents==1.1.0 sorl-thumbnail==12.4a1 https://github.com/selwin/django-user_agents/archive/master.zip -https://github.com/fidals/refarm-site/archive/0....
Textualize__textual-3396
Pilot.click can't use `Screen` as selector. If you try something like `pilot.click(Screen)`, you get a `NoMatches` exception from the query. Pilot.click can't use `Screen` as selector. If you try something like `pilot.click(Screen)`, you get a `NoMatches` exception from the query.
[ { "content": "\"\"\"\n\nThe pilot object is used by [App.run_test][textual.app.App.run_test] to programmatically operate an app.\n\nSee the guide on how to [test Textual apps](/guide/testing).\n\n\"\"\"\n\nfrom __future__ import annotations\n\nimport asyncio\nfrom typing import Any, Generic\n\nimport rich.repr\...
[ { "content": "\"\"\"\n\nThe pilot object is used by [App.run_test][textual.app.App.run_test] to programmatically operate an app.\n\nSee the guide on how to [test Textual apps](/guide/testing).\n\n\"\"\"\n\nfrom __future__ import annotations\n\nimport asyncio\nfrom typing import Any, Generic\n\nimport rich.repr\...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 35a0624f86..c401104de1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versionin...
ethereum__web3.py-2981
Potential race condition when writing cache entries in simple_cache_middleware * Version: 6.3.0 * Python: 3.10.1 * OS: osx <details><summary>`pip freeze` output</summary> <p> ``` aiohttp==3.8.4 aiosignal==1.3.1 alabaster==0.7.13 async-timeout==4.0.2 attrs==23.1.0 Babel==2.12.1 base58==2.1.1 bitarray==2...
[ { "content": "import functools\nimport threading\nimport time\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Collection,\n Dict,\n Set,\n cast,\n)\n\nfrom eth_utils import (\n is_list_like,\n)\nimport lru\n\nfrom web3._utils.caching import (\n generate_cache_key,\n)\nfrom...
[ { "content": "import functools\nimport threading\nimport time\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Collection,\n Dict,\n Set,\n cast,\n)\n\nfrom eth_utils import (\n is_list_like,\n)\nimport lru\n\nfrom web3._utils.caching import (\n generate_cache_key,\n)\nfrom...
diff --git a/newsfragments/2981.bugfix.rst b/newsfragments/2981.bugfix.rst new file mode 100644 index 0000000000..eff325ee77 --- /dev/null +++ b/newsfragments/2981.bugfix.rst @@ -0,0 +1 @@ +Fix potential race condition when writing cache entries in ``simple_cache_middleware`` \ No newline at end of file diff --git a/we...
SigmaHQ__sigma-4029
Unknown field modifier in master rules sigmac fails to parse both `rules/windows/builtin/security/win_security_successful_external_remote_smb_login.yml` and `rules/windows/builtin/security/win_security_successful_external_remote_rdp_login.yml` due to an unknown field modifier, `IpAddress|cidr`. The unit tests also fail...
[ { "content": "# Sigma parser\n# Copyright 2016-2019 Thomas Patzke, Florian Roth\n\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at you...
[ { "content": "# Sigma parser\n# Copyright 2016-2019 Thomas Patzke, Florian Roth\n\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at you...
diff --git a/tools/sigma/parser/rule.py b/tools/sigma/parser/rule.py index 50a4b32177c..39d1da434cc 100644 --- a/tools/sigma/parser/rule.py +++ b/tools/sigma/parser/rule.py @@ -83,6 +83,9 @@ def parse_definition(self, definition, condOverride=None): for key, value in definition.items(): if...
pypa__setuptools-3714
Intention didn't match implementation # Problem Intention of the following block of code is to provide default value in case if it is missing in the config, but instead it raises `AttributeError` if `dist` has no `include_package_data` attribute. https://github.com/pypa/setuptools/blob/92ebeed732b08ac29576634ad48...
[ { "content": "\"\"\"\nLoad setuptools configuration from ``pyproject.toml`` files.\n\n**PRIVATE MODULE**: API reserved for setuptools internal usage only.\n\"\"\"\nimport logging\nimport os\nimport warnings\nfrom contextlib import contextmanager\nfrom functools import partial\nfrom typing import TYPE_CHECKING, ...
[ { "content": "\"\"\"\nLoad setuptools configuration from ``pyproject.toml`` files.\n\n**PRIVATE MODULE**: API reserved for setuptools internal usage only.\n\"\"\"\nimport logging\nimport os\nimport warnings\nfrom contextlib import contextmanager\nfrom functools import partial\nfrom typing import TYPE_CHECKING, ...
diff --git a/changelog.d/3713.misc.rst b/changelog.d/3713.misc.rst new file mode 100644 index 0000000000..b5d07f07ae --- /dev/null +++ b/changelog.d/3713.misc.rst @@ -0,0 +1,2 @@ +Fixed incomplete ``getattr`` statement that caused problems when accessing +undefined attribute. diff --git a/setuptools/config/pyprojecttom...
spack__spack-44378
Installation issue: `seacas 2022-10-14:2023-05-30` with `fmt@9` when `gcc` mixed with `apple-clang` ### Steps to reproduce the issue When `fmt%gcc` is mixed with `seacas@2022-10-14%apple-clang`, `fmt@9` is used which triggers an `apple-clang` compiler bug in symbol mangling. See: https://github.com/llvm/llvm-pr...
[ { "content": "# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nimport sys\n\nfrom spack.operating_systems.mac_os import macos_version\nfrom spack.package impo...
[ { "content": "# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nimport sys\n\nfrom spack.operating_systems.mac_os import macos_version\nfrom spack.package impo...
diff --git a/var/spack/repos/builtin/packages/seacas/package.py b/var/spack/repos/builtin/packages/seacas/package.py index 7607142f074547..d5fa922a6a52d7 100644 --- a/var/spack/repos/builtin/packages/seacas/package.py +++ b/var/spack/repos/builtin/packages/seacas/package.py @@ -231,6 +231,17 @@ class Seacas(CMakePackag...
nautobot__nautobot-2731
Git `provided_contents` not honored for Jobs when refreshing repo <!-- 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 discu...
[ { "content": "\"\"\"Git data source functionality.\"\"\"\n\nfrom collections import defaultdict, namedtuple\nimport logging\nimport mimetypes\nimport os\nimport re\nfrom urllib.parse import quote\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.ex...
[ { "content": "\"\"\"Git data source functionality.\"\"\"\n\nfrom collections import defaultdict, namedtuple\nimport logging\nimport mimetypes\nimport os\nimport re\nfrom urllib.parse import quote\n\nfrom django.conf import settings\nfrom django.contrib.contenttypes.models import ContentType\nfrom django.core.ex...
diff --git a/changes/2601.fixed b/changes/2601.fixed new file mode 100644 index 00000000000..ef96e9ab85c --- /dev/null +++ b/changes/2601.fixed @@ -0,0 +1 @@ +Fixed an issue where a Git repository could provide Jobs even if not marked as a provider of Jobs. diff --git a/nautobot/extras/datasources/git.py b/nautobot/ext...
ipython__ipython-11092
Cleanup extra logic that handle python <=3.3 https://github.com/ipython/ipython/pull/10833 dis most of that but there seem to be some logic still handling python 3.3 https://github.com/ipython/ipython/blob/dda523895e5a9c4185de763a25f038dc6fff76b8/IPython/core/extensions.py#L17-L21 https://github.com/ipython/ipyth...
[ { "content": "# encoding: utf-8\n\"\"\"A class for managing IPython extensions.\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\nimport os.path\nimport sys\nfrom importlib import import_module\n\nfrom traitlets.config.configurable impor...
[ { "content": "# encoding: utf-8\n\"\"\"A class for managing IPython extensions.\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport os\nimport os.path\nimport sys\nfrom importlib import import_module, reload\n\nfrom traitlets.config.configurab...
diff --git a/IPython/core/extensions.py b/IPython/core/extensions.py index 8028b99eef5..e570d48ff3a 100644 --- a/IPython/core/extensions.py +++ b/IPython/core/extensions.py @@ -7,18 +7,13 @@ import os import os.path import sys -from importlib import import_module +from importlib import import_module, reload from ...
urllib3__urllib3-1932
parse_retry_after() in utils/retry.py computes seconds incorrectly when Retry-After value is a http-date and local time is not in the GMT timezone For the given Retry-After value `Thu, 25 Jun 2020 21:30:12 GMT`, with the local time being `Thu, 25 Jun 2020 17:28:12 EST`, parse_retry_after() will return `14564.6719810962...
[ { "content": "from __future__ import absolute_import\nimport time\nimport logging\nfrom collections import namedtuple\nfrom itertools import takewhile\nimport email\nimport re\n\nfrom ..exceptions import (\n ConnectTimeoutError,\n MaxRetryError,\n ProtocolError,\n ReadTimeoutError,\n ResponseErro...
[ { "content": "from __future__ import absolute_import\nimport time\nimport logging\nfrom collections import namedtuple\nfrom itertools import takewhile\nimport email\nimport re\n\nfrom ..exceptions import (\n ConnectTimeoutError,\n MaxRetryError,\n ProtocolError,\n ReadTimeoutError,\n ResponseErro...
diff --git a/dev-requirements.txt b/dev-requirements.txt index e6b480eec3..dac6785e07 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -7,6 +7,7 @@ PySocks==1.7.1 win-inet-pton==1.1.0 pytest==4.6.9 pytest-timeout==1.3.4 +pytest-freezegun==0.3.0.post1 flaky==3.6.1 trustme==0.5.3 cryptography==2.8 di...
jazzband__django-axes-1080
`force_login` not working in tests Hey, I've tried following the documentation and setting `AXES_ENABLED = False` in the test settings, but that did not work. I also tried removing 'axes' from INSTALLED_APPS in my test settings, but that also did not work? I was able to get the test to work by using `client.login...
[ { "content": "from typing import Optional\nfrom django.conf import settings\nfrom django.contrib.auth.backends import BaseBackend, ModelBackend\nfrom django.http import HttpRequest\n\nfrom axes.exceptions import (\n AxesBackendPermissionDenied,\n AxesBackendRequestParameterRequired,\n)\nfrom axes.handlers...
[ { "content": "from typing import Optional\nfrom django.conf import settings\nfrom django.contrib.auth.backends import ModelBackend\nfrom django.http import HttpRequest\n\nfrom axes.exceptions import (\n AxesBackendPermissionDenied,\n AxesBackendRequestParameterRequired,\n)\nfrom axes.handlers.proxy import...
diff --git a/axes/backends.py b/axes/backends.py index 6cec9b5d..2cec578b 100644 --- a/axes/backends.py +++ b/axes/backends.py @@ -1,6 +1,6 @@ from typing import Optional from django.conf import settings -from django.contrib.auth.backends import BaseBackend, ModelBackend +from django.contrib.auth.backends import Mode...
celery__celery-5565
Exception message as a string is still being unpacked Here: https://github.com/celery/celery/blob/master/celery/backends/base.py#L282 Following code: ``` exc_msg = 'SHOULDBETOGETHER' print(*exc_msg if isinstance(exc_msg, tuple) else exc_msg) ``` results in: ``` S H O U L D B E T O G E T H E R ```
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Result backend base classes.\n\n- :class:`BaseBackend` defines the interface.\n\n- :class:`KeyValueStoreBackend` is a common base class\n using K/V semantics like _get and _put.\n\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport datetime\n...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Result backend base classes.\n\n- :class:`BaseBackend` defines the interface.\n\n- :class:`KeyValueStoreBackend` is a common base class\n using K/V semantics like _get and _put.\n\"\"\"\nfrom __future__ import absolute_import, unicode_literals\n\nimport datetime\n...
diff --git a/celery/backends/base.py b/celery/backends/base.py index 2074a6f5bd7..5f1a7e89071 100644 --- a/celery/backends/base.py +++ b/celery/backends/base.py @@ -279,7 +279,10 @@ def exception_to_python(self, exc): celery.exceptions.__name__) exc_m...
django-cms__django-cms-1978
Picture plugin form shows both public and draft pages When editing the picture plugin, both _draft_ and _public_ pages are shown in the `Page` form field. Only one version should be loaded.
[ { "content": "from cms.utils.compat.dj import python_2_unicode_compatible\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.core.exceptions import ValidationError\nfrom cms.models import CMSPlugin, Page\nfrom os.path import basename\n\n\n@python_2_unicode_compat...
[ { "content": "from cms.utils.compat.dj import python_2_unicode_compatible\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.core.exceptions import ValidationError\nfrom cms.models import CMSPlugin, Page\nfrom os.path import basename\n\n\n@python_2_unicode_compat...
diff --git a/cms/plugins/picture/models.py b/cms/plugins/picture/models.py index 57fcc56f830..f801feb5f70 100644 --- a/cms/plugins/picture/models.py +++ b/cms/plugins/picture/models.py @@ -23,6 +23,7 @@ class Picture(CMSPlugin): url = models.CharField(_("link"), max_length=255, blank=True, null=True, help...
django-import-export__django-import-export-155
unicode import I kept getting errors on importing au unicode csv file. It seems to failing in the test dry_run on this line: https://github.com/bmihelac/django-import-export/blob/master/import_export/resources.py#L342 after changing it to row_result.object_repr = repr(instance) it continues.
[ { "content": "from __future__ import unicode_literals\n\nimport functools\nfrom copy import deepcopy\nimport sys\nimport traceback\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\n\nfrom django.utils.safestring import mark_safe\nfrom django.utils.datastructures import SortedDict\nfrom django.uti...
[ { "content": "from __future__ import unicode_literals\n\nimport functools\nfrom copy import deepcopy\nimport sys\nimport traceback\n\nimport tablib\nfrom diff_match_patch import diff_match_patch\n\nfrom django.utils.safestring import mark_safe\nfrom django.utils.datastructures import SortedDict\nfrom django.uti...
diff --git a/import_export/resources.py b/import_export/resources.py index 40b65b5ee..90f31418e 100644 --- a/import_export/resources.py +++ b/import_export/resources.py @@ -341,7 +341,7 @@ def import_data(self, dataset, dry_run=False, raise_errors=False, self.save_instance(instance, real_dry_ru...
conan-io__conan-center-index-1921
[libselinux] libselinux/:3.0 Missing symlinks=True in recipe ## Package and Environment Details * Package Name/Version: **libselinux/3.0** * Operating System+version: **Linux Fedora 31** * Compiler+version: **GCC 9** * Conan version: **conan 1.26.0** * Python version: **Python 3.7.7** ## Conan profile...
[ { "content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport glob\n\n\nclass LibSELinuxConan(ConanFile):\n name = \"libselinux\"\n description = \"Security-enhanced Linux is a patch of the Linux kernel and a number of ...
[ { "content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport glob\n\n\nclass LibSELinuxConan(ConanFile):\n name = \"libselinux\"\n description = \"Security-enhanced Linux is a patch of the Linux kernel and a number of ...
diff --git a/recipes/libselinux/all/conanfile.py b/recipes/libselinux/all/conanfile.py index 2693f9da144ee..d9ede41a3918f 100644 --- a/recipes/libselinux/all/conanfile.py +++ b/recipes/libselinux/all/conanfile.py @@ -56,7 +56,7 @@ def package(self): self.copy(pattern="LICENSE", dst="licenses", src=_selinux_sub...
internetarchive__openlibrary-4576
"Random Book" option isn't The "random book" feature on the openlibrary.org site appears to not function as originally intended, and instead is only returning one of a small number of results for books with "available" or "lending" in their textual metadata (title, description, etc). ### Evidence / Screenshot (if po...
[ { "content": "\"\"\"Module for providing core functionality of lending on Open Library.\n\"\"\"\n\nimport web\nimport datetime\nimport time\nimport logging\nimport uuid\nimport requests\n\nfrom infogami.utils.view import public\nfrom infogami.utils import delegate\nfrom openlibrary.core import cache\nfrom openl...
[ { "content": "\"\"\"Module for providing core functionality of lending on Open Library.\n\"\"\"\n\nimport web\nimport datetime\nimport time\nimport logging\nimport uuid\nimport requests\n\nfrom infogami.utils.view import public\nfrom infogami.utils import delegate\nfrom openlibrary.core import cache\nfrom openl...
diff --git a/openlibrary/core/lending.py b/openlibrary/core/lending.py index fb483a6bf43..41c20eaa24f 100644 --- a/openlibrary/core/lending.py +++ b/openlibrary/core/lending.py @@ -208,7 +208,7 @@ def get_random_available_ia_edition(): """uses archive advancedsearch to raise a random book""" try: url...
zestedesavoir__zds-site-6028
Mauvais titre de notification pour le signalement de billet **Description du bug** Lorsqu'un membre signale un billet, le titre de la notification est `(<bound method PublishedContent.title of <PublishedContent: Version publique de "La Belgique a un nouveau gouvernement, ça se fête !">>,)` au lieu d'être le nom du c...
[ { "content": "from django.contrib.contenttypes.models import ContentType\nfrom django.utils.translation import gettext_lazy as _\n\nfrom zds.forum.models import Post\nfrom zds.mp.models import PrivateTopic\nfrom zds.notification.models import Notification\nfrom zds.tutorialv2.models.database import ContentReact...
[ { "content": "from django.contrib.contenttypes.models import ContentType\nfrom django.utils.translation import gettext_lazy as _\n\nfrom zds.forum.models import Post\nfrom zds.mp.models import PrivateTopic\nfrom zds.notification.models import Notification\nfrom zds.tutorialv2.models.database import ContentReact...
diff --git a/zds/utils/header_notifications.py b/zds/utils/header_notifications.py index fc00b9e909..7dad69139a 100644 --- a/zds/utils/header_notifications.py +++ b/zds/utils/header_notifications.py @@ -20,7 +20,7 @@ def _get_alert_info(alert): return post.topic.title, post.get_absolute_url() elif alert.s...
holoviz__panel-3698
PANEL_OAUTH_PROVIDER not used #### ALL software version info Panel 0.13.1 #### Description of expected behavior and the observed behavior Setting PANEL_OAUTH_PROVIDER is ignored, authentication is only used when passing --oauth-provider to panel serve. The authentication user guide suggests otherwise "the `oa...
[ { "content": "\"\"\"\nSubclasses the bokeh serve commandline handler to extend it in various\nways.\n\"\"\"\n\nimport ast\nimport base64\nimport logging\nimport os\n\nfrom glob import glob\nfrom types import ModuleType\n\nfrom bokeh.application import Application\nfrom bokeh.application.handlers.document_lifecy...
[ { "content": "\"\"\"\nSubclasses the bokeh serve commandline handler to extend it in various\nways.\n\"\"\"\n\nimport ast\nimport base64\nimport logging\nimport os\n\nfrom glob import glob\nfrom types import ModuleType\n\nfrom bokeh.application import Application\nfrom bokeh.application.handlers.document_lifecy...
diff --git a/panel/command/serve.py b/panel/command/serve.py index 08e5aeea1f..fdc8437408 100644 --- a/panel/command/serve.py +++ b/panel/command/serve.py @@ -351,8 +351,14 @@ def customize_kwargs(self, args, server_kwargs): ) config.nthreads = args.num_threads + if args.oauth_pro...
nltk__nltk-3086
SentimentIntensityAnalyzer() from nltk.sentiment.vader does not respond to hashtags. Example: ``` SentimentIntensityAnalyzer.polarity_scores( 'Strings with hashtag #stupid #useless #BAD' ) ... compound: 0.0, ... neg: 0.0, ... neu: 1.0, ... pos: 0.0, ```
[ { "content": "# Natural Language Toolkit: vader\n#\n# Copyright (C) 2001-2022 NLTK Project\n# Author: C.J. Hutto <Clayton.Hutto@gtri.gatech.edu>\n# Ewan Klein <ewan@inf.ed.ac.uk> (modifications)\n# Pierpaolo Pantone <24alsecondo@gmail.com> (modifications)\n# George Berry <geb97@cornell.e...
[ { "content": "# Natural Language Toolkit: vader\n#\n# Copyright (C) 2001-2022 NLTK Project\n# Author: C.J. Hutto <Clayton.Hutto@gtri.gatech.edu>\n# Ewan Klein <ewan@inf.ed.ac.uk> (modifications)\n# Pierpaolo Pantone <24alsecondo@gmail.com> (modifications)\n# George Berry <geb97@cornell.e...
diff --git a/nltk/sentiment/vader.py b/nltk/sentiment/vader.py index bddc331bd9..8c5040e50b 100644 --- a/nltk/sentiment/vader.py +++ b/nltk/sentiment/vader.py @@ -356,6 +356,11 @@ def polarity_scores(self, text): Return a float for sentiment strength based on the input text. Positive values are positi...
LMFDB__lmfdb-1778
Problems with lcalc downloads for Dirichlet characters I don't see how these are being reached (they are not shown on the L-function pages for Dirichlet character), but we are getting errors in flasklog triggered by robots trying to visit pages like: http://www.lmfdb.org/L/Character/Dirichlet/103/85/?download=lcalcfil...
[ { "content": "# Contains code for constructing and parsing lcalc files\n\nimport math\nimport time # for printing the date on an lcalc file\nimport socket # for printing the machine used to generate the lcalc file\nfrom sage.all import Infinity, imag_part, real_part\nfrom Lfunctionutilities import splitcoeff,...
[ { "content": "# Contains code for constructing and parsing lcalc files\n\nimport math\nimport time # for printing the date on an lcalc file\nimport socket # for printing the machine used to generate the lcalc file\nfrom sage.all import Infinity, imag_part, real_part\nfrom Lfunctionutilities import splitcoeff,...
diff --git a/lmfdb/lfunctions/LfunctionLcalc.py b/lmfdb/lfunctions/LfunctionLcalc.py index 351a2f0140..fc203ac54e 100644 --- a/lmfdb/lfunctions/LfunctionLcalc.py +++ b/lmfdb/lfunctions/LfunctionLcalc.py @@ -8,16 +8,14 @@ def parse_complex_number(z): - """convert a string representing a complex number to another...
kivy__python-for-android-618
Jpeg recipe is broken It is missing /home/brussee/.local/lib/python2.7/site-packages/pythonforandroid/recipes/jpeg/Application.mk Perpaps just the path is incorrect? ``` [INFO]: Prebuilding jpeg for armeabi [INFO]: jpeg has no prebuild_armeabi, skipping [DEBUG]: -> running cp /home/brussee/.local/lib/python2.7...
[ { "content": "\nfrom setuptools import setup, find_packages\nfrom os import walk\nfrom os.path import join, dirname, sep\nimport os\nimport glob\n\n# NOTE: All package data should also be set in MANIFEST.in\n\npackages = find_packages()\n\npackage_data = {'': ['*.tmpl',\n '*.patch', ], }\n\n...
[ { "content": "\nfrom setuptools import setup, find_packages\nfrom os import walk\nfrom os.path import join, dirname, sep\nimport os\nimport glob\n\n# NOTE: All package data should also be set in MANIFEST.in\n\npackages = find_packages()\n\npackage_data = {'': ['*.tmpl',\n '*.patch', ], }\n\n...
diff --git a/setup.py b/setup.py index 9e015345f2..1947854c03 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,8 @@ def recursively_include(results, directory, patterns): results[directory].append(join(*filename.split(sep)[1:])) recursively_include(package_data, 'pythonforandroid/recipes', - ...
holoviz__holoviews-5400
Multiple display calls of vectorfield changes its own magnitude data # ALL software version info ``` hv version '1.14.9' IPython : 8.2.0 ipykernel : 6.13.0 ipywidgets : 7.7.0 jupyter_client : 7.2.2 jupyter_core : 4.9.2 jupyter_ser...
[ { "content": "from collections import defaultdict\n\nimport numpy as np\nimport param\n\nfrom bokeh.models import (\n CategoricalColorMapper, CustomJS, FactorRange, Range1d, Whisker\n)\nfrom bokeh.models.tools import BoxSelectTool\nfrom bokeh.transform import jitter\n\nfrom ...core.data import Dataset\nfrom ...
[ { "content": "from collections import defaultdict\n\nimport numpy as np\nimport param\n\nfrom bokeh.models import (\n CategoricalColorMapper, CustomJS, FactorRange, Range1d, Whisker\n)\nfrom bokeh.models.tools import BoxSelectTool\nfrom bokeh.transform import jitter\n\nfrom ...core.data import Dataset\nfrom ...
diff --git a/holoviews/plotting/bokeh/chart.py b/holoviews/plotting/bokeh/chart.py index 6eaca9fb0e..1c5481179b 100644 --- a/holoviews/plotting/bokeh/chart.py +++ b/holoviews/plotting/bokeh/chart.py @@ -256,12 +256,12 @@ def _get_lengths(self, element, ranges): magnitudes = magnitudes / max_magnitu...
pandas-dev__pandas-26839
pd.Timedelta.resolution is different from datetime.timedelta.resolution `timedelta.resolution` is documented as: > The smallest possible difference between non-equal timedelta objects, timedelta(microseconds=1). while `pandas.Timedelta.resolution` is doc-string'd as: >return a string representing the lowest resolu...
[ { "content": "\"\"\" implement the TimedeltaIndex \"\"\"\nfrom datetime import datetime\nimport warnings\n\nimport numpy as np\n\nfrom pandas._libs import (\n NaT, Timedelta, index as libindex, join as libjoin, lib)\nfrom pandas.util._decorators import Appender, Substitution\n\nfrom pandas.core.dtypes.common...
[ { "content": "\"\"\" implement the TimedeltaIndex \"\"\"\nfrom datetime import datetime\nimport warnings\n\nimport numpy as np\n\nfrom pandas._libs import (\n NaT, Timedelta, index as libindex, join as libjoin, lib)\nfrom pandas.util._decorators import Appender, Substitution\n\nfrom pandas.core.dtypes.common...
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index fd47ca14dc788..d3851662c34ec 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -501,7 +501,7 @@ Other Deprecations Use the public attributes :attr:`~RangeIndex.start`, :attr:`~RangeIndex.stop` and...
mindsdb__mindsdb-2007
Response contains 'nan' instead of `null` if do ``` select null, null, null from information_schema.tables limit 1; ``` then response will be: ``` +------+--------+--------+ | None | None_2 | None_3 | +------+--------+--------+ | nan | nan | nan | +------+--------+--------+ ``` row values must be `n...
[ { "content": "import duckdb\nimport pandas as pd\nfrom mindsdb_sql import parse_sql\nfrom mindsdb_sql.parser.ast import Select, Identifier, BinaryOperation, OrderBy\nfrom mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender\n\nfrom mindsdb.utilities.log import log\n\n\ndef _remove_table_name(root):\n ...
[ { "content": "import duckdb\nimport numpy as np\nfrom mindsdb_sql import parse_sql\nfrom mindsdb_sql.parser.ast import Select, Identifier, BinaryOperation, OrderBy\nfrom mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender\n\nfrom mindsdb.utilities.log import log\n\n\ndef _remove_table_name(root):\n ...
diff --git a/mindsdb/api/mysql/mysql_proxy/utilities/sql.py b/mindsdb/api/mysql/mysql_proxy/utilities/sql.py index dfbbe51f8c1..e50c099318e 100644 --- a/mindsdb/api/mysql/mysql_proxy/utilities/sql.py +++ b/mindsdb/api/mysql/mysql_proxy/utilities/sql.py @@ -1,5 +1,5 @@ import duckdb -import pandas as pd +import numpy a...
vllm-project__vllm-2581
Unable to build docker image on machines without GPU Hello all, I tried to build the ROCM docker image on a machine without GPU, but I met the problem: > Traceback (most recent call last): File "/var/lib/jenkins/vllm/setup.py", line 207, in <module> amd_arch = get_amdgpu_offload_arch() File "/var/l...
[ { "content": "import contextlib\nimport io\nimport os\nimport re\nimport subprocess\nimport warnings\nfrom pathlib import Path\nfrom typing import List, Set\n\nfrom packaging.version import parse, Version\nimport setuptools\nimport torch\nimport torch.utils.cpp_extension as torch_cpp_ext\nfrom torch.utils.cpp_e...
[ { "content": "import contextlib\nimport io\nimport os\nimport re\nimport subprocess\nimport warnings\nfrom pathlib import Path\nfrom typing import List, Set\n\nfrom packaging.version import parse, Version\nimport setuptools\nimport torch\nimport torch.utils.cpp_extension as torch_cpp_ext\nfrom torch.utils.cpp_e...
diff --git a/setup.py b/setup.py index 3baf27aa865..d742bdfc1e0 100644 --- a/setup.py +++ b/setup.py @@ -282,11 +282,15 @@ def get_torch_arch_list() -> Set[str]: }, )) elif _is_hip(): - amd_arch = get_amdgpu_offload_arch() - if amd_arch not in ROCM_SUPPORTED_ARCHS: - raise Ru...
yt-dlp__yt-dlp-6034
DRTV download failed ### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE - [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field ### Checklist - [X] I'm reporting a bug unrelated to a specific site - [X] I've verified that I'm running yt-dlp version **2023.01.06** ([update instructions](http...
[ { "content": "import binascii\nimport hashlib\nimport re\n\nfrom .common import InfoExtractor\nfrom ..aes import aes_cbc_decrypt_bytes, unpad_pkcs7\nfrom ..compat import compat_urllib_parse_unquote\nfrom ..utils import (\n ExtractorError,\n float_or_none,\n int_or_none,\n mimetype2ext,\n str_or_n...
[ { "content": "import binascii\nimport hashlib\nimport re\n\nfrom .common import InfoExtractor\nfrom ..aes import aes_cbc_decrypt_bytes, unpad_pkcs7\nfrom ..compat import compat_urllib_parse_unquote\nfrom ..utils import (\n ExtractorError,\n float_or_none,\n int_or_none,\n mimetype2ext,\n str_or_n...
diff --git a/yt_dlp/extractor/drtv.py b/yt_dlp/extractor/drtv.py index d3e197551d93..470546bbcda4 100644 --- a/yt_dlp/extractor/drtv.py +++ b/yt_dlp/extractor/drtv.py @@ -184,9 +184,10 @@ def _real_extract(self, url): data = self._download_json( programcard_url, video_id, 'Downloading video JSON',...
pypa__pip-12173
23.2: Unable to add zsh completion as documented ### Description Attempting to follow the steps in the [documentation for adding zsh shell completion](https://pip.pypa.io/en/stable/user_guide/#command-completion) raises an error regarding the use of `compadd` outside of a completion function. This seems to be new wi...
[ { "content": "import sys\nimport textwrap\nfrom optparse import Values\nfrom typing import List\n\nfrom pip._internal.cli.base_command import Command\nfrom pip._internal.cli.status_codes import SUCCESS\nfrom pip._internal.utils.misc import get_prog\n\nBASE_COMPLETION = \"\"\"\n# pip {shell} completion start{scr...
[ { "content": "import sys\nimport textwrap\nfrom optparse import Values\nfrom typing import List\n\nfrom pip._internal.cli.base_command import Command\nfrom pip._internal.cli.status_codes import SUCCESS\nfrom pip._internal.utils.misc import get_prog\n\nBASE_COMPLETION = \"\"\"\n# pip {shell} completion start{scr...
diff --git a/news/12166.bugfix.rst b/news/12166.bugfix.rst new file mode 100644 index 00000000000..491597c7f1a --- /dev/null +++ b/news/12166.bugfix.rst @@ -0,0 +1 @@ +Fix completion script for zsh diff --git a/src/pip/_internal/commands/completion.py b/src/pip/_internal/commands/completion.py index 30233fc7ad2..9e89e2...
nf-core__tools-1964
nf-core modules install is asking for two files ### Description of the bug nf-core modules install is asking for two files: main.nf and nextflow.config. I think this is not necessary, since one can use a different naming convention for both files. https://github.com/nf-core/modules/issues/2272 I think this can b...
[ { "content": "import logging\nimport os\nimport shutil\nfrom pathlib import Path\n\nimport yaml\n\nimport nf_core.modules.module_utils\nimport nf_core.utils\n\nfrom .modules_json import ModulesJson\nfrom .modules_repo import ModulesRepo\n\nlog = logging.getLogger(__name__)\n\n\nclass ModuleCommand:\n \"\"\"\...
[ { "content": "import logging\nimport os\nimport shutil\nfrom pathlib import Path\n\nimport yaml\n\nimport nf_core.modules.module_utils\nimport nf_core.utils\n\nfrom .modules_json import ModulesJson\nfrom .modules_repo import ModulesRepo\n\nlog = logging.getLogger(__name__)\n\n\nclass ModuleCommand:\n \"\"\"\...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 89ffec54be..d94953c51d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - Improve test coverage of sync.py - `check_up_to_date()` function from `modules_json` also checks for subworkflows. - The default branch can now be specified when creating a new pipel...
django__channels-378
request.META['SERVER_PORT'] should be a string (?) Found while debugging an issue with Opbeat: https://github.com/opbeat/opbeat_python/issues/131 ASGI request in django channels initialises `request.META['SERVER_PORT']` using an integer value: https://github.com/django/channels/blob/master/channels/handler.py#L68 ```...
[ { "content": "from __future__ import unicode_literals\n\nimport cgi\nimport codecs\nimport logging\nimport sys\nimport time\nimport traceback\nfrom io import BytesIO\n\nfrom django import http\nfrom django.conf import settings\nfrom django.core import signals\nfrom django.core.handlers import base\nfrom django....
[ { "content": "from __future__ import unicode_literals\n\nimport cgi\nimport codecs\nimport logging\nimport sys\nimport time\nimport traceback\nfrom io import BytesIO\n\nfrom django import http\nfrom django.conf import settings\nfrom django.core import signals\nfrom django.core.handlers import base\nfrom django....
diff --git a/channels/handler.py b/channels/handler.py index 50159026a..62922bfb4 100644 --- a/channels/handler.py +++ b/channels/handler.py @@ -66,7 +66,7 @@ def __init__(self, message): self.META['REMOTE_PORT'] = self.message['client'][1] if self.message.get('server', None): self.ME...
ros__ros_comm-1885
Allow empty machine attribute Allowing empty machine attribute of node tag would help to make a launch-files with optional machine argument. An example: ``` <arg name="machine" default=""/> <node name="some_name" pkg="some_pkg" type="some_type" machine="$(arg machine)"/> ```
[ { "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/xmlloader.py b/tools/roslaunch/src/roslaunch/xmlloader.py index ac0820de76..f6bf85e087 100644 --- a/tools/roslaunch/src/roslaunch/xmlloader.py +++ b/tools/roslaunch/src/roslaunch/xmlloader.py @@ -388,8 +388,6 @@ def _node_tag(self, tag, context, ros_config, default_machine, is...
googleapis__python-bigquery-1542
make `google-cloud-bigquery-storage>=2.6.0` the minimum version 2.6.0 makes `read_session` optional to `rows()` (used in pandas connector). BLOCKED: wait for a few versions of `google-cloud-bigquery-storage` before bumping the minimum. (TODO: I still want to figure out how long it takes people to upgrade naturall...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ { "content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
diff --git a/setup.py b/setup.py index 51cb6dc75..08106f694 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ # Keep the no-op bqstorage extra for backward compatibility. # See: https://github.com/googleapis/python-bigquery/issues/757 "bqstorage": [ - "google-cloud-bigquery-storage >= 2.0.0, ...
getnikola__nikola-1780
`check -l` can’t stomach REDIRECTIONS pages ``` REDIRECTIONS = [ ( "test.html", "/index.html" ) ] WARNING: check: Broken link in output/test.html: 0; url=/index.html WARNING: check: Broken link in output/test.html: /index.html ```
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2015 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2015 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
diff --git a/nikola/plugins/command/check.py b/nikola/plugins/command/check.py index 8ab112bf70..f7bc6f9780 100644 --- a/nikola/plugins/command/check.py +++ b/nikola/plugins/command/check.py @@ -238,7 +238,7 @@ def analyze(self, fname, find_sources=False, check_remote=False): if url_type == 'rel_path':...
Cloud-CV__EvalAI-1326
Remove Stderr file for the successful submissions ## Observed behavior Currently when there is a successful submission, then also a `stderr_file` is created for that submission which leads to the creation of a blank file that is of no use and adds a small overhead in processing the successful submissions. ## Expe...
[ { "content": "from __future__ import absolute_import\nimport contextlib\nimport django\nimport importlib\nimport logging\nimport os\nimport pika\nimport requests\nimport shutil\nimport socket\nimport sys\nimport tempfile\nimport traceback\nimport yaml\nimport zipfile\n\nfrom os.path import dirname, join\n\nfrom...
[ { "content": "from __future__ import absolute_import\nimport contextlib\nimport django\nimport importlib\nimport logging\nimport os\nimport pika\nimport requests\nimport shutil\nimport socket\nimport sys\nimport tempfile\nimport traceback\nimport yaml\nimport zipfile\n\nfrom os.path import dirname, join\n\nfrom...
diff --git a/scripts/workers/submission_worker.py b/scripts/workers/submission_worker.py index 61208eeab0..1c45edfd3a 100644 --- a/scripts/workers/submission_worker.py +++ b/scripts/workers/submission_worker.py @@ -400,9 +400,10 @@ def run_submission(challenge_id, challenge_phase, submission_id, submission, use wi...
cocotb__cocotb-3223
Improve support for assertion rewriting regardles of test name The pull request #3011 added this support. The following lines, written by @ktbarrett, force assertion rewriting of python modules listed in the `MODULE` env variable : https://github.com/cocotb/cocotb/blob/4b5b80eb409c6f7e2a816784fe1086c785fb928f/cocot...
[ { "content": "# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistribut...
[ { "content": "# Copyright (c) 2013, 2018 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistribut...
diff --git a/cocotb/regression.py b/cocotb/regression.py index 7e0067b6f0..40540202b2 100644 --- a/cocotb/regression.py +++ b/cocotb/regression.py @@ -250,11 +250,8 @@ def _setup_pytest_assertion_rewriting(cls, test_modules: Iterable[str]) -> None: from _pytest.assertion import install_importhook ...
django-json-api__django-rest-framework-json-api-141
Including data fails on lists If the inclusion parameter is used in retrieving a list of models, every relation is only considered once (utils.py line 417 removes the relation once) ``` python try: included_resources.remove(field_name) new_included_resources = [key.replace('%s.' % field...
[ { "content": "\"\"\"\nUtils.\n\"\"\"\nimport copy\nimport inflection\nfrom django.conf import settings\nfrom django.utils import six, encoding\nfrom django.utils.translation import ugettext_lazy as _\nfrom rest_framework.compat import OrderedDict\nfrom rest_framework.serializers import BaseSerializer, ListSeria...
[ { "content": "\"\"\"\nUtils.\n\"\"\"\nimport copy\n\nimport inflection\nfrom django.conf import settings\nfrom django.utils import six, encoding\nfrom django.utils.translation import ugettext_lazy as _\nfrom rest_framework.compat import OrderedDict\nfrom rest_framework.serializers import BaseSerializer, ListSer...
diff --git a/example/tests/integration/test_includes.py b/example/tests/integration/test_includes.py index 3284c79b..d7f6f6d1 100644 --- a/example/tests/integration/test_includes.py +++ b/example/tests/integration/test_includes.py @@ -1,20 +1,29 @@ -import pytest, json +import pytest from django.core.urlresolvers impo...
graspologic-org__graspologic-965
Fix to repeated compilation of numba - [x] Does this PR have a descriptive title that could go in our release notes? - [ ] Does this PR add any new dependencies? - [ ] Does this PR modify any existing APIs? - [ ] Is the change to the API backwards compatible? - [ ] Have you built the documentation (reference and...
[ { "content": "from typing import Optional\n\nimport numba as nb\nimport numpy as np\nfrom beartype import beartype\nfrom scipy.sparse import csr_matrix, lil_matrix\nfrom sklearn.utils import check_scalar\n\nfrom graspologic.preconditions import check_argument\nfrom graspologic.types import AdjacencyMatrix, Tupl...
[ { "content": "from typing import Optional\n\nimport numba as nb\nimport numpy as np\nfrom beartype import beartype\nfrom scipy.sparse import csr_matrix, lil_matrix\nfrom sklearn.utils import check_scalar\n\nfrom graspologic.preconditions import check_argument\nfrom graspologic.types import AdjacencyMatrix, Tupl...
diff --git a/graspologic/models/edge_swaps.py b/graspologic/models/edge_swaps.py index a147517f1..01e62ed19 100644 --- a/graspologic/models/edge_swaps.py +++ b/graspologic/models/edge_swaps.py @@ -73,7 +73,7 @@ def __init__(self, adjacency: AdjacencyMatrix, seed: Optional[int] = None): else: # for...
streamlit__streamlit-7256
pydeck_chart: Error (not a valid JSON) when data contains NaN ### Checklist - [X] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar issues. - [X] I added a very descriptive title to this issue. - [X] I have provided sufficient information below to help reproduce this ...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/e2e/scripts/st_pydeck_chart.py b/e2e/scripts/st_pydeck_chart.py index c1632225da7b..1d7c0312e6fe 100644 --- a/e2e/scripts/st_pydeck_chart.py +++ b/e2e/scripts/st_pydeck_chart.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +imp...
scrapy__scrapy-6099
Deprecate Reppy support https://github.com/scrapy/scrapy/issues/5226#issuecomment-897621867
[ { "content": "import logging\nimport sys\nfrom abc import ABCMeta, abstractmethod\n\nfrom scrapy.utils.python import to_unicode\n\nlogger = logging.getLogger(__name__)\n\n\ndef decode_robotstxt(robotstxt_body, spider, to_native_str_type=False):\n try:\n if to_native_str_type:\n robotstxt_bo...
[ { "content": "import logging\nimport sys\nfrom abc import ABCMeta, abstractmethod\nfrom warnings import warn\n\nfrom scrapy.exceptions import ScrapyDeprecationWarning\nfrom scrapy.utils.python import to_unicode\n\nlogger = logging.getLogger(__name__)\n\n\ndef decode_robotstxt(robotstxt_body, spider, to_native_s...
diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst index a8e5b23bf92..1abbc49684f 100644 --- a/docs/topics/downloader-middleware.rst +++ b/docs/topics/downloader-middleware.rst @@ -1039,8 +1039,8 @@ RobotsTxtMiddleware * :ref:`Protego <protego-parser>` (default) * :re...
google__jax-15520
OverflowError on assignment of valid value to uint32 array ### Description ```python import jax.numpy as jnp a = jnp.zeros((1), dtype=jnp.uint32) val = 2**32 - 1 # val and its uint32 representation are identical print(val, jnp.uint32(val)) # assignment works with an explicit cast to uint32 b = a.at[1].set(jnp...
[ { "content": "# Copyright 2019 The JAX Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2019 The JAX Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/jax/_src/ops/scatter.py b/jax/_src/ops/scatter.py index b3e70793373f..a98f3e7204ea 100644 --- a/jax/_src/ops/scatter.py +++ b/jax/_src/ops/scatter.py @@ -64,9 +64,13 @@ def _scatter_update(x, idx, y, scatter_op, indices_are_sorted, Returns: An ndarray representing an updated `x` after performing th...
pydantic__pydantic-1446
Const validation applied before type validation/parsing # Question Output of `python -c "import pydantic.utils; print(pydantic.utils.version_info())"`: ``` pydantic version: 1.5 pydantic compiled: False install path: D:\dev\github\pydantic\issues\.venv\Lib\site-packages\...
[ { "content": "import warnings\nfrom collections.abc import Iterable as CollectionsIterable\nfrom copy import deepcopy\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n FrozenSet,\n Generator,\n Iterable,\n Iterator,\n List,\n Mapping,\n Optional,\n Pattern,\n Sequence,\...
[ { "content": "import warnings\nfrom collections.abc import Iterable as CollectionsIterable\nfrom copy import deepcopy\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Dict,\n FrozenSet,\n Generator,\n Iterable,\n Iterator,\n List,\n Mapping,\n Optional,\n Pattern,\n Sequence,\...
diff --git a/changes/1410-selimb.md b/changes/1410-selimb.md new file mode 100644 index 00000000000..3768cf770c4 --- /dev/null +++ b/changes/1410-selimb.md @@ -0,0 +1 @@ +Move `const` validator to post-validators so it validates the parsed value diff --git a/docs/usage/schema.md b/docs/usage/schema.md index 02ba8e0c492...
Chia-Network__chia-blockchain-12326
Loading plots randomly rather than in order ### What happened? Upgraded from 1.3.4 to 1.3.5 and when loading plots it randomly finds them all over the place rather than in order? i.e should be disk 1 plot 1 to 100 disk 2 plot 1 to 100 and so on but its disk 10 plot 45 disk 3 plot 67 disk 12 plot 4 ...
[ { "content": "import logging\nimport threading\nimport time\nimport traceback\nfrom concurrent.futures.thread import ThreadPoolExecutor\nfrom pathlib import Path\nfrom typing import Any, Callable, Dict, List, Optional, Set, Tuple\n\nfrom blspy import G1Element\nfrom chiapos import DiskProver\n\nfrom chia.consen...
[ { "content": "import logging\nimport threading\nimport time\nimport traceback\nfrom concurrent.futures.thread import ThreadPoolExecutor\nfrom pathlib import Path\nfrom typing import Any, Callable, Dict, List, Optional, Set, Tuple\n\nfrom blspy import G1Element\nfrom chiapos import DiskProver\n\nfrom chia.consen...
diff --git a/chia/plotting/manager.py b/chia/plotting/manager.py index 6539634ded00..0ab02c6d8c54 100644 --- a/chia/plotting/manager.py +++ b/chia/plotting/manager.py @@ -178,7 +178,7 @@ def _refresh_task(self, sleep_interval_ms: int): for filename in filenames_to_remove: del self....
PaddlePaddle__PaddleNLP-1416
fix perf and sample code <!-- Demo: https://github.com/PaddlePaddle/PaddleNLP/pull/26 --> ### PR types <!-- One of [ New features | Bug fixes | Function optimization | Performance optimization | Breaking changes | Others ] --> Others ### PR changes <!-- One of [ Models | APIs | Docs | Others ] --> APIs ### Descr...
[ { "content": "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
[ { "content": "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2....
diff --git a/examples/language_model/gpt/faster_gpt/export_model.py b/examples/language_model/gpt/faster_gpt/export_model.py index 4671fc4e85b2..dfac460ffe01 100644 --- a/examples/language_model/gpt/faster_gpt/export_model.py +++ b/examples/language_model/gpt/faster_gpt/export_model.py @@ -119,6 +119,7 @@ def do_predic...
streamlit__streamlit-1558
st.file_uploader returns 400 error for files above 100MB # Summary When uploading a video file larger than 100MB or so, the `st.file_uploader` widget throws a 400 error. This is unrelated to using `server.maxUploadSize`. # Steps to reproduce What are the steps we should take to reproduce the bug: ```python ...
[ { "content": "# Copyright 2018-2020 Streamlit 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 a...
[ { "content": "# Copyright 2018-2020 Streamlit 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 a...
diff --git a/lib/streamlit/server/Server.py b/lib/streamlit/server/Server.py index 8b4f9fc2c9e4..586ab6bc4e5b 100644 --- a/lib/streamlit/server/Server.py +++ b/lib/streamlit/server/Server.py @@ -121,13 +121,17 @@ def start_listening(app): """ call_count = 0 + http_server = tornado.httpserver.HTTPServer( ...
openvinotoolkit__datumaro-278
Test errors after tensorflow installation on Ubuntu 20.04 Ubuntu20.04, Python 3.8.5 Installation of tensorflow (to enable skipped tests) results with tests errors. **Steps to reproduce:** ``` git clone https://github.com/openvinotoolkit/datumaro cd datumaro python3 -m pip install virtualenv python3 -m virtua...
[ { "content": "\n# Copyright (C) 2019-2020 Intel Corporation\n#\n# SPDX-License-Identifier: MIT\n\nfrom distutils.util import strtobool\nimport os\nimport os.path as osp\nimport re\nimport setuptools\n\n# Snyk scan integration\nhere = None\n\n\ndef find_version(project_dir=None):\n if not project_dir:\n ...
[ { "content": "\n# Copyright (C) 2019-2020 Intel Corporation\n#\n# SPDX-License-Identifier: MIT\n\nfrom distutils.util import strtobool\nimport os\nimport os.path as osp\nimport re\nimport setuptools\n\n# Snyk scan integration\nhere = None\n\n\ndef find_version(project_dir=None):\n if not project_dir:\n ...
diff --git a/requirements.txt b/requirements.txt index c067c3b3e2..b5490d77d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ lxml>=4.4.1 matplotlib>=3.3.1 opencv-python-headless>=4.1.0.25 Pillow>=6.1.0 -pycocotools>=2.0.0 +pycocotools>=2.0.0 --no-binary=pycocotools # https://github.com/openvino...
digitalfabrik__integreat-cms-2433
Repair tree is breaking ### Describe the Bug <!-- A clear and concise description of what the bug is. --> ### Steps to Reproduce 1. Run `integreat-cms-cli repair_tree` on a tree ### Expected Behavior Should never break ### Actual Behavior <!-- A clear and concise description of what actually happened....
[ { "content": "import logging\n\nfrom django.core.management.base import CommandError\n\nfrom ....cms.models import Page\nfrom ..log_command import LogCommand\n\nlogger = logging.getLogger(__name__)\n\n\nclass Command(LogCommand):\n \"\"\"\n Management command to repair a broken Treebeard page tree\n \"...
[ { "content": "import logging\n\nfrom django.core.management.base import CommandError\n\nfrom ....cms.models import Page\nfrom ..log_command import LogCommand\n\nlogger = logging.getLogger(__name__)\n\n\nclass Command(LogCommand):\n \"\"\"\n Management command to repair a broken Treebeard page tree\n \"...
diff --git a/integreat_cms/core/management/commands/repair_tree.py b/integreat_cms/core/management/commands/repair_tree.py index e07d11e987..b89a3b1175 100644 --- a/integreat_cms/core/management/commands/repair_tree.py +++ b/integreat_cms/core/management/commands/repair_tree.py @@ -131,10 +131,9 @@ def check_for_orphan...
lutris__lutris-2955
PCSX2 Runner: Add config path/file options (Feature request) It would be nice to have a way to specify a config file as for example some games run better with a multi-threaded microVU than others. It would also enable to have different window sizes set for those seeking square pixels as some NTSC games run at 640x448 a...
[ { "content": "# Standard Library\nfrom gettext import gettext as _\n\n# Lutris Modules\nfrom lutris.runners.runner import Runner\nfrom lutris.util import system\n\n\nclass pcsx2(Runner):\n human_name = _(\"PCSX2\")\n description = _(\"PlayStation 2 emulator\")\n platforms = [_(\"Sony PlayStation 2\")]\...
[ { "content": "# Standard Library\nfrom gettext import gettext as _\n\n# Lutris Modules\nfrom lutris.runners.runner import Runner\nfrom lutris.util import system\n\n\nclass pcsx2(Runner):\n human_name = _(\"PCSX2\")\n description = _(\"PlayStation 2 emulator\")\n platforms = [_(\"Sony PlayStation 2\")]\...
diff --git a/lutris/runners/pcsx2.py b/lutris/runners/pcsx2.py index e7a4a0d2e9..c8068792c1 100644 --- a/lutris/runners/pcsx2.py +++ b/lutris/runners/pcsx2.py @@ -62,9 +62,9 @@ def play(self): if self.runner_config.get("nogui"): arguments.append("--nogui") if self.runner_config.get("confi...
Chia-Network__chia-blockchain-11508
Loading plots randomly rather than in order ### What happened? Upgraded from 1.3.4 to 1.3.5 and when loading plots it randomly finds them all over the place rather than in order? i.e should be disk 1 plot 1 to 100 disk 2 plot 1 to 100 and so on but its disk 10 plot 45 disk 3 plot 67 disk 12 plot 4 ...
[ { "content": "import logging\nimport threading\nimport time\nimport traceback\nfrom concurrent.futures.thread import ThreadPoolExecutor\nfrom pathlib import Path\nfrom typing import Any, Callable, Dict, List, Optional, Set, Tuple\n\nfrom blspy import G1Element\nfrom chiapos import DiskProver\n\nfrom chia.consen...
[ { "content": "import logging\nimport threading\nimport time\nimport traceback\nfrom concurrent.futures.thread import ThreadPoolExecutor\nfrom pathlib import Path\nfrom typing import Any, Callable, Dict, List, Optional, Set, Tuple\n\nfrom blspy import G1Element\nfrom chiapos import DiskProver\n\nfrom chia.consen...
diff --git a/chia/plotting/manager.py b/chia/plotting/manager.py index 6539634ded00..0ab02c6d8c54 100644 --- a/chia/plotting/manager.py +++ b/chia/plotting/manager.py @@ -178,7 +178,7 @@ def _refresh_task(self, sleep_interval_ms: int): for filename in filenames_to_remove: del self....
readthedocs__readthedocs.org-3427
links to github are broken ## Details * Project URL: sequana.readthedocs, bioservices.readthedocs, bioconvert.readtheodocs and more * Build URL (if applicable): http://sequana.readthedocs.io/en/master/ * Read the Docs username (if applicable): cokelaer ## Expected Result link should work (there were workin...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Models for the builds app.\"\"\"\n\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport logging\nimport os.path\nimport re\nfrom builtins import object\nfrom shutil import rmtree\n\nfrom django.conf import settings\nfr...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Models for the builds app.\"\"\"\n\nfrom __future__ import (\n absolute_import, division, print_function, unicode_literals)\n\nimport logging\nimport os.path\nimport re\nfrom builtins import object\nfrom shutil import rmtree\n\nfrom django.conf import settings\nfr...
diff --git a/.flake8 b/.flake8 index 319e43e8d6d..8ff3a7c121f 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,3 @@ [flake8] -ignore = E125,D100,D101,D102,D103,D105,D106,D107,D200,D202,D211,P101,FI15,FI16,FI12,FI11,FI17,FI50,FI53,FI54,MQ101,T000 +ignore = E125,D100,D101,D102,D103,D105,D106,D107,D200,D202,D211,D403,P101,F...
ansible__molecule-2170
Molecule 2.22rc3: Vagrant driver regression <!--- Verify first that your issue is not already reported on GitHub --> <!--- Please also check https://molecule.readthedocs.io/en/latest/faq.html ---> <!--- Please use https://groups.google.com/forum/#!forum/molecule-users for usage questions --> # Issue Type - Bug ...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
[ { "content": "# Copyright (c) 2015-2018 Cisco Systems, Inc.\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\n# deal in the Software without restriction, including without limitation the\n# right...
diff --git a/molecule/config.py b/molecule/config.py index 4c4696f48d..d7b99f7be5 100644 --- a/molecule/config.py +++ b/molecule/config.py @@ -138,7 +138,7 @@ def action(self, value): @property def project_directory(self): - return os.getcwd() + return os.getenv('MOLECULE_PROJECT_DIRECTORY', o...
bokeh__bokeh-5477
plot is empty when log scale is used Bokeh incorrectly creates an empty plot with the following: ``` python from bokeh.plotting import figure, output_file, show ys = [4.471799184102565e-05, 0.0009856299875536934, 0.0011045119899790734] xs = range(len(ys)) output_file("log.html") p = figure(y_axis_type="log") p.line(xs...
[ { "content": "\"\"\" Models for describing different kinds of ranges of values\nin different kinds of spaces (e.g., continuous or categorical)\nand with options for \"auto sizing\".\n\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom ..model import Model\nfrom ..core.enums import StartEnd\nfrom ..core.pro...
[ { "content": "\"\"\" Models for describing different kinds of ranges of values\nin different kinds of spaces (e.g., continuous or categorical)\nand with options for \"auto sizing\".\n\n\"\"\"\nfrom __future__ import absolute_import\n\nfrom ..model import Model\nfrom ..core.enums import StartEnd\nfrom ..core.pro...
diff --git a/bokeh/models/ranges.py b/bokeh/models/ranges.py index b9fd9cec133..5183e2f08db 100644 --- a/bokeh/models/ranges.py +++ b/bokeh/models/ranges.py @@ -115,7 +115,7 @@ class DataRange1d(DataRange): """ range_padding = Float(default=0.1, help=""" - A percentage of the total range size to add as p...
encode__uvicorn-570
Update httptools compatibility https://github.com/encode/uvicorn/issues/567
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport re\nimport sys\nimport platform\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `init.py`.\n \"\"\"\n path = os.path.join(package, '__init_...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport re\nimport sys\nimport platform\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `init.py`.\n \"\"\"\n path = os.path.join(package, '__init_...
diff --git a/setup.py b/setup.py index ec2447d55..6545cee43 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ def get_packages(package): "click==7.*", "h11>=0.8,<0.10", "websockets==8.*", - "httptools==0.0.13 ;" + env_marker, + "httptools==0.1.* ;" + env_marker, "uvloop>=0.14.0 ;" + env_m...
getmoto__moto-1030
Redshift create_cluster_subnet_group fails Here's the code: ``` from moto import mock_redshift, mock_ec2 # moto==1.0.1 - pip installed from boto3.session import Session # boto3==1.3.0 - pip installed @mock_ec2 @mock_redshift def test_add_redshift_cluster_subnet_group(): ec2_client = Session().cli...
[ { "content": "from __future__ import unicode_literals\n\nimport json\nimport dicttoxml\n\nfrom moto.core.responses import BaseResponse\nfrom .models import redshift_backends\n\n\nclass RedshiftResponse(BaseResponse):\n\n @property\n def redshift_backend(self):\n return redshift_backends[self.region...
[ { "content": "from __future__ import unicode_literals\n\nimport json\nimport dicttoxml\n\nfrom moto.core.responses import BaseResponse\nfrom .models import redshift_backends\n\n\nclass RedshiftResponse(BaseResponse):\n\n @property\n def redshift_backend(self):\n return redshift_backends[self.region...
diff --git a/moto/redshift/responses.py b/moto/redshift/responses.py index ba28b134358e..48f113cf2f54 100644 --- a/moto/redshift/responses.py +++ b/moto/redshift/responses.py @@ -122,6 +122,10 @@ def create_cluster_subnet_group(self): cluster_subnet_group_name = self._get_param('ClusterSubnetGroupName') ...
litestar-org__litestar-1850
Refactor: Reorganise test suite Our test suite has grown with the project, but as a result has become a bit disorganised in quite a few places. It should be refactored in a way that structures it in a more consistent and logical way.
[ { "content": "import logging\nimport os\nfrom typing import Generator\n\nimport pytest\n\n\n@pytest.fixture()\ndef reset_httpx_logging() -> Generator[None, None, None]:\n # ensure that httpx logging is not interfering with our test client\n httpx_logger = logging.getLogger(\"httpx\")\n initial_level = ...
[ { "content": null, "path": "docs/examples/conftest.py" } ]
null
django-extensions__django-extensions-517
reset_db breaks with PostGIS without a template_postgis https://github.com/django-extensions/django-extensions/blob/73376f3e246c2523b9929c48eb74c9a7ad6788ce/django_extensions/management/commands/reset_db.py#L146 assumes that a template database exists, and is called `template_postgis`. Both assumptions are bad, as the ...
[ { "content": "\"\"\"\noriginally from http://www.djangosnippets.org/snippets/828/ by dnordberg\n\"\"\"\nimport logging\nfrom optparse import make_option\n\nfrom django.conf import settings\nfrom django.core.management.base import CommandError, BaseCommand\nfrom six.moves import input\n\n\nclass Command(BaseComm...
[ { "content": "\"\"\"\noriginally from http://www.djangosnippets.org/snippets/828/ by dnordberg\n\"\"\"\nimport logging\nfrom optparse import make_option\n\nfrom django.conf import settings\nfrom django.core.management.base import CommandError, BaseCommand\nfrom six.moves import input\n\n\nclass Command(BaseComm...
diff --git a/django_extensions/management/commands/reset_db.py b/django_extensions/management/commands/reset_db.py index df96d5a64..a493e6fa7 100644 --- a/django_extensions/management/commands/reset_db.py +++ b/django_extensions/management/commands/reset_db.py @@ -143,7 +143,11 @@ def handle(self, *args, **options): ...
opensearch-project__opensearch-build-569
Remove `integtest.sh` from all plugin repos The [integtest.sh](https://github.com/opensearch-project/opensearch-build/blob/main/bundle-workflow/scripts/default/integtest.sh) tool contains the logic to run integration tests for a plugin. This logic is mostly common across most plugins, so it has been moved to `opensearc...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\n\nclass ScriptFinder:\n class ScriptNotFoundError(Exception):\n def __init__...
[ { "content": "# SPDX-License-Identifier: Apache-2.0\n#\n# The OpenSearch Contributors require contributions made to\n# this file be licensed under the Apache-2.0 license or a\n# compatible open source license.\n\nimport os\n\n\nclass ScriptFinder:\n class ScriptNotFoundError(Exception):\n def __init__...
diff --git a/bundle-workflow/src/paths/script_finder.py b/bundle-workflow/src/paths/script_finder.py index b1f3167e47..8fc00d8921 100644 --- a/bundle-workflow/src/paths/script_finder.py +++ b/bundle-workflow/src/paths/script_finder.py @@ -64,9 +64,8 @@ def find_build_script(cls, component_name, git_dir): @classmet...
liqd__a4-opin-1158
dashboard styling: spacing when entering the first information of project We also need more space between texts, boxes and bottons on the page where I add the first information for a project. ![screen shot 2018-03-01 at 11 44 37](https://user-images.githubusercontent.com/15954895/36840771-7a54da9a-1d46-11e8-9887-3a7...
[ { "content": "from django import forms\n\nfrom adhocracy4.projects.models import Project\nfrom euth.users.fields import UserSearchField\n\n\nclass AddModeratorForm(forms.ModelForm):\n user = UserSearchField(required=False, identifier='moderators',)\n\n class Meta:\n model = Project\n fields ...
[ { "content": "from django import forms\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom adhocracy4.projects.models import Project\nfrom euth.users.fields import UserSearchField\n\n\nclass AddModeratorForm(forms.ModelForm):\n user = UserSearchField(required=False,\n i...
diff --git a/euth/projects/forms.py b/euth/projects/forms.py index 47d0958fe..23a479282 100644 --- a/euth/projects/forms.py +++ b/euth/projects/forms.py @@ -1,11 +1,17 @@ from django import forms +from django.utils.translation import ugettext_lazy as _ from adhocracy4.projects.models import Project from euth.users...
PokemonGoF__PokemonGo-Bot-1025
Bot unnecessarily walks to center of Pokestops This issue may also increase detectability since it's unlikely that users would walk to the exact center of every stop they visit. Also, most stops are spinnable from the road or other more accessible place. Once we start following roads, this will need fixed. ### Expecte...
[ { "content": "from utils import distance, format_dist\nfrom pokemongo_bot.human_behaviour import sleep\nfrom pokemongo_bot import logger\nfrom pokemongo_bot.step_walker import StepWalker\n\nclass MoveToFortWorker(object):\n def __init__(self, fort, bot):\n self.bot = bot\n self.fort = fort\n ...
[ { "content": "from utils import distance, format_dist, i2f\nfrom pokemongo_bot.human_behaviour import sleep\nfrom pokemongo_bot import logger\nfrom pokemongo_bot.step_walker import StepWalker\n\nclass MoveToFortWorker(object):\n def __init__(self, fort, bot):\n self.bot = bot\n self.fort = fort...
diff --git a/pokemongo_bot/cell_workers/move_to_fort_worker.py b/pokemongo_bot/cell_workers/move_to_fort_worker.py index 2889d74d41..58f6d10846 100644 --- a/pokemongo_bot/cell_workers/move_to_fort_worker.py +++ b/pokemongo_bot/cell_workers/move_to_fort_worker.py @@ -1,4 +1,4 @@ -from utils import distance, format_dist ...
fossasia__open-event-server-987
Scheduler: Cannot drag and drop items I tried out event: https://open-event.herokuapp.com/events/59/scheduler/
[ { "content": "from flask.ext.restplus import Resource, Namespace\nfrom sqlalchemy.orm.collections import InstrumentedList\n\nfrom open_event.models.session import Session as SessionModel\nfrom open_event.models.track import Track as TrackModel\nfrom open_event.models.microlocation import Microlocation as Microl...
[ { "content": "from flask.ext.restplus import Resource, Namespace\nfrom sqlalchemy.orm.collections import InstrumentedList\n\nfrom open_event.models.session import Session as SessionModel\nfrom open_event.models.track import Track as TrackModel\nfrom open_event.models.microlocation import Microlocation as Microl...
diff --git a/open_event/api/sessions.py b/open_event/api/sessions.py index 763b7be1f0..742e886b49 100644 --- a/open_event/api/sessions.py +++ b/open_event/api/sessions.py @@ -37,10 +37,10 @@ 'title': fields.String(required=True), 'subtitle': fields.String(), 'short_abstract': fields.String(), - 'long_...
mars-project__mars-558
[BUG] Cannot import new_client **Describe the bug** When trying to import ``new_client`` from ``mars.actors`` in Python 2.7 in Linux, a ValueError is raised: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "mars/actors/core.pyx", line 147, in mars.actors.core.new_client c...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2018 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2018 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://...
diff --git a/mars/actors/__init__.py b/mars/actors/__init__.py index a8033924fc..a24df5604a 100644 --- a/mars/actors/__init__.py +++ b/mars/actors/__init__.py @@ -14,8 +14,14 @@ # See the License for the specific language governing permissions and # limitations under the License. - from .core import create_actor_p...
zulip__zulip-28192
Update Plans and pricing icon We should update the rocket icon everywhere it shows up in the gear menu (Plans and pricing, Plan management) to: <img width="128" alt="rocket" src="https://github.com/zulip/zulip/assets/2090066/a951bc3b-1d95-4ec5-b5a2-3cf9d1ba88f4"> ![rocket](https://github.com/zulip/zulip/assets/20...
[ { "content": "import re\nfrom typing import Any, List, Match\n\nfrom markdown import Markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\nfrom typing_extensions import override\n\nfrom zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES\n\n# There is a l...
[ { "content": "import re\nfrom typing import Any, List, Match\n\nfrom markdown import Markdown\nfrom markdown.extensions import Extension\nfrom markdown.preprocessors import Preprocessor\nfrom typing_extensions import override\n\nfrom zerver.lib.markdown.priorities import PREPROCESSOR_PRIORITES\n\n# There is a l...
diff --git a/web/shared/icons/rocket.svg b/web/shared/icons/rocket.svg new file mode 100644 index 0000000000000..5eec87f2aa3ff --- /dev/null +++ b/web/shared/icons/rocket.svg @@ -0,0 +1,4 @@ +<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"> +<path d="M21.0062 2.29025e-05C2...
python-telegram-bot__python-telegram-bot-959
Payment is not working if written AFTER a conversation handler <!-- Thanks for reporting issues of python-telegram-bot! Use this template to notify us if you found a bug, or if you want to request a new feature. If you're looking for help with programming your bot using our library, feel free to ask your question...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2017\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2017\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub...
diff --git a/telegram/ext/conversationhandler.py b/telegram/ext/conversationhandler.py index a144420898b..c8589f190dc 100644 --- a/telegram/ext/conversationhandler.py +++ b/telegram/ext/conversationhandler.py @@ -206,10 +206,11 @@ def check_update(self, update): """ # Ignore messages in channels - ...
arviz-devs__arviz-1133
Add `Matplotlib` framework classifier to `setup.py` `Matplotlib` now has a [trove classifier on pypi](https://twitter.com/matplotlib/status/1235216347925286913). We can add: ```python classifiers = [ 'Framework :: Matplotlib', ] ``` to `arviz`'s `setup.py` to acknowledge that it is part of `Matplotlib` ...
[ { "content": "import codecs\nimport os\nimport re\n\nimport setuptools\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\n\n\nPROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))\nREQUIREMENTS_FILE = os.path.join(PR...
[ { "content": "import codecs\nimport os\nimport re\n\nimport setuptools\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\n\n\nPROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))\nREQUIREMENTS_FILE = os.path.join(PR...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b2bf074d13..62226f028e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ ### Deprecation ### Documentation +* Add classifier to `setup.py` including Matplotlib framework (#1133) * Image thumbs generation updated to be Bokeh 2 compatible (#1116) * Add new...
LibraryOfCongress__concordia-799
Optimize asset stats query **What behavior did you observe? Please describe the bug** Pages with progress bars / listings take a long time to load. **Additional context** See screenshot for query that needs optimization ![screenshot 2019-01-31 11 30 58_preview](https://user-images.githubusercontent.com/5270415/52...
[ { "content": "import json\nimport os\nimport re\nimport time\nfrom datetime import timedelta\nfrom functools import wraps\nfrom logging import getLogger\nfrom smtplib import SMTPException\nfrom urllib.parse import urlencode\n\nimport markdown\nfrom captcha.fields import CaptchaField\nfrom captcha.helpers import...
[ { "content": "import json\nimport os\nimport re\nimport time\nfrom datetime import timedelta\nfrom functools import wraps\nfrom logging import getLogger\nfrom smtplib import SMTPException\nfrom urllib.parse import urlencode\n\nimport markdown\nfrom captcha.fields import CaptchaField\nfrom captcha.helpers import...
diff --git a/concordia/views.py b/concordia/views.py index 0b61ca554..c9ac5f255 100644 --- a/concordia/views.py +++ b/concordia/views.py @@ -380,13 +380,9 @@ def calculate_asset_stats(asset_qs, ctx): asset_count = asset_qs.count() trans_qs = Transcription.objects.filter(asset__in=asset_qs) - ctx["contrib...
hpcaitech__ColossalAI-2164
[BUG]: The problem of running 2D, 2.5D, and 3D on vit model (related to https://github.com/hpcaitech/ColossalAI-Examples/tree/main/image/vision_transformer/hybrid_parallel) ### 🐛 Describe the bug I have the issue to run high dimensional tensor parallelism, such as 2D, 2.5D, 3D. Declaration: norm_forward(Tensor x,...
[ { "content": "#!/usr/bin/env python\n# -*- encoding: utf-8 -*-\n\nfrom typing import Optional, Tuple\n\nimport torch\nfrom torch import Tensor\nfrom torch.cuda.amp import custom_bwd, custom_fwd\n\nfrom colossalai.communication import all_gather, all_reduce, broadcast, reduce, reduce_scatter\nfrom colossalai.con...
[ { "content": "#!/usr/bin/env python\n# -*- encoding: utf-8 -*-\n\nfrom typing import Optional, Tuple\n\nimport torch\nfrom torch import Tensor\nfrom torch.cuda.amp import custom_bwd, custom_fwd\n\nfrom colossalai.communication import all_gather, all_reduce, broadcast, reduce, reduce_scatter\nfrom colossalai.con...
diff --git a/colossalai/nn/layer/parallel_3d/_operation.py b/colossalai/nn/layer/parallel_3d/_operation.py old mode 100644 new mode 100755 index 885d06e6d98d..07869e5ad4b3 --- a/colossalai/nn/layer/parallel_3d/_operation.py +++ b/colossalai/nn/layer/parallel_3d/_operation.py @@ -281,7 +281,7 @@ def vocab_parallel_class...
getmoto__moto-1576
SNS does not support new regions SNS appears to be basing its available regions off of boto2: ``` sns_backends = {} for region in boto.sns.regions(): sns_backends[region.name] = SNSBackend(region.name) ``` We will need to move this over to boto3 to support the new regional endpoints. I'm going to submit a ...
[ { "content": "from __future__ import unicode_literals\n\nimport datetime\nimport uuid\nimport json\n\nimport boto.sns\nimport requests\nimport six\nimport re\n\nfrom moto.compat import OrderedDict\nfrom moto.core import BaseBackend, BaseModel\nfrom moto.core.utils import iso_8601_datetime_with_milliseconds\nfro...
[ { "content": "from __future__ import unicode_literals\n\nimport datetime\nimport uuid\nimport json\n\nimport requests\nimport six\nimport re\n\nfrom boto3 import Session\n\nfrom moto.compat import OrderedDict\nfrom moto.core import BaseBackend, BaseModel\nfrom moto.core.utils import iso_8601_datetime_with_milli...
diff --git a/moto/sns/models.py b/moto/sns/models.py index acfbac5503c2..4423997a0d53 100644 --- a/moto/sns/models.py +++ b/moto/sns/models.py @@ -4,11 +4,12 @@ import uuid import json -import boto.sns import requests import six import re +from boto3 import Session + from moto.compat import OrderedDict from ...
qutebrowser__qutebrowser-1459
QtValueError on invalid URL when e.g. searching (due to marks) When doing `/foo` quickly after qutebrowser started and is loading a page, this happens: ``` Traceback (most recent call last): File "/home/florian/proj/qutebrowser/git/qutebrowser/commands/runners.py", line 265, in run_safely self.run(text, count) ...
[ { "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/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index 5c3a029b1c9..ccf945738c2 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -656,7 +656,13 @@ def set_mark(self, key): key: mark identifier; capital indica...