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
⌀
ansible__awx-293
LDAP Group Type documentation link broken ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME - UI ##### SUMMARY In the helptext for the LDAP Group Type documentation (Configuration -> Authentication -> Sub Category = LDAP), the following text is shown. > #### LDAP Group Type > The group type may need to ...
[ { "content": "# Python\nimport collections\nimport urlparse\n\n# Django\nfrom django.conf import settings\nfrom django.core.urlresolvers import reverse\nfrom django.utils.translation import ugettext_lazy as _\n\n# Django REST Framework\nfrom rest_framework import serializers\n\n# Tower\nfrom awx.conf import reg...
[ { "content": "# Python\nimport collections\nimport urlparse\n\n# Django\nfrom django.conf import settings\nfrom django.core.urlresolvers import reverse\nfrom django.utils.translation import ugettext_lazy as _\n\n# Django REST Framework\nfrom rest_framework import serializers\n\n# Tower\nfrom awx.conf import reg...
diff --git a/awx/sso/conf.py b/awx/sso/conf.py index e04f091851ed..3b9ac1b06320 100644 --- a/awx/sso/conf.py +++ b/awx/sso/conf.py @@ -286,7 +286,7 @@ def __call__(self): label=_('LDAP Group Type'), help_text=_('The group type may need to be changed based on the type of the ' 'LDAP server. V...
openai__gym-994
MuJoCo env Box initialization causes warnings In gym/gym/envs/mujoco/mujoco_env.py on line 46, Box object initialization is missing dtype=np.float32 parameter which causes autodetect warning spam.
[ { "content": "import os\n\nfrom gym import error, spaces\nfrom gym.utils import seeding\nimport numpy as np\nfrom os import path\nimport gym\nimport six\n\ntry:\n import mujoco_py\nexcept ImportError as e:\n raise error.DependencyNotInstalled(\"{}. (HINT: you need to install mujoco_py, and also perform th...
[ { "content": "import os\n\nfrom gym import error, spaces\nfrom gym.utils import seeding\nimport numpy as np\nfrom os import path\nimport gym\nimport six\n\ntry:\n import mujoco_py\nexcept ImportError as e:\n raise error.DependencyNotInstalled(\"{}. (HINT: you need to install mujoco_py, and also perform th...
diff --git a/gym/envs/mujoco/mujoco_env.py b/gym/envs/mujoco/mujoco_env.py index 21c35272ffb..8343146afe2 100644 --- a/gym/envs/mujoco/mujoco_env.py +++ b/gym/envs/mujoco/mujoco_env.py @@ -43,11 +43,11 @@ def __init__(self, model_path, frame_skip): bounds = self.model.actuator_ctrlrange.copy() low = b...
onnx__onnx-6117
MacOS release action is failing. ### Description (https://github.com/actions/setup-python/issues/855) ### Motivation and Context <!-- - Why is this change required? What problem does it solve? --> <!-- - If it fixes an open issue, please link to the issue here. -->
[ { "content": "# Copyright (c) ONNX Project Contributors\n#\n# SPDX-License-Identifier: Apache-2.0\n\n# NOTE: Put all metadata in pyproject.toml.\n# Set the environment variable `ONNX_PREVIEW_BUILD=1` to build the dev preview release.\nfrom __future__ import annotations\n\nimport contextlib\nimport datetime\nimp...
[ { "content": "# Copyright (c) ONNX Project Contributors\n#\n# SPDX-License-Identifier: Apache-2.0\n\n# NOTE: Put all metadata in pyproject.toml.\n# Set the environment variable `ONNX_PREVIEW_BUILD=1` to build the dev preview release.\nfrom __future__ import annotations\n\nimport contextlib\nimport datetime\nimp...
diff --git a/.github/workflows/release_mac.yml b/.github/workflows/release_mac.yml index 0a541a1633b..5def623cd0d 100644 --- a/.github/workflows/release_mac.yml +++ b/.github/workflows/release_mac.yml @@ -10,9 +10,9 @@ on: branches: [main, rel-*] workflow_dispatch: -# Use MACOSX_DEPLOYMENT_TARGET=10.15 to pro...
pyro-ppl__pyro-3250
Docs builds are failing Docs builds seem to have been failing since 1.8.5 release. We should fix this before the 1.8.6 release. https://readthedocs.org/projects/pyro-ppl/builds/20847164/ <img width="812" alt="image" src="https://github.com/pyro-ppl/pyro/assets/648532/45149fae-a72d-481a-aaf9-73262d50aa92">
[ { "content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\n\n# import pkg_resources\n\n# -*- coding: utf-8 -*-\n#\n# Pyro documentation build configuration file, created by\n# sphinx-quickstart on Thu Jun 15 17:16:1...
[ { "content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\n\n# import pkg_resources\n\n# -*- coding: utf-8 -*-\n#\n# Pyro documentation build configuration file, created by\n# sphinx-quickstart on Thu Jun 15 17:16:1...
diff --git a/docs/source/conf.py b/docs/source/conf.py index e9c4bf84b8..79efb55f68 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -164,7 +164,9 @@ # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - (master_doc, "Pyro.tex", u"Pyr...
facebookresearch__habitat-lab-71
Incorrect render() method in VectorEnv class. https://github.com/facebookresearch/habitat-api/blob/8c5329ce9f777395b45c2daac135377e629ec148/habitat/core/vector_env.py#L313-L331 In this function you send tuple ```python (args, {"mode": "rgb_array", **kwargs}) ``` However, it does not contain command index that yo...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport multiprocessing as mp\nfrom multiprocessing.connection import Connection\nfrom queue ...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport multiprocessing as mp\nfrom multiprocessing.connection import Connection\nfrom queue ...
diff --git a/habitat/core/vector_env.py b/habitat/core/vector_env.py index 4618e77c7e..74309c3b5d 100644 --- a/habitat/core/vector_env.py +++ b/habitat/core/vector_env.py @@ -316,7 +316,7 @@ def render( """Render observations from all environments in a tiled image. """ for write_fn in self._c...
googleapis__google-api-python-client-347
v1.6.1 HttpError 403 "Insufficient Permission" I happened to try updating google-api-python-client from 1.5.5 to 1.6.1. It causes my YouTube Data API v3 code to always fail with a HttpError. An example to reproduce is: from apiclient.discovery import build DEVELOPER_KEY = "<Insert key>" youtube = build...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
[ { "content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles...
diff --git a/googleapiclient/discovery.py b/googleapiclient/discovery.py index 6291f34e85a..12668832da4 100644 --- a/googleapiclient/discovery.py +++ b/googleapiclient/discovery.py @@ -355,8 +355,9 @@ def build_from_document( scopes = list( service.get('auth', {}).get('oauth2', {}).get('scopes', {}).keys())...
Gallopsled__pwntools-218
SyntaxWarning in pwnlib.util.web This line generates a `SyntaxWarning`: https://github.com/Gallopsled/pwntools/blob/master/pwnlib/util/web.py#L27 Either we should use qualified names or only import the names that we need. My votes goes toward the former. SyntaxWarning in pwnlib.util.web This line generates a `Syntax...
[ { "content": "# -*- coding: utf-8 -*-\nimport os, tempfile, logging\nfrom .misc import size\nlog = logging.getLogger(__name__)\n\ndef wget(url, save=None, timeout=5, **kwargs):\n \"\"\"wget(url, save=None, timeout=5) -> str\n\n Downloads a file via HTTP/HTTPS.\n\n Args:\n url (str): URL to downloa...
[ { "content": "# -*- coding: utf-8 -*-\nimport os, tempfile, logging\nfrom .misc import size\nlog = logging.getLogger(__name__)\n\ndef wget(url, save=None, timeout=5, **kwargs):\n \"\"\"wget(url, save=None, timeout=5) -> str\n\n Downloads a file via HTTP/HTTPS.\n\n Args:\n url (str): URL to downloa...
diff --git a/pwnlib/util/web.py b/pwnlib/util/web.py index a374b120a..081cf68d4 100644 --- a/pwnlib/util/web.py +++ b/pwnlib/util/web.py @@ -24,12 +24,12 @@ def wget(url, save=None, timeout=5, **kwargs): >>> result == file('robots.txt').read() True """ - from requests import * + import requests...
Textualize__textual-1552
Change Clock color Following on from #1411, perhaps the clock colour needs a wee revisit too? ![Screenshot 2022-12-31 at 10 04 46](https://user-images.githubusercontent.com/28237/210132768-00166ecf-0bf3-4486-bc7f-09cc52d46b21.png)
[ { "content": "from __future__ import annotations\n\nfrom datetime import datetime\n\nfrom rich.text import Text\n\nfrom ..widget import Widget\nfrom ..reactive import Reactive, watch\n\n\nclass HeaderIcon(Widget):\n \"\"\"Display an 'icon' on the left of the header.\"\"\"\n\n DEFAULT_CSS = \"\"\"\n Hea...
[ { "content": "from __future__ import annotations\n\nfrom datetime import datetime\n\nfrom rich.text import Text\n\nfrom ..widget import Widget\nfrom ..reactive import Reactive, watch\n\n\nclass HeaderIcon(Widget):\n \"\"\"Display an 'icon' on the left of the header.\"\"\"\n\n DEFAULT_CSS = \"\"\"\n Hea...
diff --git a/CHANGELOG.md b/CHANGELOG.md index af9c300121..402b8064cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fail-fast and print pretty tracebacks for Widget compose errors https://github.com/Textualize/textual/pull/1505 ...
nipy__nipype-2422
ICC: Cannot set the undefined 'sessions_F_map' attribute of a 'ICCOutputSpec' object ### Summary Trying to run ICC raises a `TraitError` with the following description: "TraitError: Cannot set the undefined 'sessions_F_map' attribute of a 'ICCOutputSpec' object." I may be doing things wrong, in which case a more in...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import (print_function, division, unicode_literals,\n absolute_import)\nfrom builtins import range\nimport os\nimport numpy as np\nfrom numpy import ones, kron, mean, eye, hstack, dot, tile\nimport nibabel as nb\nfrom scipy.linalg imp...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import (print_function, division, unicode_literals,\n absolute_import)\nfrom builtins import range\nimport os\nimport numpy as np\nfrom numpy import ones, kron, mean, eye, hstack, dot, tile\nimport nibabel as nb\nfrom scipy.linalg imp...
diff --git a/nipype/algorithms/icc.py b/nipype/algorithms/icc.py index 133fa79745..5d5ec1c39f 100644 --- a/nipype/algorithms/icc.py +++ b/nipype/algorithms/icc.py @@ -80,7 +80,6 @@ def _run_interface(self, runtime): def _list_outputs(self): outputs = self._outputs().get() outputs['icc_map'] = os....
vaexio__vaex-2031
agg.list() fails for multiple-column-groupby On vaex 4.9.1/python 3.9.6/linux: ``` vx = vaex.from_arrays(a=[1,2,3],b=[4,5,6],c=[7,8,9]); vx.groupby(['a','b'],vaex.agg.count('c')) ``` this code works: ``` Out[7]: # a b c_count 0 1 4 1 1 2 5 1 2 3 6 ...
[ { "content": "from functools import reduce\nimport logging\nimport operator\nimport collections\nimport six\n\nimport numpy as np\nimport pyarrow as pa\nfrom vaex.dataframe import DataFrame\n\nimport vaex.array_types\nfrom vaex.delayed import delayed_args, delayed_dict, delayed_list\nfrom vaex.utils import _ens...
[ { "content": "from functools import reduce\nimport logging\nimport operator\nimport collections\nimport six\n\nimport numpy as np\nimport pyarrow as pa\nfrom vaex.dataframe import DataFrame\n\nimport vaex.array_types\nfrom vaex.delayed import delayed_args, delayed_dict, delayed_list\nfrom vaex.utils import _ens...
diff --git a/packages/vaex-core/vaex/groupby.py b/packages/vaex-core/vaex/groupby.py index fbdb2830e9..d4ede728b4 100644 --- a/packages/vaex-core/vaex/groupby.py +++ b/packages/vaex-core/vaex/groupby.py @@ -915,7 +915,7 @@ def sort(ar): values = self.by[0].bin_values columns = {field.n...
elastic__apm-agent-python-1304
capture_exception raises exception in UUID __repr__ **Describe the bug**: When capturing exceptions, if the exception is because of a raise in UUID `__init__`, apm agent itself raises with exception: ``` self = <[AttributeError('int') raised in repr()] UUID object at 0x12508cd00> def __str__(self): > ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted p...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# BSD 3-Clause License\n#\n# Copyright (c) 2012, the Sentry Team, see AUTHORS for more details\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted p...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index edd3addc4..d0fec2e1f 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -43,6 +43,7 @@ endif::[] [float] ===== Bug fixes +* Fix a bug with exception capturing for bad UUIDs {pull}1304[#1304] * Fix potential errors in json serialization {pull}1203[...
ESMCI__cime-2111
Exception triggered in NLCOMP I updated the namelist in several pop tests (managing POP's history file output is complicated, and there were several different ways of dealing with that in the `testmods` directory which I would like to standardize). Anyway, all the tests return `NLFAIL` which is good, because I expected...
[ { "content": "import os, re, logging, six\n\nfrom collections import OrderedDict\nfrom CIME.utils import expect\nlogger=logging.getLogger(__name__)\n\n# pragma pylint: disable=unsubscriptable-object\n\n###############################################################################\ndef _normalize_lists(value_s...
[ { "content": "import os, re, logging, six\n\nfrom collections import OrderedDict\nfrom CIME.utils import expect\nlogger=logging.getLogger(__name__)\n\n# pragma pylint: disable=unsubscriptable-object\n\n###############################################################################\ndef _normalize_lists(value_s...
diff --git a/scripts/lib/CIME/compare_namelists.py b/scripts/lib/CIME/compare_namelists.py index 3e0c554beac..81d1daecabb 100644 --- a/scripts/lib/CIME/compare_namelists.py +++ b/scripts/lib/CIME/compare_namelists.py @@ -337,7 +337,7 @@ def _compare_values(name, gold_value, comp_value, case): comments = "" if...
ibis-project__ibis-8417
docs: explain you only need to close a conn.raw_sql() if you are running a query that returns results ### Please describe the issue I was following the advise of https://ibis-project.org/how-to/extending/sql#backend.raw_sql, and closing the returned cursor. But the actual SQL I was running was an `EXPLAIN SELECT .....
[ { "content": "from __future__ import annotations\n\nimport contextlib\nfrom typing import Annotated, Any, Callable, Optional\n\nfrom public import public\n\nimport ibis.common.exceptions as com\nfrom ibis.common.grounds import Annotable\nfrom ibis.common.patterns import Between\n\nPosInt = Annotated[int, Betwee...
[ { "content": "from __future__ import annotations\n\nimport contextlib\nfrom typing import Annotated, Any, Callable, Optional\n\nfrom public import public\n\nimport ibis.common.exceptions as com\nfrom ibis.common.grounds import Annotable\nfrom ibis.common.patterns import Between\n\nPosInt = Annotated[int, Betwee...
diff --git a/docs/how-to/extending/sql.qmd b/docs/how-to/extending/sql.qmd index a336b5f8dc1a..c29ba4de4afc 100644 --- a/docs/how-to/extending/sql.qmd +++ b/docs/how-to/extending/sql.qmd @@ -34,7 +34,7 @@ t = ibis.examples.penguins.fetch(backend=con, table_name="penguins") # <2> 1. Connect to an in-memory DuckDB data...
scalableminds__webknossos-libs-1067
upload command on windows: backslashes on server, invalid dataset A user created a valid dataset on a windows machine with the `webknossos convert` command, then called `webknossos upload` with a valid token. The upload went through, but the directory structure got lost: the files on the server had backslashes in the p...
[ { "content": "import os\nimport warnings\nfrom functools import lru_cache\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\nfrom time import gmtime, strftime\nfrom typing import Iterator, List, NamedTuple, Optional, Tuple\nfrom uuid import uuid4\n\nimport httpx\n\nfrom ..dataset import Dataset...
[ { "content": "import os\nimport warnings\nfrom functools import lru_cache\nfrom pathlib import Path\nfrom tempfile import TemporaryDirectory\nfrom time import gmtime, strftime\nfrom typing import Iterator, List, NamedTuple, Optional, Tuple\nfrom uuid import uuid4\n\nimport httpx\n\nfrom ..dataset import Dataset...
diff --git a/webknossos/Changelog.md b/webknossos/Changelog.md index 929a5c4e9..08909b870 100644 --- a/webknossos/Changelog.md +++ b/webknossos/Changelog.md @@ -19,6 +19,7 @@ For upgrade instructions, please check the respective _Breaking Changes_ section ### Changed ### Fixed +- Performing `webknossos upload` on a...
open-mmlab__mmcv-1464
tensorrt test failed when trying to run test on test_tensorrt.py, there are many cuda errors. My environment is cuda11+pytorch1.8.0+tensorrt7.1.3.4 I found out when forwarding pytorch module with cpu mode, the error could be gone. or remove the tensorrt part, the error could be gone. so the issue is that w...
[ { "content": "import glob\nimport os\nimport platform\nimport re\nfrom pkg_resources import DistributionNotFound, get_distribution\nfrom setuptools import find_packages, setup\n\nEXT_TYPE = ''\ntry:\n import torch\n if torch.__version__ == 'parrots':\n from parrots.utils.build_extension import Buil...
[ { "content": "import glob\nimport os\nimport platform\nimport re\nfrom pkg_resources import DistributionNotFound, get_distribution\nfrom setuptools import find_packages, setup\n\nEXT_TYPE = ''\ntry:\n import torch\n if torch.__version__ == 'parrots':\n from parrots.utils.build_extension import Buil...
diff --git a/setup.py b/setup.py index 1284f9f5d7..ba62ea2671 100644 --- a/setup.py +++ b/setup.py @@ -161,6 +161,9 @@ def get_extensions(): define_macros += [('MMCV_WITH_TRT', None)] cuda_args = os.getenv('MMCV_CUDA_ARGS') extra_compile_args['nvcc'] = [cuda_args] if cuda_args else [] + ...
pyjanitor-devs__pyjanitor-560
[ENH] Enable chiral morgans by default # Brief Description I would like to propose changing `janitor.chemistry.morgan_fingerprints` to pass `useChirality=True` to both `GetMorganFingerprintAsBitVect` and `GetHashedMorganFingerprint `. This should be exposed directly as default to `True` in the Python API.
[ { "content": "\"\"\"\nChemistry and cheminformatics-oriented data cleaning functions.\n\"\"\"\n\nfrom typing import Union\n\nimport numpy as np\nimport pandas as pd\nimport pandas_flavor as pf\n\nfrom .utils import deprecated_alias, import_message\n\ntry:\n from rdkit import Chem, DataStructs\n from rdkit...
[ { "content": "\"\"\"\nChemistry and cheminformatics-oriented data cleaning functions.\n\"\"\"\n\nfrom typing import Union\n\nimport numpy as np\nimport pandas as pd\nimport pandas_flavor as pf\n\nfrom .utils import deprecated_alias, import_message\n\ntry:\n from rdkit import Chem, DataStructs\n from rdkit...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c95f6a35e..e20a7cd3f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,7 @@ release_number (on deck) - [ENH] Add decorator functions for missing and error handling @jiafengkevinchen - [DOC] Update README with functional ``pandas`` API example. - [INF] Move `...
oppia__oppia-20071
[BUG]: Unexpected error on Exploration Editor page RTE component modal when start time is greater than end time ### Describe the bug When creating an exploration on the Creator Dashboard page, if a video is added from RTE with a start time greater than the end time, the site reloads and displays an unexpected error of...
[ { "content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen...
[ { "content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen...
diff --git a/core/domain/html_cleaner.py b/core/domain/html_cleaner.py index 1393f2b0152c2..9358f4c075f32 100644 --- a/core/domain/html_cleaner.py +++ b/core/domain/html_cleaner.py @@ -400,7 +400,7 @@ def validate_rte_tags( start_value = float(tag['start-with-value'].strip()) end_value = float(tag['...
Gallopsled__pwntools-1892
phd throws an exception when output pipe fails, as with e.g. `head` We should silence the BrokenPipeError exception when `pwn phd` output closes. ``` $ phd < /dev/random | head -n 1 00000000 43 18 3f 38 0e 45 9c 5d d9 b8 ed 44 7c 64 ee e3 │C·?8│·E·]│···D│|d··│ Exception ignored in: <_io.TextIOWrapper name='<...
[ { "content": "#!/usr/bin/env python2\nfrom __future__ import absolute_import\nfrom __future__ import division\n\nimport argparse\nimport os\nimport sys\nimport io\n\nimport pwnlib.args\npwnlib.args.free_form = False\n\nfrom pwn import *\nfrom pwnlib.commandline import common\n\nparser = common.parser_commands.a...
[ { "content": "#!/usr/bin/env python2\nfrom __future__ import absolute_import\nfrom __future__ import division\n\nimport argparse\nimport os\nimport signal\nimport sys\nimport io\n\nimport pwnlib.args\npwnlib.args.free_form = False\n\nfrom pwn import *\nfrom pwnlib.commandline import common\n\nparser = common.pa...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 98f4686dc..462646ddb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,10 +64,12 @@ The table below shows which release corresponds to each branch, and what date th - [#1733][1733] Update libc headers -> more syscalls available! - [#1876][1876] add `self.message` and c...
iterative__dvc-10005
exp save: Short option for --message is -M, but for dvc exp run it is -m It would be nice if the short options of `dvc exp run` and `dvc exp save` for specifying a commit message would be identical. Also, best to use the same options as one would use for `git commit`, i.e., `-m` instead of `-M`. ``` usage: dvc expe...
[ { "content": "import argparse\nimport logging\n\nfrom dvc.cli.command import CmdBase\nfrom dvc.cli.utils import append_doc_link\nfrom dvc.exceptions import DvcException\nfrom dvc.ui import ui\n\nlogger = logging.getLogger(__name__)\n\n\nclass CmdExperimentsSave(CmdBase):\n def run(self):\n try:\n ...
[ { "content": "import argparse\nimport logging\n\nfrom dvc.cli.command import CmdBase\nfrom dvc.cli.utils import append_doc_link\nfrom dvc.exceptions import DvcException\nfrom dvc.ui import ui\n\nlogger = logging.getLogger(__name__)\n\n\nclass CmdExperimentsSave(CmdBase):\n def run(self):\n try:\n ...
diff --git a/dvc/commands/experiments/exec_run.py b/dvc/commands/experiments/exec_run.py index 9131ea3747..cbb111fc1d 100644 --- a/dvc/commands/experiments/exec_run.py +++ b/dvc/commands/experiments/exec_run.py @@ -49,7 +49,7 @@ def add_parser(experiments_subparsers, parent_parser): ), ) exec_run_par...
facebookresearch__hydra-1818
[Bug] delete field when using optuna sweeper would throw error # 🐛 Bug ## Description <!-- A clear and concise description of what the bug is. --> I was using optuna sweeper but I noticed that if i delete a field by `~field` it would throw an error. ## To reproduce Let's [start with this](https://github.com/fac...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport logging\nimport sys\nfrom typing import Any, Dict, List, MutableMapping, MutableSequence, Optional\n\nimport optuna\nfrom hydra.core.override_parser.overrides_parser import OverridesParser\nfrom hydra.core.override_pars...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport logging\nimport sys\nfrom typing import Any, Dict, List, MutableMapping, MutableSequence, Optional\n\nimport optuna\nfrom hydra.core.override_parser.overrides_parser import OverridesParser\nfrom hydra.core.override_pars...
diff --git a/plugins/hydra_optuna_sweeper/example/conf/config.yaml b/plugins/hydra_optuna_sweeper/example/conf/config.yaml index f9866bde5f0..98281c7fd8e 100644 --- a/plugins/hydra_optuna_sweeper/example/conf/config.yaml +++ b/plugins/hydra_optuna_sweeper/example/conf/config.yaml @@ -24,3 +24,4 @@ hydra: x: 1 y: 1 ...
ipython__ipython-9285
ipython setup darwin/CPython error Hi on some alternative project, ipython is failing to build on a linux system: <pre> Searching for ipython>=3.0.0 Reading https://pypi.python.org/simple/ipython/ Best match: ipython 4.1.1 Downloading https://pypi.python.org/packages/source/i/ipython/ipython-4.1.1.zip#md5=445ff597cccb...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Setup script for IPython.\n\nUnder Posix environments it works like a typical setup.py script.\nUnder Windows, the command sdist is not supported, since IPython\nrequires utilities which are not available under Windows.\"\"\"\n\n#--------------...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Setup script for IPython.\n\nUnder Posix environments it works like a typical setup.py script.\nUnder Windows, the command sdist is not supported, since IPython\nrequires utilities which are not available under Windows.\"\"\"\n\n#--------------...
diff --git a/setup.py b/setup.py index 45fb2fdc074..cc4f1e667f0 100755 --- a/setup.py +++ b/setup.py @@ -232,13 +232,6 @@ def run(self): else: install_requires.append('pexpect') - # workaround pypa/setuptools#147, where setuptools misspells - # platform_python_implementation as python_implemen...
DataBiosphere__toil-4809
toil-wdl-runner can run task containers on the leader @jeizenga has a workflow where the first task doesn't ask for more than the default amount of resources. So we kick off the `WDLRootJob` locally on the leader, and it chains to a call-a-task job, which chains to the actual task job, which doesn't need to reschedule ...
[ { "content": "# Copyright (C) 2015-2021 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
[ { "content": "# Copyright (C) 2015-2021 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
diff --git a/src/toil/test/docs/scriptsTest.py b/src/toil/test/docs/scriptsTest.py index c1316a81b6..c1cd599be6 100644 --- a/src/toil/test/docs/scriptsTest.py +++ b/src/toil/test/docs/scriptsTest.py @@ -5,6 +5,8 @@ import sys import unittest +from typing import List + pkg_root = os.path.abspath(os.path.join(os.pat...
microsoft__Qcodes-394
DataSet .complete and .fraction_complete do not work A minimal example is included below. The `DataSet.complete` returns while the loop is still running. ``` import time import numpy as np import qcodes from qcodes.tests.data_mocks import DataSet2D from qcodes.tests.instrument_mocks import DummyInstrument data...
[ { "content": "\"\"\"\nData acquisition loops.\n\nThe general scheme is:\n\n1. create a (potentially nested) Loop, which defines the sweep setpoints and\ndelays\n\n2. activate the loop (which changes it to an ActiveLoop object),\nor omit this step to use the default measurement as given by the\nLoop.set_measurem...
[ { "content": "\"\"\"\nData acquisition loops.\n\nThe general scheme is:\n\n1. create a (potentially nested) Loop, which defines the sweep setpoints and\ndelays\n\n2. activate the loop (which changes it to an ActiveLoop object),\nor omit this step to use the default measurement as given by the\nLoop.set_measurem...
diff --git a/qcodes/loops.py b/qcodes/loops.py index 7fd45d20d83..6bc2e719e1f 100644 --- a/qcodes/loops.py +++ b/qcodes/loops.py @@ -785,6 +785,12 @@ def run(self, background=USE_MP, use_threads=False, quiet=False, data_set = self.get_data_set(data_manager, *args, **kwargs) + if background and not g...
apache__tvm-14144
[Bug] Possible error in strided_slice_checker Hello, I'm trying to use TensorRT for tuning my model. For that matter, I use partition_for_tensorrt before building the model. However, this function fails when processing strided_slice ops. This might be related to strided_slice ops, where fewer axes than tensor dimension...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
diff --git a/python/tvm/relay/op/contrib/tensorrt.py b/python/tvm/relay/op/contrib/tensorrt.py index 0971770e5726..7679d0d68b2f 100644 --- a/python/tvm/relay/op/contrib/tensorrt.py +++ b/python/tvm/relay/op/contrib/tensorrt.py @@ -709,7 +709,8 @@ def strided_slice_checker( if any([x is not None and x <= 0 for x in...
certbot__certbot-5198
Nginx plugin not finding HTTP server block it created ## My operating system is (include version): Ubuntu 16.04 ## I installed Certbot with (certbot-auto, OS package manager, pip, etc): Dev instructions ## I ran this command and it produced this output: Starting with the default Nginx config on Ubuntu 16...
[ { "content": "\"\"\"Nginx Configuration\"\"\"\nimport logging\nimport os\nimport re\nimport socket\nimport subprocess\nimport tempfile\nimport time\n\nimport OpenSSL\nimport six\nimport zope.interface\n\nfrom acme import challenges\nfrom acme import crypto_util as acme_crypto_util\n\nfrom certbot import constan...
[ { "content": "\"\"\"Nginx Configuration\"\"\"\nimport logging\nimport os\nimport re\nimport socket\nimport subprocess\nimport tempfile\nimport time\n\nimport OpenSSL\nimport six\nimport zope.interface\n\nfrom acme import challenges\nfrom acme import crypto_util as acme_crypto_util\n\nfrom certbot import constan...
diff --git a/certbot-nginx/certbot_nginx/configurator.py b/certbot-nginx/certbot_nginx/configurator.py index 4857942a1a6..76a7e3eef72 100644 --- a/certbot-nginx/certbot_nginx/configurator.py +++ b/certbot-nginx/certbot_nginx/configurator.py @@ -266,7 +266,10 @@ def _vhost_from_duplicated_default(self, domain): ...
spyder-ide__spyder-15680
AttributeError when closing console ## Description ### What steps will reproduce the problem? <!--- You can use Markdown here ---> Close console, forces you to send an issue report for some reason. ### Traceback ```python-traceback Traceback (most recent call last): File "C:\Program Files\pkgs\spyder\plugins\ipyt...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright © Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n\"\"\"\nIn addition to the remote_call mechanism implemented in CommBase:\n - Send a message to a debugging kernel\n\"\"\"\nfrom contextli...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright © Spyder Project Contributors\n# Licensed under the terms of the MIT License\n# (see spyder/__init__.py for details)\n\n\"\"\"\nIn addition to the remote_call mechanism implemented in CommBase:\n - Send a message to a debugging kernel\n\"\"\"\nfrom contextli...
diff --git a/spyder/plugins/ipythonconsole/comms/kernelcomm.py b/spyder/plugins/ipythonconsole/comms/kernelcomm.py index c07468add11..5cfe44c2475 100644 --- a/spyder/plugins/ipythonconsole/comms/kernelcomm.py +++ b/spyder/plugins/ipythonconsole/comms/kernelcomm.py @@ -84,7 +84,13 @@ def _set_comm_port(self, port): ...
ethereum__web3.py-864
ValueError when using IPCProvider * Version: 4.2.1 * Python: 2.7/3.4/3.5 * OS: osx/linux/win ### What was wrong? When using IPCProvider sometimes ValueError is encountered if the response is incomplete. Looks like in this pull request https://github.com/ethereum/web3.py/pull/785/files the author forgot to add...
[ { "content": "# String encodings and numeric representations\nimport json\nimport re\n\nfrom eth_utils import (\n add_0x_prefix,\n big_endian_to_int,\n decode_hex,\n encode_hex,\n int_to_big_endian,\n is_boolean,\n is_bytes,\n is_hex,\n is_integer,\n is_list_like,\n remove_0x_pr...
[ { "content": "# String encodings and numeric representations\nimport json\nimport re\n\nfrom eth_utils import (\n add_0x_prefix,\n big_endian_to_int,\n decode_hex,\n encode_hex,\n int_to_big_endian,\n is_boolean,\n is_bytes,\n is_hex,\n is_integer,\n is_list_like,\n remove_0x_pr...
diff --git a/tests/core/providers/test_ipc_provider.py b/tests/core/providers/test_ipc_provider.py index 9a445a1031..48b55bbc97 100644 --- a/tests/core/providers/test_ipc_provider.py +++ b/tests/core/providers/test_ipc_provider.py @@ -1,11 +1,73 @@ +import os +import pytest +import socket +import tempfile +from threadi...
wemake-services__wemake-python-styleguide-1091
False positive implicit yield violation # Bug report <!-- Hi, thanks for submitting a bug. We appreciate that. But, we will need some information about what's wrong to help you. --> ## What's wrong With common function to split iterable by chunks WPS raises `ImplicitYieldFromViolation` <!-- Describe what i...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom collections import defaultdict\nfrom typing import ClassVar, DefaultDict, List, Optional, Union\n\nfrom typing_extensions import final\n\nfrom wemake_python_styleguide.compat.aliases import AssignNodes, ForNodes\nfrom wemake_python_styleguide.compat.func...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom collections import defaultdict\nfrom typing import ClassVar, DefaultDict, List, Optional, Union\n\nfrom typing_extensions import final\n\nfrom wemake_python_styleguide.compat.aliases import AssignNodes, ForNodes\nfrom wemake_python_styleguide.compat.func...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 70e58dd20..bc6952fbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ We used to have incremental versioning before `0.1.0`. ### Bugfixes - Fixes supported python versions in PyPI to be `3.6` and `3.7` +- Fix false positive ImplicitYieldFromViolation for as...
carpentries__amy-1903
Admin: Missing Bootstrap CSS Django admin is missing bootstrap css. In the settings.py we have changed the default message tags `MESSAGE_TAGS`. So the default css that shows up in django admin does not work.
[ { "content": "\"\"\"\nDjango settings for AMY project.\n\"\"\"\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils.translation import ugettext_lazy as _\nimport environ\n\n\nROOT_DIR = environ.Path(__file__) - 2 # (amy/config/settings.py - 2 = amy/)\nBASE_DIR = ROOT_DIR()\nAPPS_DIR = ...
[ { "content": "\"\"\"\nDjango settings for AMY project.\n\"\"\"\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.utils.translation import ugettext_lazy as _\nimport environ\n\n\nROOT_DIR = environ.Path(__file__) - 2 # (amy/config/settings.py - 2 = amy/)\nBASE_DIR = ROOT_DIR()\nAPPS_DIR = ...
diff --git a/config/settings.py b/config/settings.py index 000e51fe8..3dc6e494f 100644 --- a/config/settings.py +++ b/config/settings.py @@ -443,10 +443,11 @@ from django.contrib.messages import constants as message_constants # noqa MESSAGE_TAGS = { - message_constants.INFO: "alert-info", - message_constants...
open-mmlab__mmocr-438
totaltext_converter.py 运行报错 你好,非常感谢团队的工作。有个问题 在提供的total_text下载链接中下载相应的图片和标注文件,但在运行过程中出现问题, det: Traceback (most recent call last): File "totaltext_converter.py", line 411, in <module> main() File "totaltext_converter.py", line 406, in main image_infos = collect_annotations(files, nproc=args.nproc) ...
[ { "content": "import argparse\nimport glob\nimport os\nimport os.path as osp\nimport re\n\nimport mmcv\nimport numpy as np\nimport scipy.io as scio\nimport yaml\nfrom shapely.geometry import Polygon\n\nfrom mmocr.datasets.pipelines.crop import crop_img\nfrom mmocr.utils.fileio import list_to_file\n\n\ndef colle...
[ { "content": "import argparse\nimport glob\nimport os\nimport os.path as osp\nimport re\n\nimport mmcv\nimport numpy as np\nimport scipy.io as scio\nimport yaml\nfrom shapely.geometry import Polygon\n\nfrom mmocr.datasets.pipelines.crop import crop_img\nfrom mmocr.utils.fileio import list_to_file\n\n\ndef colle...
diff --git a/tools/data/textrecog/totaltext_converter.py b/tools/data/textrecog/totaltext_converter.py index 090966f8b..1ea770dae 100644 --- a/tools/data/textrecog/totaltext_converter.py +++ b/tools/data/textrecog/totaltext_converter.py @@ -294,6 +294,11 @@ def generate_ann(root_path, split, image_infos): for ...
onnx__onnx-6108
MacOS release action is failing. ### Description (https://github.com/actions/setup-python/issues/855) ### Motivation and Context <!-- - Why is this change required? What problem does it solve? --> <!-- - If it fixes an open issue, please link to the issue here. -->
[ { "content": "# Copyright (c) ONNX Project Contributors\n#\n# SPDX-License-Identifier: Apache-2.0\n\n# NOTE: Put all metadata in pyproject.toml.\n# Set the environment variable `ONNX_PREVIEW_BUILD=1` to build the dev preview release.\n\nimport contextlib\nimport datetime\nimport glob\nimport logging\nimport mul...
[ { "content": "# Copyright (c) ONNX Project Contributors\n#\n# SPDX-License-Identifier: Apache-2.0\n\n# NOTE: Put all metadata in pyproject.toml.\n# Set the environment variable `ONNX_PREVIEW_BUILD=1` to build the dev preview release.\n\nimport contextlib\nimport datetime\nimport glob\nimport logging\nimport mul...
diff --git a/.azure-pipelines/Linux-CI.yml b/.azure-pipelines/Linux-CI.yml deleted file mode 100644 index c1d24d6e739..00000000000 --- a/.azure-pipelines/Linux-CI.yml +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright (c) ONNX Project Contributors -# -# SPDX-License-Identifier: Apache-2.0 - -schedules: -- cron: '0 0 * * *' -...
conan-io__conan-center-index-16999
[package] fakeit/*: Package id ignores options ### Description The `fakeit` option for integration is meant to select the correct header file for the matching integration, as there are different header files based on the integration chosen e.g. `gtest`, `boost`, `standalone`. These options can be seen in the reci...
[ { "content": "from conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.build import check_min_cppstd\nfrom conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy\nfrom conan.tools.layout import basic_layout\nimport os\n\n\nrequired_conan_ve...
[ { "content": "from conan import ConanFile\nfrom conan.errors import ConanInvalidConfiguration\nfrom conan.tools.build import check_min_cppstd\nfrom conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy\nfrom conan.tools.layout import basic_layout\nimport os\n\n\nrequired_conan_ve...
diff --git a/recipes/fakeit/all/conanfile.py b/recipes/fakeit/all/conanfile.py index b950d98ed9cdd..821c0ce34e387 100644 --- a/recipes/fakeit/all/conanfile.py +++ b/recipes/fakeit/all/conanfile.py @@ -48,7 +48,10 @@ def requirements(self): raise ConanInvalidConfiguration("%s is not (yet) available on cci" ...
dbt-labs__dbt-core-2509
DBT 0.17.0rc3 - Compilation failure regression ### Describe the bug When trying to compile a project having some schema tests using `dbt_utils.equality` the compilation fails because the model does not exists. However calling DBT run works. The compilation failure happens when using DBT 0.17.0rc3, however compil...
[ { "content": "from dataclasses import dataclass\nfrom typing import Mapping, Any, Optional, List, Union\n\nimport agate\n\nfrom dbt.adapters.base.impl import AdapterConfig\nfrom dbt.adapters.sql import SQLAdapter\nfrom dbt.adapters.sql.impl import (\n LIST_SCHEMAS_MACRO_NAME,\n LIST_RELATIONS_MACRO_NAME,\...
[ { "content": "from dataclasses import dataclass\nfrom typing import Mapping, Any, Optional, List, Union\n\nimport agate\n\nfrom dbt.adapters.base.impl import AdapterConfig\nfrom dbt.adapters.sql import SQLAdapter\nfrom dbt.adapters.sql.impl import (\n LIST_SCHEMAS_MACRO_NAME,\n LIST_RELATIONS_MACRO_NAME,\...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 79ee2ebbc2e..6fccaa54568 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## dbt 0.17.0 (Release TBD) ### Fixes +- On snowflake, get_columns_in_relation now returns an empty list again if the relation does not exist, instead of raising an exception. ([#2504...
deepset-ai__haystack-7909
SASEvaluator returns score even when `predicted_answers` contains `None` In a RAG pipeline, there are cases where the prompt instructs the LLM to return a placeholder answer if there is missing information in the context, such as "No answer". See an [example](https://github.com/deepset-ai/haystack-evaluation/blob/cbfcd...
[ { "content": "# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nfrom typing import Any, Dict, List, Optional\n\nfrom numpy import mean as np_mean\n\nfrom haystack import component, default_from_dict, default_to_dict\nfrom haystack.lazy_imports imp...
[ { "content": "# SPDX-FileCopyrightText: 2022-present deepset GmbH <info@deepset.ai>\n#\n# SPDX-License-Identifier: Apache-2.0\n\nfrom typing import Any, Dict, List, Optional\n\nfrom numpy import mean as np_mean\n\nfrom haystack import component, default_from_dict, default_to_dict\nfrom haystack.lazy_imports imp...
diff --git a/haystack/components/evaluators/sas_evaluator.py b/haystack/components/evaluators/sas_evaluator.py index 7625b837c9..0fc5e80da3 100644 --- a/haystack/components/evaluators/sas_evaluator.py +++ b/haystack/components/evaluators/sas_evaluator.py @@ -157,6 +157,9 @@ def run(self, ground_truth_answers: List[str]...
akvo__akvo-rsr-2994
Custom reports removed from 'Reports' general view Remove custom reports from 'Reports' general view, i.e. Plan Finland or EUTF reports are not visible for other partners. ![custom reports included](https://user-images.githubusercontent.com/26227538/33214973-4bf3ce5e-d12e-11e7-8a73-d5f3221f3b30.png)
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom djang...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Akvo RSR is covered by the GNU Affero General Public License.\n# See more details in the license.txt file located at the root folder of the Akvo RSR module.\n# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\nfrom djang...
diff --git a/akvo/rest/views/report.py b/akvo/rest/views/report.py index 5cfb22e423..c9c072f941 100644 --- a/akvo/rest/views/report.py +++ b/akvo/rest/views/report.py @@ -23,8 +23,9 @@ def reports(request): reports = Report.objects.all() if not is_admin: # Show only those reports that the user is all...
pyinstaller__pyinstaller-2112
cherrypy >= 6.1.0 fails tests From the cherrypy [changelog](https://github.com/cherrypy/cherrypy/blob/master/CHANGES.txt): ``` 6.1.0 ----- * Combined wsgiserver2 and wsgiserver3 modules into a single module, ``cherrypy.wsgiserver``. ```
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2015-2016, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full license is in the file COPYING....
[ { "content": null, "path": "PyInstaller/hooks/hook-cherrypy.py" } ]
diff --git a/PyInstaller/hooks/hook-cherrypy.py b/PyInstaller/hooks/hook-cherrypy.py deleted file mode 100644 index 3944fe59ab..0000000000 --- a/PyInstaller/hooks/hook-cherrypy.py +++ /dev/null @@ -1,20 +0,0 @@ -#----------------------------------------------------------------------------- -# Copyright (c) 2015-2016, P...
graphql-python__graphene-django-714
DjangoObjectType interprets string choices fields as required in schema even with blank=True attribute To reproduce this problem, create a Django model with a choices field with `blank=True`: class MyModel(models.Model): PERIODIC_INTERVAL_CHOICES = (('Weekly', 'Weekly'), ('Bi-Weekly', 'B...
[ { "content": "from django.db import models\nfrom django.utils.encoding import force_text\n\nfrom graphene import (\n ID,\n Boolean,\n Dynamic,\n Enum,\n Field,\n Float,\n Int,\n List,\n NonNull,\n String,\n UUID,\n DateTime,\n Date,\n Time,\n)\nfrom graphene.types.json ...
[ { "content": "from django.db import models\nfrom django.utils.encoding import force_text\n\nfrom graphene import (\n ID,\n Boolean,\n Dynamic,\n Enum,\n Field,\n Float,\n Int,\n List,\n NonNull,\n String,\n UUID,\n DateTime,\n Date,\n Time,\n)\nfrom graphene.types.json ...
diff --git a/graphene_django/converter.py b/graphene_django/converter.py index 64bf341a9..b1e27fc70 100644 --- a/graphene_django/converter.py +++ b/graphene_django/converter.py @@ -73,7 +73,8 @@ def description(self): return named_choices_descriptions[self.name] enum = Enum(name, list(named_...
python-pillow__Pillow-6140
WebP plugin save animated webp need default duration value ### What did you do? i only convert a animate gif format to animate webP format ### What did you expect to happen? it can convert success ### What actually happened? `python3.7/site-packages/PIL/WebPImagePlugin.py" , line 292, in _save_all timest...
[ { "content": "from io import BytesIO\n\nfrom . import Image, ImageFile\n\ntry:\n from . import _webp\n\n SUPPORTED = True\nexcept ImportError:\n SUPPORTED = False\n\n\n_VALID_WEBP_MODES = {\"RGBX\": True, \"RGBA\": True, \"RGB\": True}\n\n_VALID_WEBP_LEGACY_MODES = {\"RGB\": True, \"RGBA\": True}\n\n_V...
[ { "content": "from io import BytesIO\n\nfrom . import Image, ImageFile\n\ntry:\n from . import _webp\n\n SUPPORTED = True\nexcept ImportError:\n SUPPORTED = False\n\n\n_VALID_WEBP_MODES = {\"RGBX\": True, \"RGBA\": True, \"RGB\": True}\n\n_VALID_WEBP_LEGACY_MODES = {\"RGB\": True, \"RGBA\": True}\n\n_V...
diff --git a/Tests/test_file_webp.py b/Tests/test_file_webp.py index 0511193782c..13fbb529142 100644 --- a/Tests/test_file_webp.py +++ b/Tests/test_file_webp.py @@ -8,6 +8,7 @@ from PIL import Image, WebPImagePlugin, features from .helper import ( + assert_image_equal, assert_image_similar, assert_imag...
mesonbuild__meson-10287
compiler.has_argument doesn't work with clang-cl for warning flags **Describe the bug** The option `-Wimplicit-fallthrough=3` is unknown to clang-cl 12.0.1, and yet the `has_argument('-Wimplicit-fallthrough=3')` check passes, as can be seen [here](https://ci.appveyor.com/project/rizinorg/rizin/builds/43245228/job/x5...
[ { "content": "# Copyright 2019 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 requi...
[ { "content": "# Copyright 2019 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 requi...
diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index 2f2645375273..f4f2f1e1d0c7 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -445,7 +445,7 @@ def __init__(self, target: str): def has_arguments...
aws-cloudformation__cfn-lint-1648
Found an embedded parameter "${AWS::Partition}" outside of an "Fn::Sub" at Resources *cfn-lint version: (`cfn-lint --version`)* cfn-lint 0.29.5 *Description of issue.* I have a CloudFormation Template embedded into a AWS Systems Manager Automation Document. Please provide as much information as possible: * Te...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nfrom functools import reduce # pylint: disable=redefined-builtin\nimport re\nimport six\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\n\n\nc...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nfrom functools import reduce # pylint: disable=redefined-builtin\nimport re\nimport six\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\n\n\nc...
diff --git a/src/cfnlint/rules/functions/SubNeeded.py b/src/cfnlint/rules/functions/SubNeeded.py index cbc0bdca71..5527b28d6f 100644 --- a/src/cfnlint/rules/functions/SubNeeded.py +++ b/src/cfnlint/rules/functions/SubNeeded.py @@ -20,7 +20,7 @@ class SubNeeded(CloudFormationLintRule): # Free-form text properties t...
obspy__obspy-2010
CNV writing phase_mapping fails This line: https://github.com/obspy/obspy/blob/master/obspy/io/cnv/core.py#L63 doesn't work because ``values.update(("P", "S"))`` returns ``None`` This works: ```python values = set(phase_mapping.values()) values.update(("P","S")) if values != set(("P", "S")): ```...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nCNV file format support for ObsPy\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.html)\n\"\"\"\nfrom __future__ import (absolute_import, division...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nCNV file format support for ObsPy\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.html)\n\"\"\"\nfrom __future__ import (absolute_import, division...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index b6ff820711f..40c8a75984a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -30,6 +30,9 @@ stabilize the algorithm (see #2114, #2125). - obspy.io.ascii: * Fixes an issue with the time representation (see #2165, #2179). + - obspy.io.cnv: + * Bugfix when phase...
qtile__qtile-1768
widget.CheckUpdates not hidden when no updates are available <!-- Please do not ask general questions here! There are [community contact](https://github.com/qtile/qtile#community) options for that. --> # Issue description <!-- A brief discussion of what failed and how it failed. A description of what you tri...
[ { "content": "# Copyright (c) 2015 Ali Mousavi\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, mo...
[ { "content": "# Copyright (c) 2015 Ali Mousavi\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, mo...
diff --git a/libqtile/widget/check_updates.py b/libqtile/widget/check_updates.py index 82e4ada924..5cb50f9b5c 100644 --- a/libqtile/widget/check_updates.py +++ b/libqtile/widget/check_updates.py @@ -75,7 +75,11 @@ def _check_updates(self): self.subtr = 0 except CalledProcessError: ...
elastic__apm-agent-python-1493
ELASTIC_APM_SERVICE_NAME env var for Python Lambda not working We have a test Python lambda function using the elastic-apm-extension-ver-0-0-4-arm64 layer and have set 'ELASTIC_APM_SERVICE_NAME' environment variable to 'python-apm-enabled'. However, within Elastic under APM we are seeing the original function name ...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
[ { "content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain...
diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index 60692b012..a9105fc36 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -43,6 +43,7 @@ endif::[] * Fix Sanic integration to properly respect the `capture_body` config {pull}1485[#1485] * Lambda fixes to align with the cross-agent spec {pull}1489[#1...
django-compressor__django-compressor-895
Fix crash in offline compression when child nodelist is None If a Node had an attribute set to `None` present in `child_nodelist`, `DjangoParser.get_nodelist` would fail. It happened to me while using compressor in conjunction with sorl-thumbnail. I have not enough knowledge of the Django template engine to know if sor...
[ { "content": "from __future__ import absolute_import\nfrom copy import copy\n\nfrom django import template\nfrom django.template import Context\nfrom django.template.base import Node, VariableNode, TextNode, NodeList\nfrom django.template.defaulttags import IfNode\nfrom django.template.loader import get_templat...
[ { "content": "from __future__ import absolute_import\nfrom copy import copy\n\nfrom django import template\nfrom django.template import Context\nfrom django.template.base import Node, VariableNode, TextNode, NodeList\nfrom django.template.defaulttags import IfNode\nfrom django.template.loader import get_templat...
diff --git a/compressor/offline/django.py b/compressor/offline/django.py index e990170f8..5b7521de6 100644 --- a/compressor/offline/django.py +++ b/compressor/offline/django.py @@ -132,7 +132,9 @@ def get_nodelist(self, node, original, context=None): nodelist = [] if isinstance(node, Node): ...
ESMCI__cime-493
baseline compare error can be recorded as RUN FAIL The expect statement at line 203 of hist_utils.py: ``` expect(num_compared > 0, "Did not compare any hist files for suffix1='%s' suffix2='%s', dir1='%s', dir2='%s'\nComments=%s" % (suffix1, suffix2, from_dir1, from_dir2, comments)) ``` Is causing an a...
[ { "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 *\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...
diff --git a/utils/python/CIME/hist_utils.py b/utils/python/CIME/hist_utils.py index 31258c33eb1..48992554322 100644 --- a/utils/python/CIME/hist_utils.py +++ b/utils/python/CIME/hist_utils.py @@ -200,8 +200,10 @@ def _compare_hists(case, from_dir1, from_dir2, suffix1="", suffix2=""): comments += cprnc...
sbi-dev__sbi-730
build_posterior fails after training SNPE on GPU Hi, I'm training SNPE without an explicit prior on GPU. When I want to build the posterior, I get the following error massage. If I repeat the training only on the CPU everything works. `Traceback (most recent call last): File "sbi_train_posterior.py", line 68,...
[ { "content": "# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed\n# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.\nimport time\nfrom abc import ABC, abstractmethod\nfrom copy import deepcopy\nfrom typing import Any, Callable, Dict, Optional, ...
[ { "content": "# This file is part of sbi, a toolkit for simulation-based inference. sbi is licensed\n# under the Affero General Public License v3, see <https://www.gnu.org/licenses/>.\nimport time\nfrom abc import ABC, abstractmethod\nfrom copy import deepcopy\nfrom typing import Any, Callable, Dict, Optional, ...
diff --git a/sbi/inference/snpe/snpe_base.py b/sbi/inference/snpe/snpe_base.py index 2a9a53da7..eb833b714 100644 --- a/sbi/inference/snpe/snpe_base.py +++ b/sbi/inference/snpe/snpe_base.py @@ -171,8 +171,10 @@ def append_simulations( "run single-round inference with " "`append_...
bokeh__bokeh-9203
[FEATURE] Print full stacktrace on error See discussion on [discussion forum](https://discourse.bokeh.org/t/debugging-recommendations/3934) **Is your feature request related to a problem? Please describe.** My underlying application is getting very big and when running into problems the debugging takes me a lot of ...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.\n# All rights reserved.\n#\n# The full license is in the file LICENSE.txt, distributed with this software.\n#----------------------------------------...
diff --git a/bokeh/server/protocol_handler.py b/bokeh/server/protocol_handler.py index bd8b90543b5..979ad64cfc0 100644 --- a/bokeh/server/protocol_handler.py +++ b/bokeh/server/protocol_handler.py @@ -99,8 +99,8 @@ def handle(self, message, connection): try: work = yield handler(message, connectio...
holoviz__panel-2827
option_limit of MultiChoice widget doesn't work when typing initials The option_limit allows specifying how many items to display in the MultiChoice widget. When setting it > 4, it works when nothing is in the input widget: <img width="311" alt="image" src="https://user-images.githubusercontent.com/3037080/13098815...
[ { "content": "\"\"\"\nDefines various Select widgets which allow choosing one or more items\nfrom a list of options.\n\"\"\"\nimport re\n\nfrom collections import OrderedDict\n\nimport param\n\nfrom bokeh.models.widgets import (\n AutocompleteInput as _BkAutocompleteInput, CheckboxGroup as _BkCheckboxGroup,\...
[ { "content": "\"\"\"\nDefines various Select widgets which allow choosing one or more items\nfrom a list of options.\n\"\"\"\nimport re\n\nfrom collections import OrderedDict\n\nimport param\n\nfrom bokeh.models.widgets import (\n AutocompleteInput as _BkAutocompleteInput, CheckboxGroup as _BkCheckboxGroup,\...
diff --git a/panel/widgets/select.py b/panel/widgets/select.py index ef1c495123..4526a28ca7 100644 --- a/panel/widgets/select.py +++ b/panel/widgets/select.py @@ -196,7 +196,10 @@ class MultiChoice(_MultiSelectBase): option_limit = param.Integer(default=None, bounds=(1, None), doc=""" Maximum number of ...
Parsl__parsl-959
Fix workflow name in monitoring DB At the moment, it is always 'typeguard.py'. This looks related to #875.
[ { "content": "import atexit\nimport itertools\nimport logging\nimport os\nimport pathlib\nimport pickle\nimport random\nimport typeguard\nimport inspect\nimport threading\nimport sys\n# import multiprocessing\nimport datetime\n\nfrom getpass import getuser\nfrom typing import Optional\nfrom uuid import uuid4\nf...
[ { "content": "import atexit\nimport itertools\nimport logging\nimport os\nimport pathlib\nimport pickle\nimport random\nimport typeguard\nimport inspect\nimport threading\nimport sys\n# import multiprocessing\nimport datetime\n\nfrom getpass import getuser\nfrom typing import Optional\nfrom uuid import uuid4\nf...
diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py index 0e0decfeb9..af0e2b71ec 100644 --- a/parsl/dataflow/dflow.py +++ b/parsl/dataflow/dflow.py @@ -108,7 +108,7 @@ def __init__(self, config=Config()): else: for frame in inspect.stack(): fname = os.path.basename(str(...
googleapis__python-bigquery-1796
The _ARROW_SCALAR_IDS_TO_BQ mapping misses LargeStringArray type #### Environment details - OS type and version: Linux - Python version: 3.11.7 - pip version: 23.3.1 - `google-cloud-bigquery` version: 3.16.0 #### Steps to reproduce Call `bqclient.load_table_from_dataframe` with a dataframe containin...
[ { "content": "# Copyright 2023 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 2023 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/google/cloud/bigquery/_pyarrow_helpers.py b/google/cloud/bigquery/_pyarrow_helpers.py index 7266e5e02..946743eaf 100644 --- a/google/cloud/bigquery/_pyarrow_helpers.py +++ b/google/cloud/bigquery/_pyarrow_helpers.py @@ -91,6 +91,7 @@ def pyarrow_timestamp(): pyarrow.date64().id: "DATETIME", # bec...
privacyidea__privacyidea-2567
Choose more secure configuration defaults The configuration for SMTP server, privacyIDEA server or LDAP resolvers default to not using TLS and no certificate verification. Better defaults or additional documentation may reduce the chance of accidental misconfiguration by the admins. We have the following occurances...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# E-mail: info@privacyidea.org\n# Contact: www.privacyidea.org\n#\n# 2018-06-15 Pascal Fuks <pascal@foxit.pro>\n# Added REGEXP parameter on phone number\n# 2018-01-10 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Fix type ...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# E-mail: info@privacyidea.org\n# Contact: www.privacyidea.org\n#\n# 2018-06-15 Pascal Fuks <pascal@foxit.pro>\n# Added REGEXP parameter on phone number\n# 2018-01-10 Cornelius Kölbel <cornelius.koelbel@netknights.it>\n# Fix type ...
diff --git a/privacyidea/lib/smsprovider/HttpSMSProvider.py b/privacyidea/lib/smsprovider/HttpSMSProvider.py index b5c1db49dc..4e81f2cdc6 100644 --- a/privacyidea/lib/smsprovider/HttpSMSProvider.py +++ b/privacyidea/lib/smsprovider/HttpSMSProvider.py @@ -262,6 +262,7 @@ def parameters(cls): ...
streamlit__streamlit-1943
Remove st.deck_gl_chart ### Problem Remove st.deck_gl_chart now that the deprecation date is past
[ { "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/elements/deck_gl.py b/lib/streamlit/elements/deck_gl.py index c932d6ca50ea..47d808a3e0d8 100644 --- a/lib/streamlit/elements/deck_gl.py +++ b/lib/streamlit/elements/deck_gl.py @@ -30,7 +30,11 @@ class DeckGlMixin: def deck_gl_chart(dg, spec=None, use_container_width=False, **kwargs): ...
sktime__sktime-1571
[DOC] Transformers missing from API Reference #### Describe the issue linked to the documentation <!-- Tell us about the confusion introduced in the documentation. --> There have been transformers that have recently been improved but have not been added the API Reference. For example, STLTransformer, CLaSPT...
[ { "content": "#!/usr/bin/env python3 -u\n# -*- coding: utf-8 -*-\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Class to iteratively apply differences to a time series.\"\"\"\n__author__ = [\"Ryan Kuhns\"]\n__all__ = [\"Differencer\"]\n\nimport numpy as np\nimport pandas as pd\n...
[ { "content": "#!/usr/bin/env python3 -u\n# -*- coding: utf-8 -*-\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Class to iteratively apply differences to a time series.\"\"\"\n__author__ = [\"Ryan Kuhns\"]\n__all__ = [\"Differencer\"]\n\nimport numpy as np\nimport pandas as pd\n...
diff --git a/docs/source/api_reference/forecasting.rst b/docs/source/api_reference/forecasting.rst index 006895c8474..c2c61357303 100644 --- a/docs/source/api_reference/forecasting.rst +++ b/docs/source/api_reference/forecasting.rst @@ -42,6 +42,7 @@ Trend :toctree: auto_generated/ :template: class.rst + ...
nipy__nipype-1951
dcm2niix ### Summary dcm2niix interface failed with FileNotFoundError exception with following flags: converter = Dcm2niix() converter.inputs.single_file = True converter.inputs.compress = 'n' converter.inputs.output_dir = '/some/directory/' converter.inputs.source_names...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The dcm2nii module provides basic functions for dicom conversion\n\n Change directory to provide relative paths for doctests\n >>> import os\n >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )\n >>> datadir = os.path.realpath(os.path.join(filepat...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"The dcm2nii module provides basic functions for dicom conversion\n\n Change directory to provide relative paths for doctests\n >>> import os\n >>> filepath = os.path.dirname( os.path.realpath( __file__ ) )\n >>> datadir = os.path.realpath(os.path.join(filepat...
diff --git a/nipype/interfaces/dcm2nii.py b/nipype/interfaces/dcm2nii.py index 323131280f..62e62b6672 100644 --- a/nipype/interfaces/dcm2nii.py +++ b/nipype/interfaces/dcm2nii.py @@ -309,7 +309,10 @@ def _parse_stdout(self, stdout): else: pass if out_file: - ...
zulip__zulip-12755
portico/docs: Improve OpenAPI descriptions and titles. Followups to https://github.com/zulip/zulip/pull/11045. - [ ] Currently we only use the first paragraph of text for the description. It would be better to concatenate the first few paragraphs, and truncate. Basically it's just using bs.find_all('p') and joining th...
[ { "content": "from typing import Any, Dict, Tuple\nfrom collections import OrderedDict\nfrom django.views.generic import TemplateView\nfrom django.conf import settings\nfrom django.http import HttpRequest, HttpResponse, HttpResponseNotFound\nfrom django.template import loader\n\nimport os\nimport random\nimport...
[ { "content": "from typing import Any, Dict, Tuple\nfrom collections import OrderedDict\nfrom django.views.generic import TemplateView\nfrom django.conf import settings\nfrom django.http import HttpRequest, HttpResponse, HttpResponseNotFound\nfrom django.template import loader\n\nimport os\nimport random\nimport...
diff --git a/templates/zerver/features.html b/templates/zerver/features.html index d1422a7ae3a30..12f75b44fcfc1 100644 --- a/templates/zerver/features.html +++ b/templates/zerver/features.html @@ -1,5 +1,8 @@ {% extends "zerver/portico.html" %} +{% set OPEN_GRAPH_TITLE = 'Zulip Features' %} +{% set OPEN_GRAPH_DESCRI...
Pycord-Development__pycord-1998
`scheduled_event.edit` does not work if location changed from external to voice ### Summary If you create a scheduled event with a string as location (external) and than edit it to a voice channel, the edit fails ### Reproduction Steps * create scheduled event with string as location * create a voice channel * edi...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without li...
[ { "content": "\"\"\"\nThe MIT License (MIT)\n\nCopyright (c) 2021-present Pycord Development\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the \"Software\"),\nto deal in the Software without restriction, including without li...
diff --git a/CHANGELOG.md b/CHANGELOG.md index dd044d7072..57d0af8f6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,8 @@ These changes are available on the `master` branch, but have not yet been releas - Fixed `AttributeError` caused by [#1957](https://github.com/Pycord-Development/pycord/pull/1957) whe...
Gallopsled__pwntools-323
Importing shellcraft submodules doesn't work ``` $ python >>> import pwnlib.shellcraft.arm Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named arm ```
[ { "content": "from types import ModuleType\nimport sys, os, re\nfrom . import internal\nfrom ..context import context\n\nclass module(ModuleType):\n def __init__(self, name, directory):\n super(module, self).__init__(name)\n\n # Insert nice properties\n self.__dict__.update({\n ...
[ { "content": "from types import ModuleType\nimport sys, os, re\nfrom . import internal\nfrom ..context import context\n\nclass module(ModuleType):\n def __init__(self, name, directory):\n super(module, self).__init__(name)\n\n # Insert nice properties\n self.__dict__.update({\n ...
diff --git a/pwnlib/shellcraft/__init__.py b/pwnlib/shellcraft/__init__.py index 36345a453..b2fba1b6c 100644 --- a/pwnlib/shellcraft/__init__.py +++ b/pwnlib/shellcraft/__init__.py @@ -102,4 +102,22 @@ def __shellcodes__(self): tether = sys.modules[__name__] # Create the module structure -module(__name__, '') +shel...
cocotb__cocotb-825
Tab completion broken in newer IPython versions In recent IPython versions, tab completion has changed. cocotb uses ``_getAttributeNames`` to allow completing DUT object names but this has been removed in https://github.com/ipython/ipython/pull/8081/files. These days, providing ``__dir__(self)`` is the way to go (ht...
[ { "content": "#!/usr/bin/env python\n\n# Copyright (c) 2013 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:\...
[ { "content": "#!/usr/bin/env python\n\n# Copyright (c) 2013 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:\...
diff --git a/cocotb/handle.py b/cocotb/handle.py index 4c366e4dc2..8806ba26ff 100755 --- a/cocotb/handle.py +++ b/cocotb/handle.py @@ -215,10 +215,10 @@ def _sub_handle_key(self, name): """Translates the handle name to a key to use in ``_sub_handles`` dictionary.""" return name.split(".")[-1] - d...
scipy__scipy-17906
griddata linear / LinearNDInterpolator unexpected behavior I was trying to speed up my code recently, by reducing the data I feed into griddata with method linear or in other words LinearNDInterpolator. I was greatly surprised to find out that this altered my interpolated values significantly. Reading the docs of Li...
[ { "content": "\"\"\"\nConvenience interface to N-D interpolation\n\n.. versionadded:: 0.9\n\n\"\"\"\nimport numpy as np\nfrom .interpnd import LinearNDInterpolator, NDInterpolatorBase, \\\n CloughTocher2DInterpolator, _ndim_coords_from_arrays\nfrom scipy.spatial import cKDTree\n\n__all__ = ['griddata', 'Nea...
[ { "content": "\"\"\"\nConvenience interface to N-D interpolation\n\n.. versionadded:: 0.9\n\n\"\"\"\nimport numpy as np\nfrom .interpnd import LinearNDInterpolator, NDInterpolatorBase, \\\n CloughTocher2DInterpolator, _ndim_coords_from_arrays\nfrom scipy.spatial import cKDTree\n\n__all__ = ['griddata', 'Nea...
diff --git a/scipy/interpolate/_ndgriddata.py b/scipy/interpolate/_ndgriddata.py index 85ad1c493207..29f1e3b843ef 100644 --- a/scipy/interpolate/_ndgriddata.py +++ b/scipy/interpolate/_ndgriddata.py @@ -50,6 +50,8 @@ class NearestNDInterpolator(NDInterpolatorBase): ----- Uses ``scipy.spatial.cKDTree`` + ...
python-pillow__Pillow-7947
Empty JPEG2000 image after upgrading from 10.2.0 to 10.3.0 ### What did you do? I want to load a JPEG2000 image from raw data into *Pillow* for further processing. After upgrading from 10.2.0 to 10.3.0, this broke for a specific image. ### What did you expect to happen? The image is being loaded as before. ...
[ { "content": "#\n# The Python Imaging Library\n# $Id$\n#\n# JPEG2000 file handling\n#\n# History:\n# 2014-03-12 ajh Created\n# 2021-06-30 rogermb Extract dpi information from the 'resc' header box\n#\n# Copyright (c) 2014 Coriolis Systems Limited\n# Copyright (c) 2014 Alastair Houghton\n#\n# See the README fi...
[ { "content": "#\n# The Python Imaging Library\n# $Id$\n#\n# JPEG2000 file handling\n#\n# History:\n# 2014-03-12 ajh Created\n# 2021-06-30 rogermb Extract dpi information from the 'resc' header box\n#\n# Copyright (c) 2014 Coriolis Systems Limited\n# Copyright (c) 2014 Alastair Houghton\n#\n# See the README fi...
diff --git a/Tests/test_file_jpeg2k.py b/Tests/test_file_jpeg2k.py index 81f75cc72cf..a7cae563adb 100644 --- a/Tests/test_file_jpeg2k.py +++ b/Tests/test_file_jpeg2k.py @@ -289,6 +289,16 @@ def test_rgba(ext: str) -> None: assert im.mode == "RGBA" +@pytest.mark.skipif( + not os.path.exists(EXTRA_DIR), r...
certbot__certbot-7503
dns-rfc2136 is unusable if packet loss present certbot_dns_rfc2136 authenticator is not robust on a losing network. During authenticating, the plugin have to send several SOA queries directly to the authoritative nameserver. The number of queries is depended on the specific configuration. In my case, it sends out 2...
[ { "content": "\"\"\"DNS Authenticator using RFC 2136 Dynamic Updates.\"\"\"\nimport logging\n\nimport dns.flags\nimport dns.message\nimport dns.name\nimport dns.query\nimport dns.rdataclass\nimport dns.rdatatype\nimport dns.tsig\nimport dns.tsigkeyring\nimport dns.update\nimport zope.interface\n\nfrom certbot i...
[ { "content": "\"\"\"DNS Authenticator using RFC 2136 Dynamic Updates.\"\"\"\nimport logging\n\nimport dns.flags\nimport dns.message\nimport dns.name\nimport dns.query\nimport dns.rdataclass\nimport dns.rdatatype\nimport dns.tsig\nimport dns.tsigkeyring\nimport dns.update\nimport zope.interface\n\nfrom certbot i...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a71d24adea..56235e756f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ Certbot adheres to [Semantic Versioning](https://semver.org/). * acme.standalone.BaseRequestHandlerWithLogging and acme.standalone.simple_tls_sni_01_server have been deprecated and ...
mesonbuild__meson-3498
MSI Installer: Support upgrade I just attempted to upgrade from meson `0.42.1` to `0.43` and was presented with this screen using the MSI installer ![2017-10-11 14_37_47-windows installer](https://user-images.githubusercontent.com/3422847/31468523-efdaf1d2-ae92-11e7-8c93-04b1978479cf.png) At the very least, that ...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright 2017 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/LICE...
[ { "content": "#!/usr/bin/env python3\n\n# Copyright 2017 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/LICE...
diff --git a/msi/createmsi.py b/msi/createmsi.py index 499f4b01ce8b..8a1bc5b4208b 100755 --- a/msi/createmsi.py +++ b/msi/createmsi.py @@ -38,7 +38,7 @@ def __init__(self): self.product_name = 'Meson Build System' self.manufacturer = 'The Meson Development Team' self.version = coredata.versio...
cupy__cupy-2489
Offer a `cupy.cuda.get_allocator` , and a pinned allocator that can associate with a particular device. Current workaround allows 110x speed over Pytorch CPU pinned tensors I am filing these requests on the suggestion of this stackoverflow answer https://stackoverflow.com/questions/57752516/how-to-use-cuda-pinned-ze...
[ { "content": "import contextlib\nimport os\n\nfrom cupy.cuda import compiler # NOQA\nfrom cupy.cuda import device # NOQA\nfrom cupy.cuda import driver # NOQA\nfrom cupy.cuda import function # NOQA\nfrom cupy.cuda import memory # NOQA\nfrom cupy.cuda import memory_hook # NOQA\nfrom cupy.cuda import memory_...
[ { "content": "import contextlib\nimport os\n\nfrom cupy.cuda import compiler # NOQA\nfrom cupy.cuda import device # NOQA\nfrom cupy.cuda import driver # NOQA\nfrom cupy.cuda import function # NOQA\nfrom cupy.cuda import memory # NOQA\nfrom cupy.cuda import memory_hook # NOQA\nfrom cupy.cuda import memory_...
diff --git a/cupy/cuda/__init__.py b/cupy/cuda/__init__.py index b35d2632db1..7f6e05edfa6 100644 --- a/cupy/cuda/__init__.py +++ b/cupy/cuda/__init__.py @@ -97,6 +97,7 @@ def get_cuda_path(): from cupy.cuda.memory import MemoryPointer # NOQA from cupy.cuda.memory import MemoryPool # NOQA from cupy.cuda.memory impo...
holoviz__panel-4917
Alerts show dunder methods as bold ![image](https://github.com/holoviz/panel/assets/19758978/cb7158f9-83fd-4b29-8450-c5b136e9d793) ``` import panel as pn pn.extension() def __test__(): raise ValueError("Test") pn.panel(__test__).servable() ```
[ { "content": "\"\"\"\nUtilities for creating bokeh Server instances.\n\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport datetime as dt\nimport gc\nimport html\nimport importlib\nimport logging\nimport os\nimport pathlib\nimport signal\nimport sys\nimport threading\nimport traceback\nimport uu...
[ { "content": "\"\"\"\nUtilities for creating bokeh Server instances.\n\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport datetime as dt\nimport gc\nimport html\nimport importlib\nimport logging\nimport os\nimport pathlib\nimport signal\nimport sys\nimport threading\nimport traceback\nimport uu...
diff --git a/panel/io/server.py b/panel/io/server.py index b34d960151..9da388773e 100644 --- a/panel/io/server.py +++ b/panel/io/server.py @@ -723,7 +723,7 @@ def handle_exception(handler, e): # Serve error e_msg = str(e).replace('\033[1m', '<b>').replace('\033[0m', '</b>') Alert(...
uccser__cs-unplugged-197
Remove topic query from homepage When the homepage is loaded, a database query is performed. This is currently not needed and should be removed. Remove topic query from homepage When the homepage is loaded, a database query is performed. This is currently not needed and should be removed.
[ { "content": "from django.views.generic import TemplateView\n\n\nclass GeneralIndexView(TemplateView):\n template_name = 'general/index.html'\n\n def get_context_data(self, **kwargs):\n # TODO: Investigate if importing model from another\n # app is sensible/best approach.\n from topic...
[ { "content": "from django.views.generic import TemplateView\n\n\nclass GeneralIndexView(TemplateView):\n template_name = 'general/index.html'\n\n\nclass GeneralAboutView(TemplateView):\n template_name = 'general/about.html'\n", "path": "csunplugged/general/views.py" } ]
diff --git a/csunplugged/general/views.py b/csunplugged/general/views.py index 900b71080..785b21dd0 100644 --- a/csunplugged/general/views.py +++ b/csunplugged/general/views.py @@ -4,14 +4,6 @@ class GeneralIndexView(TemplateView): template_name = 'general/index.html' - def get_context_data(self, **kwargs): ...
celery__celery-6757
4.4 silently changes the Inspect API <!-- Please fill this template entirely and do not erase parts of it. We reserve the right to close without a response bug reports which are incomplete. --> # Checklist <!-- To check an item on the list replace [ ] with [x]. --> - [x] I have checked the [issues list](http...
[ { "content": "\"\"\"Worker Remote Control Client.\n\nClient for worker remote control commands.\nServer implementation is in :mod:`celery.worker.control`.\nThere are two types of remote control commands:\n\n* Inspect commands: Does not have side effects, will usually just return some value\n found in the worke...
[ { "content": "\"\"\"Worker Remote Control Client.\n\nClient for worker remote control commands.\nServer implementation is in :mod:`celery.worker.control`.\nThere are two types of remote control commands:\n\n* Inspect commands: Does not have side effects, will usually just return some value\n found in the worke...
diff --git a/celery/app/control.py b/celery/app/control.py index a35f5cec246..05b7012ac3d 100644 --- a/celery/app/control.py +++ b/celery/app/control.py @@ -431,7 +431,8 @@ def __init__(self, app=None): self.mailbox = self.Mailbox( app.conf.control_exchange, type='fanout', - ...
DataDog__dd-agent-1443
[zookeeper] bytes_outstanding metric returns number of requests served by zk node User checking through the ZooKeeper check noticed that the bytes_outsanding metric the DD agent is scrapping is not bytes, but rather the number of inflight requests currently being serviced by the ZK node. https://github.com/apache/zook...
[ { "content": "'''\nParses the response from zookeeper's `stat` admin command, which looks like:\n\n```\nZookeeper version: 3.2.2--1, built on 03/16/2010 07:31 GMT\nClients:\n /10.42.114.160:32634[1](queued=0,recved=12,sent=0)\n /10.37.137.74:21873[1](queued=0,recved=53613,sent=0)\n /10.37.137.74:21876[1](queued...
[ { "content": "'''\nParses the response from zookeeper's `stat` admin command, which looks like:\n\n```\nZookeeper version: 3.2.2--1, built on 03/16/2010 07:31 GMT\nClients:\n /10.42.114.160:32634[1](queued=0,recved=12,sent=0)\n /10.37.137.74:21873[1](queued=0,recved=53613,sent=0)\n /10.37.137.74:21876[1](queued...
diff --git a/checks.d/zk.py b/checks.d/zk.py index bbb7bde966..3c9d7ca1a8 100644 --- a/checks.d/zk.py +++ b/checks.d/zk.py @@ -175,7 +175,10 @@ def parse_stat(self, buf): # Outstanding: 0 _, value = buf.readline().split(':') + # Fixme: This metric name is wrong. It should be removed in a majo...
google__osv.dev-1044
"withdrawn" entries not getting exported correctly Identified by @andrewpollock : https://github.com/google/osv.dev/blob/26050deb42785bc5a4dc7d802eac8e7f95135509/docker/exporter/exporter.py#L94 withdrawn entries are marked as status = INVALID in our DB, so they're not included. They should be included when we...
[ { "content": "#!/usr/bin/env python3\n# Copyright 2021 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# Unl...
[ { "content": "#!/usr/bin/env python3\n# Copyright 2021 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# Unl...
diff --git a/docker/exporter/exporter.py b/docker/exporter/exporter.py index ae06447a674..2cfa1372563 100755 --- a/docker/exporter/exporter.py +++ b/docker/exporter/exporter.py @@ -91,7 +91,7 @@ def _export_ecosystem_to_bucket(self, ecosystem, tmp_dir): zip_path = os.path.join(tmp_dir, 'all.zip') with zipfile...
comfyanonymous__ComfyUI-2859
Perp-Neg implementation is wrong, parallel component not ignored https://github.com/comfyanonymous/ComfyUI/blob/18c151b3e3f6838fab4028e7a8ba526e30e610d3/comfy_extras/nodes_perpneg.py#L38-L40 The Perp-Neg node does not match the [paper](https://arxiv.org/pdf/2304.04968.pdf) (pytorch code in Appendix A.1). When posit...
[ { "content": "import torch\nimport comfy.model_management\nimport comfy.sample\nimport comfy.samplers\nimport comfy.utils\n\n\nclass PerpNeg:\n @classmethod\n def INPUT_TYPES(s):\n return {\"required\": {\"model\": (\"MODEL\", ),\n \"empty_conditioning\": (\"CONDITIONING...
[ { "content": "import torch\nimport comfy.model_management\nimport comfy.sample\nimport comfy.samplers\nimport comfy.utils\n\n\nclass PerpNeg:\n @classmethod\n def INPUT_TYPES(s):\n return {\"required\": {\"model\": (\"MODEL\", ),\n \"empty_conditioning\": (\"CONDITIONING...
diff --git a/comfy_extras/nodes_perpneg.py b/comfy_extras/nodes_perpneg.py index 45e4d418f4f..64bbc1dcd42 100644 --- a/comfy_extras/nodes_perpneg.py +++ b/comfy_extras/nodes_perpneg.py @@ -35,7 +35,7 @@ def cfg_function(args): pos = noise_pred_pos - noise_pred_nocond neg = noise_pred_neg - n...
secdev__scapy-4011
VLAN tag has incorrect field name ### Brief description The 802.1Q VLAN tag object (`Dot1Q`) has an incorrectly-named field. According to the IEEE specs, the fields are PCP, DEI, and VID. Scapy uses `prio` and `vlan` for PCP and VID, which are reasonable. But the DEI bit is called `id`, which is incorrect and could...
[ { "content": "# SPDX-License-Identifier: GPL-2.0-only\n# This file is part of Scapy\n# See https://scapy.net/ for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n\n\"\"\"\nClasses and functions for layer 2 protocols.\n\"\"\"\n\nimport itertools\nimport socket\nimport struct\nimport time\n\n...
[ { "content": "# SPDX-License-Identifier: GPL-2.0-only\n# This file is part of Scapy\n# See https://scapy.net/ for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n\n\"\"\"\nClasses and functions for layer 2 protocols.\n\"\"\"\n\nimport itertools\nimport socket\nimport struct\nimport time\n\n...
diff --git a/scapy/layers/l2.py b/scapy/layers/l2.py index c0da4e4d324..e7973a1cda8 100644 --- a/scapy/layers/l2.py +++ b/scapy/layers/l2.py @@ -371,9 +371,12 @@ class Dot1Q(Packet): name = "802.1Q" aliastypes = [Ether] fields_desc = [BitField("prio", 0, 3), - BitField("id", 0, 1), + ...
great-expectations__great_expectations-1229
Great Expectations is still marked as Python 2 compatible It looks like running `pip install great_expectations==0.9.7` in a Python 2 environment starts working, before failing when pulling `marshmallow`. This is expected since this PR: https://github.com/great-expectations/great_expectations/pull/1187 but on PyPI, GE ...
[ { "content": "from setuptools import setup, find_packages\nimport versioneer\n\n# Parse requirements.txt\nwith open('requirements.txt') as f:\n required = f.read().splitlines()\n\n#try:\n# import pypandoc\n# long_description = pypandoc.convert_file('README.md', 'rst')\n#except (IOError, ImportError):\n...
[ { "content": "from setuptools import setup, find_packages\nimport versioneer\n\n# Parse requirements.txt\nwith open('requirements.txt') as f:\n required = f.read().splitlines()\n\n#try:\n# import pypandoc\n# long_description = pypandoc.convert_file('README.md', 'rst')\n#except (IOError, ImportError):\n...
diff --git a/setup.py b/setup.py index 73a9c08176e3..121663d0a7ce 100644 --- a/setup.py +++ b/setup.py @@ -42,8 +42,6 @@ 'Topic :: Software Development', 'Topic :: Software Development :: Testing', 'License :: OSI Approved :: Apache Software License', - 'Programming Language :: Python ...
blakeblackshear__frigate-5087
[Support]: Docker (0.12.0-beta2-tensorrt) exception trying to load libnvrtc.so (not found)? ### Describe the problem you are having I'm at a loss and hoping for any suggestions. Basically I'm trying to get a TensorRT detector working with `blakeblackshear/frigate:0.12.0-beta2-tensorrt` (Docker compose config). ...
[ { "content": "import logging\n\nimport ctypes\nimport numpy as np\n\ntry:\n import tensorrt as trt\n from cuda import cuda\n\n TRT_SUPPORT = True\nexcept ModuleNotFoundError as e:\n TRT_SUPPORT = False\n\nfrom frigate.detectors.detection_api import DetectionApi\nfrom frigate.detectors.detector_confi...
[ { "content": "import logging\n\nimport ctypes\nimport numpy as np\n\ntry:\n import tensorrt as trt\n from cuda import cuda\n\n TRT_SUPPORT = True\nexcept ModuleNotFoundError as e:\n TRT_SUPPORT = False\n\nfrom frigate.detectors.detection_api import DetectionApi\nfrom frigate.detectors.detector_confi...
diff --git a/Dockerfile b/Dockerfile index d03576919a..18f528cc63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -269,7 +269,9 @@ COPY --from=rootfs / / # Frigate w/ TensorRT Support as separate image FROM frigate AS frigate-tensorrt RUN --mount=type=bind,from=trt-wheels,source=/trt-wheels,target=/deps/trt-wheels \ - ...
TheAlgorithms__Python-11156
pre-commit on windows fails on Validate filenames ### Repository commit 1faf10b5c2dff8cef3f5d59f60a126bd19bb1c44 ### Python version (python --version) Python 3.11.3 ### Dependencies version (pip freeze) ``` absl-py==1.4.0 astunparse==1.6.3 beautifulsoup4==4.12.2 cachetools==5.3.0 certifi==2023.5.7 cffi==1.15...
[ { "content": "#!/usr/bin/env python3\n\nimport os\nfrom collections.abc import Iterator\n\n\ndef good_file_paths(top_dir: str = \".\") -> Iterator[str]:\n for dir_path, dir_names, filenames in os.walk(top_dir):\n dir_names[:] = [d for d in dir_names if d != \"scripts\" and d[0] not in \"._\"]\n ...
[ { "content": "#!/usr/bin/env python3\n\nimport os\nfrom collections.abc import Iterator\n\n\ndef good_file_paths(top_dir: str = \".\") -> Iterator[str]:\n for dir_path, dir_names, filenames in os.walk(top_dir):\n dir_names[:] = [\n d\n for d in dir_names\n if d != \"sc...
diff --git a/scripts/build_directory_md.py b/scripts/build_directory_md.py index 24bc00cd036f..aa95b95db4b5 100755 --- a/scripts/build_directory_md.py +++ b/scripts/build_directory_md.py @@ -6,7 +6,11 @@ def good_file_paths(top_dir: str = ".") -> Iterator[str]: for dir_path, dir_names, filenames in os.walk(top_...
cookiecutter__cookiecutter-django-2567
Write tests for the DRF setup ## Description A new option has been added to bring support for DRF in #2224. However, this is currently not tested. We should write tests covering various components of the DRF option and remove them when the user opts out.
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init...
[ { "content": "\"\"\"\nNOTE:\n the below code is to be maintained Python 2.x-compatible\n as the whole Cookiecutter Django project initialization\n can potentially be run in Python 2.x environment\n (at least so we presume in `pre_gen_project.py`).\n\nTODO: ? restrict Cookiecutter Django project init...
diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index ad1db3ee63..13d0ff00a4 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -299,6 +299,16 @@ def remove_aws_dockerfile(): def remove_drf_starter_files(): os.remove(os.path.join("config", "api_router.py")) shutil.rm...
mne-tools__mne-bids-1091
CI: Problem with `gen_cli.py` see: https://app.circleci.com/pipelines/github/mne-tools/mne-bids/4785/workflows/21ad6804-1cc2-42dd-9133-f24de2ea3db5/jobs/6923 ``` Traceback (most recent call last): File "/home/circleci/mne_bids_env/lib/python3.9/site-packages/sphinx/events.py", line 94, in emit results.appen...
[ { "content": "\"\"\"Custom sphinx extension to generate docs for the command line interface.\n\nInspired by MNE-Python's `gen_commands.py`\nsee: github.com/mne-tools/mne-python/blob/main/doc/sphinxext/gen_commands.py\n\"\"\"\n# Authors: Eric Larson <larson.eric.d@gmail.com>\n# Alexandre Gramfort <alexa...
[ { "content": "\"\"\"Custom sphinx extension to generate docs for the command line interface.\n\nInspired by MNE-Python's `gen_commands.py`\nsee: github.com/mne-tools/mne-python/blob/main/doc/sphinxext/gen_commands.py\n\"\"\"\n# Authors: Eric Larson <larson.eric.d@gmail.com>\n# Alexandre Gramfort <alexa...
diff --git a/doc/sphinxext/gen_cli.py b/doc/sphinxext/gen_cli.py index 09ff9c362..b8f2b4a50 100644 --- a/doc/sphinxext/gen_cli.py +++ b/doc/sphinxext/gen_cli.py @@ -76,8 +76,7 @@ def generate_cli_rst(app=None): cmd_name = fname[:-3] run_name = op.join(cli_path, fname) output, _ = ...
bookwyrm-social__bookwyrm-882
Book context missing in boosts from remote posts **Describe the bug** In some cases, a post federates and the associated book is not shown. **Screenshots** Screenshot from a review where the associated book is not shown. It's a remote post and the booster is on another instance as well. ![image](https://user-imag...
[ { "content": "\"\"\" basics for an activitypub serializer \"\"\"\nfrom dataclasses import dataclass, fields, MISSING\nfrom json import JSONEncoder\n\nfrom django.apps import apps\nfrom django.db import IntegrityError, transaction\n\nfrom bookwyrm.connectors import ConnectorException, get_data\nfrom bookwyrm.tas...
[ { "content": "\"\"\" basics for an activitypub serializer \"\"\"\nfrom dataclasses import dataclass, fields, MISSING\nfrom json import JSONEncoder\n\nfrom django.apps import apps\nfrom django.db import IntegrityError, transaction\n\nfrom bookwyrm.connectors import ConnectorException, get_data\nfrom bookwyrm.tas...
diff --git a/bookwyrm/activitypub/base_activity.py b/bookwyrm/activitypub/base_activity.py index 768eb20848..452f61e032 100644 --- a/bookwyrm/activitypub/base_activity.py +++ b/bookwyrm/activitypub/base_activity.py @@ -265,7 +265,8 @@ def resolve_remote_id( "Could not connect to host for remote_id in: %s" ...
Pyomo__pyomo-810
Pyomo 5.6 CPLEX "Unallowed character (:) found in CPLEX log file" ValueError on Windows Hi, After installing Pyomo 5.6, my unit tests fail on Windows 7. Here are the details: filename = 'C:\\Users\\<username>\\AppData\\Local\\Temp\\tmp9v95r1qz.cplex.log' description = 'log' def _validate_file_name(cplex, ...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
[ { "content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin...
diff --git a/pyomo/solvers/plugins/solvers/CPLEX.py b/pyomo/solvers/plugins/solvers/CPLEX.py index e5b36ee3fd4..347bf734246 100644 --- a/pyomo/solvers/plugins/solvers/CPLEX.py +++ b/pyomo/solvers/plugins/solvers/CPLEX.py @@ -62,7 +62,7 @@ def _validate_file_name(cplex, filename, description): "CPLEX or...
facebookresearch__hydra-2124
[Bug?] hydra.runtime.choices seems not to reflect current choice during multi-run # 🐛 Bug ## Description <!-- A clear and concise description of what the bug is. --> config value `${hydra:runtime.choices}` seems not to reflect current choice under multi-run settings. ## Checklist - [x] I checked on the latest...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport copy\nimport os\nimport re\nimport sys\nimport warnings\nfrom collections import defaultdict\nfrom textwrap import dedent\nfrom typing import Any, Dict, List, MutableSequence, Optional\n\nfrom omegaconf import Container...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nimport copy\nimport os\nimport re\nimport sys\nimport warnings\nfrom collections import defaultdict\nfrom textwrap import dedent\nfrom typing import Any, Dict, List, MutableSequence, Optional\n\nfrom omegaconf import Container...
diff --git a/hydra/_internal/config_loader_impl.py b/hydra/_internal/config_loader_impl.py index 9ad6c0e0e76..b5586d07319 100644 --- a/hydra/_internal/config_loader_impl.py +++ b/hydra/_internal/config_loader_impl.py @@ -311,9 +311,6 @@ def load_sweep_config( run_mode=RunMode.RUN, ) - wit...
vispy__vispy-995
Allow make.py test flake to run docstring tests as well As of now, `make.py test flake` does _not_ test the docstrings, which means the docstring tests present at `vispy/util/tests/test_docstring_parameters.py` need to be run separately. Forgetting that step means waiting for the CI to pass the build, have that fail ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright (c) 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for mo\n\n\"\"\"\nConvenience tools for vispy developers\n\n make.py command [arg]\n\n\"\"\"\n\nfrom __future__ import division, print_functi...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright (c) 2015, Vispy Development Team.\n# Distributed under the (new) BSD License. See LICENSE.txt for mo\n\n\"\"\"\nConvenience tools for vispy developers\n\n make.py command [arg]\n\n\"\"\"\n\nfrom __future__ import division, print_functi...
diff --git a/Makefile b/Makefile index a1fa756525..2200956653 100755 --- a/Makefile +++ b/Makefile @@ -53,6 +53,9 @@ test3: clean-test flake: clean-test python make test flake +docs: clean-test + python make test docs + flake3: clean-test python3 make test flake diff --git a/make/make.py b/make/make.py index ...
fossasia__open-event-server-3611
Export of Documents leads to 404 When Trying to export the event as Documents (json files) the page reports that my request was completed successfully. However, when clicking on the download link I get a 404. In this case, the exact link visited was: https://eventyay.com/notifications/opev/open_eventhttps://s...
[ { "content": "import json\nimport os\nimport shutil\nfrom collections import OrderedDict\nfrom datetime import datetime\n\nimport requests\nfrom flask import current_app as app\nfrom flask import request, g, url_for\nfrom flask_restplus import marshal\n\nfrom app.helpers.data import save_to_db\nfrom app.helpers...
[ { "content": "import json\nimport os\nimport shutil\nfrom collections import OrderedDict\nfrom datetime import datetime\n\nimport requests\nfrom flask import current_app as app\nfrom flask import request, g, url_for\nfrom flask_restplus import marshal\n\nfrom app.helpers.data import save_to_db\nfrom app.helpers...
diff --git a/app/api/helpers/export_helpers.py b/app/api/helpers/export_helpers.py index e720348d9f..2b13fe9074 100644 --- a/app/api/helpers/export_helpers.py +++ b/app/api/helpers/export_helpers.py @@ -217,7 +217,7 @@ def export_event_json(event_id, settings): uploaded_file = UploadedFile(dir_path, dir_path.rspli...
yt-dlp__yt-dlp-4447
[HiDive]: Login fails when both cookies and netrc are given ### Checklist - [X] I'm reporting a broken site - [X] I've verified that I'm running yt-dlp version **2022.03.08.1** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit) - [X] I've checked that all provided URLs are alive...
[ { "content": "import re\n\nfrom .common import InfoExtractor\nfrom ..utils import (\n ExtractorError,\n int_or_none,\n try_get,\n url_or_none,\n urlencode_postdata,\n)\n\n\nclass HiDiveIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)?hidive\\.com/stream/(?P<id>(?P<title>[^/]+)/(?P<key>[...
[ { "content": "import re\n\nfrom .common import InfoExtractor\nfrom ..utils import (\n ExtractorError,\n int_or_none,\n try_get,\n url_or_none,\n urlencode_postdata,\n)\n\n\nclass HiDiveIE(InfoExtractor):\n _VALID_URL = r'https?://(?:www\\.)?hidive\\.com/stream/(?P<id>(?P<title>[^/]+)/(?P<key>[...
diff --git a/yt_dlp/extractor/hidive.py b/yt_dlp/extractor/hidive.py index a6a71d630786..50d49adf066d 100644 --- a/yt_dlp/extractor/hidive.py +++ b/yt_dlp/extractor/hidive.py @@ -38,7 +38,9 @@ def _perform_login(self, username, password): webpage = self._download_webpage(self._LOGIN_URL, None) form = ...
kedro-org__kedro-3314
Add validation to node tags ## Description Currently we do not validate or restrict the format of tags that can be added to nodes. This is inconsistent with other user-defined values. As part of #2014 it was agreed that tags should be subject to the same constraints as node names (see: https://github.com/kedro-org/ked...
[ { "content": "\"\"\"This module provides user-friendly functions for creating nodes as parts\nof Kedro pipelines.\n\"\"\"\nfrom __future__ import annotations\n\nimport copy\nimport inspect\nimport logging\nimport re\nfrom collections import Counter\nfrom typing import Any, Callable, Iterable\nfrom warnings impo...
[ { "content": "\"\"\"This module provides user-friendly functions for creating nodes as parts\nof Kedro pipelines.\n\"\"\"\nfrom __future__ import annotations\n\nimport copy\nimport inspect\nimport logging\nimport re\nfrom collections import Counter\nfrom typing import Any, Callable, Iterable\nfrom warnings impo...
diff --git a/RELEASE.md b/RELEASE.md index 0033928240..0b67ad73e1 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -12,6 +12,7 @@ ## Bug fixes and other changes * Added a new field `add-ons` to `pyproject.toml` when a project is created. * Reduced `spaceflights` data to minimise waiting times during tutorial execution. +...
mitmproxy__mitmproxy-2642
Bug in expected_http_body_size ##### Steps to reproduce the problem: 1. Any response with more than one content-length header ##### Any other comments? What have you tried so far? headers is MultiDict so this: size = int(headers["content-length"]) can be change to: size = int(headers.get_all("content-leng...
[ { "content": "import time\nimport sys\nimport re\n\nfrom mitmproxy.net.http import request\nfrom mitmproxy.net.http import response\nfrom mitmproxy.net.http import headers\nfrom mitmproxy.net.http import url\nfrom mitmproxy.net import check\nfrom mitmproxy import exceptions\n\n\ndef get_header_tokens(headers, k...
[ { "content": "import time\nimport sys\nimport re\n\nfrom mitmproxy.net.http import request\nfrom mitmproxy.net.http import response\nfrom mitmproxy.net.http import headers\nfrom mitmproxy.net.http import url\nfrom mitmproxy.net import check\nfrom mitmproxy import exceptions\n\n\ndef get_header_tokens(headers, k...
diff --git a/mitmproxy/net/http/http1/read.py b/mitmproxy/net/http/http1/read.py index 491135ac08..0f70b1a753 100644 --- a/mitmproxy/net/http/http1/read.py +++ b/mitmproxy/net/http/http1/read.py @@ -210,7 +210,11 @@ def expected_http_body_size(request, response=None): return None if "content-length" in he...
fedora-infra__bodhi-1175
CLI crashes when karma is set to None Updates with None on the stable or unstable karma thresholds will cause a crash: ``` rbarlow@planck ~/d/bodhi> time vagrant ssh -c "bodhi updates query --updateid FEDORA-2016-37c1b46c83" Traceback (most recent call last): File "/usr/bin/bodhi", line 9, in <module> load...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2007-2016 Red Hat, Inc.\n# This file is part of bodhi\n#\n# This software is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# versi...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2007-2016 Red Hat, Inc.\n# This file is part of bodhi\n#\n# This software is free software; you can redistribute it and/or\n# modify it under the terms of the GNU Lesser General Public\n# License as published by the Free Software Foundation; either\n# versi...
diff --git a/bodhi/client/bindings.py b/bodhi/client/bindings.py index bb875a3021..3b9a95dcfd 100644 --- a/bodhi/client/bindings.py +++ b/bodhi/client/bindings.py @@ -427,7 +427,7 @@ def update_str(self, update, minimal=False): Status: %s Type: %s Karma: %d - Autokarma: %s [%d, %d]""" % (update['...
pydantic__pydantic-9566
Increase tests coverage for new pipeline API We're introducing an experimental pipeline API in https://github.com/pydantic/pydantic/pull/9459. The test coverage on this new file is quite low. We figured this could be a great opportunity for some eager new contributors to get their hands dirty with: * Writing some...
[ { "content": "\"\"\"Experimental pipeline API functionality. Be careful with this API, it's subject to change.\"\"\"\n\nfrom __future__ import annotations\n\nimport datetime\nimport operator\nimport re\nfrom collections import deque\nfrom collections.abc import Container\nfrom dataclasses import dataclass\nfrom...
[ { "content": "\"\"\"Experimental pipeline API functionality. Be careful with this API, it's subject to change.\"\"\"\n\nfrom __future__ import annotations\n\nimport datetime\nimport operator\nimport re\nfrom collections import deque\nfrom collections.abc import Container\nfrom dataclasses import dataclass\nfrom...
diff --git a/pydantic/experimental/pipeline.py b/pydantic/experimental/pipeline.py index 4fbe011a66d..023a55e6cd3 100644 --- a/pydantic/experimental/pipeline.py +++ b/pydantic/experimental/pipeline.py @@ -112,7 +112,7 @@ def validate_as(self, tp: type[_NewOutT] | Any = Ellipsis, *, strict: bool = Fal Types are...
weecology__retriever-1234
UnboundLocalError when deleting an item from keywords key in json scripts I tried deleting an item from the list of the key `keywords` in the dataset scripts, but it threw an exception `UnboundLocalError: local variable 'del_key' referenced before assignment`.
[ { "content": "from __future__ import print_function\n\nimport glob\nimport json\nimport os\nimport re\nfrom builtins import input\nfrom time import sleep\n\nfrom retriever.lib.defaults import HOME_DIR, ENCODING\nfrom retriever.lib.scripts import SCRIPT_LIST\n\nshort_names = [script.name.lower() for script in SC...
[ { "content": "from __future__ import print_function\n\nimport glob\nimport json\nimport os\nimport re\nfrom builtins import input\nfrom time import sleep\n\nfrom retriever.lib.defaults import HOME_DIR, ENCODING\nfrom retriever.lib.scripts import SCRIPT_LIST\n\nshort_names = [script.name.lower() for script in SC...
diff --git a/retriever/lib/datapackage.py b/retriever/lib/datapackage.py index be851974e..b79bd01e9 100644 --- a/retriever/lib/datapackage.py +++ b/retriever/lib/datapackage.py @@ -356,7 +356,8 @@ def edit_dict(obj, tabwidth=0): if del_val not in obj[key]: print("In...
pyinstaller__pyinstaller-5396
fails to wrap jaraco.text with Python 3.5 <!-- Welcome to the PyInstaller issue tracker! Before creating an issue, please heed the following: 1. This tracker should only be used to report bugs and request features / enhancements to PyInstaller - For questions and general support, use the mailing list, see ...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
[ { "content": "#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2020, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License (version 2\n# or later) with exception for distributing the bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/loader/pyimod03_importers.py b/PyInstaller/loader/pyimod03_importers.py index b5725ef365..2510d98fb0 100644 --- a/PyInstaller/loader/pyimod03_importers.py +++ b/PyInstaller/loader/pyimod03_importers.py @@ -288,6 +288,14 @@ def find_spec(self, fullname, path=None, target=None): # (e.g. ...
Project-MONAI__MONAI-491
Wildcard imports in `monai.losses` **Is your feature request related to a problem? Please describe.** `monai.losses` uses wildcard imports to import the losses from the individual files (e.g. `monai.losses.dice`) This will also import quite a lot of unnecessary things which are imported in those files. **Describ...
[ { "content": "# Copyright 2020 MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable l...
[ { "content": "# Copyright 2020 MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable l...
diff --git a/docs/source/losses.rst b/docs/source/losses.rst index 36f790918d..7479274ada 100644 --- a/docs/source/losses.rst +++ b/docs/source/losses.rst @@ -16,11 +16,20 @@ Segmentation Losses .. autoclass:: DiceLoss :members: +.. autoclass:: Dice + :members: + +.. autoclass:: dice + :members: + `Gener...
biolab__orange3-6383
Select Rows: Remove unused classes does not remove unused classes **What's wrong?** If the box "Remove unused classes" in Select Rows is ticked, unused classes are not removed from matching data **How can we reproduce the problem?** See attached example: Connect Select Rows to the Sailing dataset, define a condit...
[ { "content": "import enum\nfrom collections import OrderedDict\nfrom datetime import datetime, timezone, timedelta\n\nimport numpy as np\n\nfrom AnyQt.QtWidgets import (\n QWidget, QTableWidget, QHeaderView, QComboBox, QLineEdit, QToolButton,\n QMessageBox, QMenu, QListView, QGridLayout, QPushButton, QSiz...
[ { "content": "import enum\nfrom collections import OrderedDict\nfrom datetime import datetime, timezone, timedelta\n\nimport numpy as np\n\nfrom AnyQt.QtWidgets import (\n QWidget, QTableWidget, QHeaderView, QComboBox, QLineEdit, QToolButton,\n QMessageBox, QMenu, QListView, QGridLayout, QPushButton, QSiz...
diff --git a/Orange/widgets/data/owselectrows.py b/Orange/widgets/data/owselectrows.py index 457b4004b0f..a4df71d07bf 100644 --- a/Orange/widgets/data/owselectrows.py +++ b/Orange/widgets/data/owselectrows.py @@ -247,7 +247,8 @@ def __init__(self): box_setting = gui.vBox(self.buttonsArea) self.cb_pa...
paperless-ngx__paperless-ngx-700
[BUG] Healthcheck error with 1.7.0-rc1 ### Description After upgrade to 1.7.0-rc1 the docker healthcheck is no longer working healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000"] I assume this is connected to https://github.com/paperless-ngx/paperless-ngx/pull/674 ### Expected behavi...
[ { "content": "import json\nimport math\nimport multiprocessing\nimport os\nimport re\nfrom typing import Final\nfrom urllib.parse import urlparse\n\nfrom concurrent_log_handler.queue import setup_logging_queues\nfrom django.utils.translation import gettext_lazy as _\nfrom dotenv import load_dotenv\n\n# Tap pape...
[ { "content": "import json\nimport math\nimport multiprocessing\nimport os\nimport re\nfrom typing import Final\nfrom urllib.parse import urlparse\n\nfrom concurrent_log_handler.queue import setup_logging_queues\nfrom django.utils.translation import gettext_lazy as _\nfrom dotenv import load_dotenv\n\n# Tap pape...
diff --git a/docs/configuration.rst b/docs/configuration.rst index 3541f2e07d8..c1f27c5d476 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -170,6 +170,9 @@ PAPERLESS_ALLOWED_HOSTS=<comma-separated-list> Can also be set using PAPERLESS_URL (see above). + If manually set, please remember ...
scrapy__scrapy-4759
Add a job for Python 3.9 to .travis.yml It looks like Travis support specifying such a Python version as `3.9-dev`. While I’m not sure we should officially support Python 3.9 it until its release, running tests on it will allow us to catch any issue early.
[ { "content": "from os.path import dirname, join\nfrom pkg_resources import parse_version\nfrom setuptools import setup, find_packages, __version__ as setuptools_version\n\n\nwith open(join(dirname(__file__), 'scrapy/VERSION'), 'rb') as f:\n version = f.read().decode('ascii').strip()\n\n\ndef has_environment_...
[ { "content": "from os.path import dirname, join\nfrom pkg_resources import parse_version\nfrom setuptools import setup, find_packages, __version__ as setuptools_version\n\n\nwith open(join(dirname(__file__), 'scrapy/VERSION'), 'rb') as f:\n version = f.read().decode('ascii').strip()\n\n\ndef has_environment_...
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 2748bf5febc..02c647da9bd 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,19 +7,21 @@ jobs: strategy: matrix: include: - - python-version: 3.8 + - python-version: 3.9 ...
ansible__ansible-35555
Upper Case Host on ios_config and ios_command fail to connect <!--- Verify first that your issue/request is not already reported on GitHub. Also test if the latest release, and master branch are affected too. --> ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPONENT NAM...
[ { "content": "# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n# (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\nDOCUMENTATION = \"\"\"\n a...
[ { "content": "# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>\n# (c) 2017 Ansible Project\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\nfrom __future__ import (absolute_import, division, print_function)\n__metaclass__ = type\n\nDOCUMENTATION = \"\"\"\n a...
diff --git a/lib/ansible/plugins/connection/paramiko_ssh.py b/lib/ansible/plugins/connection/paramiko_ssh.py index 8704887bae071a..5ca5695032dd05 100644 --- a/lib/ansible/plugins/connection/paramiko_ssh.py +++ b/lib/ansible/plugins/connection/paramiko_ssh.py @@ -324,7 +324,7 @@ def _connect_uncached(self): ...
hydroshare__hydroshare-5196
Resource file list endpoint performance improvements Currently the endpoint (**/hsapi/resource/{id}/files**) is extremely slow. For listing 100 files it takes around **30 sec**. For each file we obtain the **checksum** and file **modified time** from **irods** as part of the file metadata response. Locally, when I turn...
[ { "content": "import os\nfrom datetime import datetime\nfrom dateutil import tz\n\nfrom tempfile import NamedTemporaryFile\nfrom uuid import uuid4\nfrom urllib.parse import urlencode\n\nfrom django.utils.deconstruct import deconstructible\nfrom django.conf import settings\nfrom django.core.files.storage import ...
[ { "content": "import os\nfrom datetime import datetime\nfrom dateutil import tz\n\nfrom tempfile import NamedTemporaryFile\nfrom uuid import uuid4\nfrom urllib.parse import urlencode\n\nfrom django.utils.deconstruct import deconstructible\nfrom django.conf import settings\nfrom django.core.files.storage import ...
diff --git a/django_irods/storage.py b/django_irods/storage.py index 4c587debf5..833d1467f9 100644 --- a/django_irods/storage.py +++ b/django_irods/storage.py @@ -436,7 +436,13 @@ def size(self, name): raise ValidationError( "{} cannot be found in iRODS to retrieve " "file size".format(nam...
networkx__networkx-2489
Reverse breaks DiGraphs with default-hashed objects The NetworkX documentation [states that graph nodes can be any hashable object](https://networkx.github.io/documentation/networkx-1.10/reference/introduction.html#networkx-basics), and the glossary [defines hashable](https://networkx.github.io/documentation/networkx-1...
[ { "content": "# Copyright (C) 2004-2017 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# Pieter Swart <swart@lanl.gov>\n# All rights reserved.\n# BSD license.\n#\n# Authors: Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# ...
[ { "content": "# Copyright (C) 2004-2017 by\n# Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# Pieter Swart <swart@lanl.gov>\n# All rights reserved.\n# BSD license.\n#\n# Authors: Aric Hagberg <hagberg@lanl.gov>\n# Dan Schult <dschult@colgate.edu>\n# ...
diff --git a/networkx/classes/digraph.py b/networkx/classes/digraph.py index 73a59c30c79..2c84b9d3575 100644 --- a/networkx/classes/digraph.py +++ b/networkx/classes/digraph.py @@ -1124,7 +1124,8 @@ def reverse(self, copy=True): H.add_edges_from((v, u, deepcopy(d)) for u, v, d ...
Project-MONAI__MONAI-987
Basis UNet On what paper is your UNet based? The original 2D seems to differ quite a lot from the 3D U-Net by Özgün Çiçek which I'd like to use. Thanks.
[ { "content": "# Copyright 2020 MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable l...
[ { "content": "# Copyright 2020 MONAI Consortium\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# http://www.apache.org/licenses/LICENSE-2.0\n# Unless required by applicable l...
diff --git a/monai/networks/nets/unet.py b/monai/networks/nets/unet.py index 30a6b517c5..ad0e6d375f 100644 --- a/monai/networks/nets/unet.py +++ b/monai/networks/nets/unet.py @@ -38,6 +38,11 @@ def __init__( dropout=0, ) -> None: """ + Enhanced version of UNet which has residual units impl...
matrix-org__synapse-7579
master doesn't send replication traffic unless you have a TCP replication listener the TCP replication listener is unused if you have redis, so you'd expect to be able to remove it (indeed, the [docs](https://github.com/matrix-org/synapse/blob/85155654c52bb9999b6b4bcbcf84cd68505d4c82/docs/workers.md#experimental-suppor...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2017 Vector Creations Ltd\n# Copyright 2020 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright 2017 Vector Creations Ltd\n# Copyright 2020 The Matrix.org Foundation C.I.C.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n...
diff --git a/changelog.d/7579.bugfix b/changelog.d/7579.bugfix new file mode 100644 index 000000000000..54542b60262c --- /dev/null +++ b/changelog.d/7579.bugfix @@ -0,0 +1 @@ +Fix bug where `ReplicationStreamer` was not always started when replication was enabled. Bug introduced in v1.14.0rc1. diff --git a/synapse/repl...
mozmeao__snippets-service-561
Save as new sets published to True Clicking `save as new` when editing a snippet always sets `published` property to `True`. This is a regression that appeared after #546
[ { "content": "import re\nfrom datetime import datetime, timedelta\n\nfrom django.contrib import admin\nfrom django.db import transaction\nfrom django.db.models import TextField, Q\nfrom django.template.loader import get_template\nfrom django.utils.encoding import force_text\n\nfrom advanced_filters.admin import...
[ { "content": "import re\nfrom datetime import datetime, timedelta\n\nfrom django.contrib import admin\nfrom django.db import transaction\nfrom django.db.models import TextField, Q\nfrom django.template.loader import get_template\nfrom django.utils.encoding import force_text\n\nfrom advanced_filters.admin import...
diff --git a/snippets/base/admin.py b/snippets/base/admin.py index b49519b58..080435678 100644 --- a/snippets/base/admin.py +++ b/snippets/base/admin.py @@ -142,7 +142,7 @@ def change_view(self, request, *args, **kwargs): if request.method == 'POST' and '_saveasnew' in request.POST: # Always saved...
ansible__molecule-3085
Double-nested ansible_collections folders cause errors # Issue Type - Bug report # Molecule and Ansible details ansible - 3.1.0 ansible-base - 2.10.6 molecule - 3.2.3 Molecule installation method (one of): - pip Ansible installation method (one of): - pip # Desired Behavior Because of some ...
[ { "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# rights...
[ { "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# rights...
diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 1dd0af1ccc..360125a69b 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -25,17 +25,17 @@ jobs: - tox_env: lint - tox_env: docs - tox_env: py36 - PREFIX: PYTEST_REQPASS=429 + ...
DistrictDataLabs__yellowbrick-1265
Add description of parameter to docstring @Haebuk had opened a PR to deal with this but closed it https://github.com/DistrictDataLabs/yellowbrick/pull/1233 We just need to add this line below to the KneeLocator docstring for `y` located in yellowbrick/utils/kneed.py "A list of k scores corresponding to each valu...
[ { "content": "# yellowbrick.utils.kneed\n# A port of the knee-point detection package, kneed.\n#\n# Author: Kevin Arvai\n# Author: Pradeep Singh\n# Created: Mon Apr 15 09:43:18 2019 -0400\n#\n# Copyright (C) 2017 Kevin Arvai\n# All rights reserved.\n# Redistribution and use in source and binary forms, with...
[ { "content": "# yellowbrick.utils.kneed\n# A port of the knee-point detection package, kneed.\n#\n# Author: Kevin Arvai\n# Author: Pradeep Singh\n# Created: Mon Apr 15 09:43:18 2019 -0400\n#\n# Copyright (C) 2017 Kevin Arvai\n# All rights reserved.\n# Redistribution and use in source and binary forms, with...
diff --git a/yellowbrick/utils/kneed.py b/yellowbrick/utils/kneed.py index 6dba7b4bf..4c117bd9b 100644 --- a/yellowbrick/utils/kneed.py +++ b/yellowbrick/utils/kneed.py @@ -59,7 +59,8 @@ class KneeLocator(object): A list of k values representing the no. of clusters in KMeans Clustering algorithm. y : lis...
mozilla__bugbug-1094
Support multiclass classifiers in bug_classifier script The bug_classifier script at scripts/bug_classifier.py currently assumes the model is a binary model. We need to make it work for multiclass models too (e.g. defectenhancementtask). In particular, https://github.com/mozilla/bugbug/blob/65bf1b4604ca55a67490d27ad...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport argparse\nimport os\nfrom logging import INFO, basicConfig, getLogger\n\nimport numpy as np\nimport requests\n\nfrom bugbug import bugzilla\nfrom bugbug.models import get_model_class\nfrom bugbug.utils import download_check_etag, zstd_decompress\n\nMODELS_WITH_TYP...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport argparse\nimport os\nfrom logging import INFO, basicConfig, getLogger\n\nimport numpy as np\nimport requests\n\nfrom bugbug import bugzilla\nfrom bugbug.models import get_model_class\nfrom bugbug.utils import download_check_etag, zstd_decompress\n\nMODELS_WITH_TYP...
diff --git a/scripts/bug_classifier.py b/scripts/bug_classifier.py index 55b19ebb45..d25b096530 100644 --- a/scripts/bug_classifier.py +++ b/scripts/bug_classifier.py @@ -69,10 +69,13 @@ def classify_bugs(model_name, classifier, bug_id): else: probas = model.classify(bug, probabilities=True, impor...