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
⌀
tornadoweb__tornado-2972
Minor bug in WSGIContainer docstring. https://github.com/tornadoweb/tornado/blob/2047e7ae3c825bf52dad10cc8402d09e11091bc1/tornado/wsgi.py#L76 This line (in a docstring showing how to use WSGIContainer) is wrong. It should say: return [b"Hello world!\n"] ... because WSGI requires a sequence of ...
[ { "content": "#\n# Copyright 2009 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "#\n# Copyright 2009 Facebook\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this file except in compliance with the License. You may obtain\n# a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/tornado/wsgi.py b/tornado/wsgi.py index 825b395cf5..55ece9a22b 100644 --- a/tornado/wsgi.py +++ b/tornado/wsgi.py @@ -73,7 +73,7 @@ def simple_app(environ, start_response): status = "200 OK" response_headers = [("Content-type", "text/plain")] start_response(status, re...
HypothesisWorks__hypothesis-3406
Set appropriate `stacklevel=` in all calls to `warnings.warn()` I noticed [in this lovely video](https://youtu.be/mkgd9iOiICc?t=1039) that the warning for `st.integers().example()` pointed into the Hypothesis internals, rather than at the calling user code. The solution is to set `stacklevel=` in: - [x] `SearchStra...
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Copyright the Hypothesis Authors.\n# Individual contributors are listed in AUTHORS.rst and the git log.\n#\n# This Source Code Form is subject to the terms of the Mozilla Public License...
[ { "content": "# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis/\n#\n# Copyright the Hypothesis Authors.\n# Individual contributors are listed in AUTHORS.rst and the git log.\n#\n# This Source Code Form is subject to the terms of the Mozilla Public License...
diff --git a/AUTHORS.rst b/AUTHORS.rst index 6e487a9ddd..47c0653d3f 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -73,6 +73,7 @@ their individual contributions. * `Ivan Tham <https://github.com/pickfire>`_ * `Jack Massey <https://github.com/massey101>`_ * `Jakub Nabaglo <https://github.com/nbgl>`_ (j@nab.gl) +* `Jam...
Lightning-AI__torchmetrics-1895
BinaryAUROC raises IndexError with max_fpr > 0 and only true edges ## 🐛 Bug ### To Reproduce ```python from torchmetrics.classification import BinaryAUROC from torch import Tensor as T m = BinaryAUROC(max_fpr=0.01) # index error raised here m(T([0, 0.5, 0.9]), T([1, 1, 1])) ``` If, in contrast, `Binar...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ba3977f207..c5083315607 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed the use of `max_fpr` in `AUROC` metric when only one class is present ([#1895](h...
cupy__cupy-1020
Compilation error when a fused function with `input_num` does not return a value ``` @cupy.fuse(input_num=0) def f(x): pass x = cupy.array([1], 'f') print(f(x)) ``` It causes an error: ``` /tmp/tmpyxoqf_hz/kern.cu(11): error: "v0" has already been declared in the current scope /tmp/tmpyxoqf_hz/kern.cu...
[ { "content": "import functools\nimport six\nfrom six.moves import builtins\nimport string\nimport threading\nimport warnings\n\nimport numpy\n\nfrom cupy.core import core\nfrom cupy import creation\nfrom cupy import logic\nfrom cupy import math\nfrom cupy import sorting\nfrom cupy import statistics\n\n\n_thread...
[ { "content": "import functools\nimport six\nfrom six.moves import builtins\nimport string\nimport threading\nimport warnings\n\nimport numpy\n\nfrom cupy.core import core\nfrom cupy import creation\nfrom cupy import logic\nfrom cupy import math\nfrom cupy import sorting\nfrom cupy import statistics\n\n\n_thread...
diff --git a/cupy/core/fusion.py b/cupy/core/fusion.py index 002e844d7fb..4c08165d98f 100644 --- a/cupy/core/fusion.py +++ b/cupy/core/fusion.py @@ -503,7 +503,9 @@ def _get_fusion(func, nin, reduce, post_map, identity, input_types, name): out_vars = [_normalize_arg(copy(_), mem) for _ in out_refs] nout = len...
networkx__networkx-6674
Improve test coverage for clique.py There is a line left uncovered in https://app.codecov.io/gh/networkx/networkx/blob/main/networkx/algorithms/approximation/clique.py and I am looking into it. There is a bit of an issue though when I try G = None. An attribute error is raised not a value error. Steps to Reproduce ...
[ { "content": "\"\"\"Functions for computing large cliques and maximum independent sets.\"\"\"\nimport networkx as nx\nfrom networkx.algorithms.approximation import ramsey\nfrom networkx.utils import not_implemented_for\n\n__all__ = [\n \"clique_removal\",\n \"max_clique\",\n \"large_clique_size\",\n ...
[ { "content": "\"\"\"Functions for computing large cliques and maximum independent sets.\"\"\"\nimport networkx as nx\nfrom networkx.algorithms.approximation import ramsey\nfrom networkx.utils import not_implemented_for\n\n__all__ = [\n \"clique_removal\",\n \"max_clique\",\n \"large_clique_size\",\n ...
diff --git a/networkx/algorithms/approximation/clique.py b/networkx/algorithms/approximation/clique.py index cf74c95ed37..1e46294319c 100644 --- a/networkx/algorithms/approximation/clique.py +++ b/networkx/algorithms/approximation/clique.py @@ -118,9 +118,6 @@ def max_clique(G): BIT Numerical Mathematics, 32(2...
DataBiosphere__toil-1103
Global name 'config' not defined for getting azure job store `global name 'config' is not defined` error found in `toil/common.py` on line 617 in `getJobStore` when running toil version 3.3.1 on an Azure cluster. Error does not show up for toil version 3.2.1 and the toil script runs to completion. File `.toilAzureCrede...
[ { "content": "# Copyright (C) 2015-2016 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-2016 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/common.py b/src/toil/common.py index 911e86e37d..caf6a4b3f1 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -633,7 +633,7 @@ def getJobStore(locator): elif name == 'azure': from toil.jobStores.azureJobStore import AzureJobStore account, namePrefix = r...
numba__numba-1604
remove deprecated usage of llvmlite get_pointer_to_function() ``` ---> 31 from numba import jit, types 32 /usr/local/anaconda/lib/python2.7/site-packages/numba/__init__.py in <module>() 22 23 # Re export vectorize decorators ---> 24 from .npyufunc import vectorize, guvectorize 25 26 # Re ex...
[ { "content": "\"\"\"\nThis file implements the code-generator for parallel-vectorize.\n\nParallelUFunc is the platform independent base class for generating\nthe thread dispatcher. This thread dispatcher launches threads\nthat execute the generated function of UFuncCore.\nUFuncCore is subclassed to specialize ...
[ { "content": "\"\"\"\nThis file implements the code-generator for parallel-vectorize.\n\nParallelUFunc is the platform independent base class for generating\nthe thread dispatcher. This thread dispatcher launches threads\nthat execute the generated function of UFuncCore.\nUFuncCore is subclassed to specialize ...
diff --git a/numba/npyufunc/parallel.py b/numba/npyufunc/parallel.py index ed6638d5d8d..2f21ee05e42 100644 --- a/numba/npyufunc/parallel.py +++ b/numba/npyufunc/parallel.py @@ -398,12 +398,11 @@ def _make_cas_function(): # Build & Link llmod = ll.parse_assembly(str(mod)) - llfn = llmod.get_function(fn.na...
oppia__oppia-11067
HTTPs calls in frontend should only happen through *backend-api.services We are expecting to make all the https class from a backend-api.services (like [this question-backend-api.service.ts](https://github.com/oppia/oppia/blob/develop/[core/templates/domain/question/question-backend-api.service.ts)).](https://github.co...
[ { "content": "# Copyright 2020 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/licenses/LICENSE-2.0\n#\n...
[ { "content": "# Copyright 2020 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/licenses/LICENSE-2.0\n#\n...
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 85a660b58bb15..e0bc17f9f31f9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -278,7 +278,7 @@ /core/templates/services/local-storage.service*.ts @srijanreddy98 /core/templates/services/nested-directives*.ts @srijanreddy98 /core/templates/services...
googleapis__python-bigquery-326
Add to_api_repr method to Model Same as #299 but for models: `AttributeError: 'Model' object has no attribute 'to_api_repr'` Current workaround: using `model._properties` but object fields like `featureColumns` https://cloud.google.com/bigquery/docs/reference/rest/v2/models#Model will be missing.
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n#...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n#...
diff --git a/google/cloud/bigquery/model.py b/google/cloud/bigquery/model.py index 092d98c2e..1143b71f9 100644 --- a/google/cloud/bigquery/model.py +++ b/google/cloud/bigquery/model.py @@ -317,6 +317,14 @@ def _build_resource(self, filter_fields): def __repr__(self): return "Model(reference={})".format(re...
evennia__evennia-2914
[BUG - Develop] `obj.tags.has` no longer returns `False` when tag is not present #### Describe the bug When checking for the presence of a tag, the `has` method no longer returns `False` for tags that are not present on the object. It only returns `True` matches or nothing. #### To Reproduce Steps to reproduce the...
[ { "content": "\"\"\"\nTags are entities that are attached to objects in the same way as\nAttributes. But contrary to Attributes, which are unique to an\nindividual object, a single Tag can be attached to any number of\nobjects at the same time.\n\nTags are used for tagging, obviously, but the data structure is ...
[ { "content": "\"\"\"\nTags are entities that are attached to objects in the same way as\nAttributes. But contrary to Attributes, which are unique to an\nindividual object, a single Tag can be attached to any number of\nobjects at the same time.\n\nTags are used for tagging, obviously, but the data structure is ...
diff --git a/evennia/typeclasses/tags.py b/evennia/typeclasses/tags.py index 2a0b24d786f..12d30433c3a 100644 --- a/evennia/typeclasses/tags.py +++ b/evennia/typeclasses/tags.py @@ -419,7 +419,7 @@ def has(self, key=None, category=None, return_list=False): if key: for tag_str in make_iter(key): ...
huggingface__transformers-3924
Call to torch.pow() passing integer as exponent isn't per PyTorch docs # 🐛 Bug ## Information I am running the GPT2 pytest and it fails to load in [PyTorch Glow](https://github.com/pytorch/glow) because the model calls _torch.pow()_ with an integer for the _exponent_ parameter. Per the PyTorch documentation (...
[ { "content": "import logging\nimport math\n\nimport torch\nimport torch.nn.functional as F\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef swish(x):\n return x * torch.sigmoid(x)\n\n\ndef _gelu_python(x):\n \"\"\" Original Implementation of the gelu activation function in Google Bert repo when initiall...
[ { "content": "import logging\nimport math\n\nimport torch\nimport torch.nn.functional as F\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef swish(x):\n return x * torch.sigmoid(x)\n\n\ndef _gelu_python(x):\n \"\"\" Original Implementation of the gelu activation function in Google Bert repo when initiall...
diff --git a/src/transformers/activations.py b/src/transformers/activations.py index 86882bb72b51..2028e9c7d8d4 100644 --- a/src/transformers/activations.py +++ b/src/transformers/activations.py @@ -26,7 +26,7 @@ def gelu_new(x): """ Implementation of the gelu activation function currently in Google Bert repo (ide...
SciTools__cartopy-590
Invalid WIDTH value, NumberFormatException when using WMS I am not sure if this is a cartopy bug or if I am doing something wrong. The code below fails to create an image with the error, ``` python Invalid WIDTH value, NumberFormatException : For input string: "273.379119692" ``` I notice that, if I force the `width...
[ { "content": "# (C) British Crown Copyright 2014, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the License, ...
[ { "content": "# (C) British Crown Copyright 2014, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the License, ...
diff --git a/lib/cartopy/io/ogc_clients.py b/lib/cartopy/io/ogc_clients.py index 5cdbcfb0c..bbf32af1a 100644 --- a/lib/cartopy/io/ogc_clients.py +++ b/lib/cartopy/io/ogc_clients.py @@ -233,7 +233,7 @@ def _image_and_extent(self, wms_proj, wms_srs, wms_extent, output_proj, def fetch_raster(self, projection, exten...
easybuilders__easybuild-easyblocks-2696
intel-compilers modules don't set MANPATH With the newer intel-compilers modules (and thus in the intel toolchain starting from 2021a I guess), the MANPATH variable is not set. The IntelBase block seems to look for a man/ subfolder only: https://github.com/easybuilders/easybuild-easyblocks/blob/develop/easybuild/eas...
[ { "content": "# #\n# Copyright 2021-2021 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# ...
[ { "content": "# #\n# Copyright 2021-2021 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# ...
diff --git a/easybuild/easyblocks/i/intel_compilers.py b/easybuild/easyblocks/i/intel_compilers.py index 716eb8bf6f4..75a0b380f80 100644 --- a/easybuild/easyblocks/i/intel_compilers.py +++ b/easybuild/easyblocks/i/intel_compilers.py @@ -147,6 +147,9 @@ def make_module_req_guess(self): ], 'LD_L...
spack__spack-1778
Cannot use Spack-built gcc I built gcc with Spack, then added it manually to Spack's compiler list: ``` $ cat ~/.spack/compilers.yaml compilers: - compiler: modules: [] operating_system: elcapitan paths: cc: /usr/bin/clang cxx: /usr/bin/clang++ f77: null fc: null spec: clang@8.0...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
[ { "content": "##############################################################################\n# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All righ...
diff --git a/lib/spack/spack/abi.py b/lib/spack/spack/abi.py index 064abb97824c3c..7a6f9c3f40691d 100644 --- a/lib/spack/spack/abi.py +++ b/lib/spack/spack/abi.py @@ -54,10 +54,10 @@ def _gcc_get_libstdcxx_version(self, version): output = None if compiler.cxx: rungcc = Executable(compiler...
xorbitsai__inference-510
FEAT: support Mistral-7B-Instruct ### Is your feature request related to a problem? Please describe https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2022-2023 XProbe Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/setup.cfg b/setup.cfg index b18fc0181f..639e59f4ce 100644 --- a/setup.cfg +++ b/setup.cfg @@ -80,7 +80,7 @@ ggml = llama-cpp-python>=0.2.0 ctransformers transformers = - transformers>=4.31.0 + transformers>=4.34.0 torch accelerate>=0.20.3 sentencepiece diff --git a/xinferenc...
ytdl-org__youtube-dl-14833
culturebox francetv info ## Please follow the guide below - You will be asked some questions and requested to provide some information, please read them **carefully** and answer honestly - Put an `x` into all the boxes [ ] relevant to your *issue* (like this: `[x]`) - Use the *Preview* tab to see what your issue w...
[ { "content": "# coding: utf-8\n\nfrom __future__ import unicode_literals\n\nimport re\nimport json\n\nfrom .common import InfoExtractor\nfrom ..compat import compat_urlparse\nfrom ..utils import (\n clean_html,\n ExtractorError,\n int_or_none,\n parse_duration,\n determine_ext,\n)\nfrom .dailymot...
[ { "content": "# coding: utf-8\n\nfrom __future__ import unicode_literals\n\nimport re\nimport json\n\nfrom .common import InfoExtractor\nfrom ..compat import compat_urlparse\nfrom ..utils import (\n clean_html,\n ExtractorError,\n int_or_none,\n parse_duration,\n determine_ext,\n)\nfrom .dailymot...
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py index 2bcbb3e39bb..037e538ccf0 100644 --- a/youtube_dl/extractor/francetv.py +++ b/youtube_dl/extractor/francetv.py @@ -363,6 +363,6 @@ def _real_extract(self, url): raise ExtractorError('Video %s is not available' % name, exp...
Pylons__pyramid-2672
reify docstring doesn't render properly The testsetup section is omitted from the rendered docs at http://pyramid.readthedocs.io/en/latest/api/decorator.html#pyramid.decorator.reify Unfortunately this section is essential for understanding the example.
[ { "content": "from functools import update_wrapper\n\n\nclass reify(object):\n \"\"\" Use as a class method decorator. It operates almost exactly like the\n Python ``@property`` decorator, but it puts the result of the method it\n decorates into the instance dict after the first call, effectively\n ...
[ { "content": "from functools import update_wrapper\n\n\nclass reify(object):\n \"\"\" Use as a class method decorator. It operates almost exactly like the\n Python ``@property`` decorator, but it puts the result of the method it\n decorates into the instance dict after the first call, effectively\n ...
diff --git a/pyramid/decorator.py b/pyramid/decorator.py index ea518bfcbc..e3a8c707f0 100644 --- a/pyramid/decorator.py +++ b/pyramid/decorator.py @@ -8,6 +8,16 @@ class reify(object): replacing the function it decorates with an instance variable. It is, in Python parlance, a non-data descriptor. An example...
Pylons__pyramid-2674
reify docstring doesn't render properly The testsetup section is omitted from the rendered docs at http://pyramid.readthedocs.io/en/latest/api/decorator.html#pyramid.decorator.reify Unfortunately this section is essential for understanding the example.
[ { "content": "from functools import update_wrapper\n\n\nclass reify(object):\n \"\"\" Use as a class method decorator. It operates almost exactly like the\n Python ``@property`` decorator, but it puts the result of the method it\n decorates into the instance dict after the first call, effectively\n ...
[ { "content": "from functools import update_wrapper\n\n\nclass reify(object):\n \"\"\" Use as a class method decorator. It operates almost exactly like the\n Python ``@property`` decorator, but it puts the result of the method it\n decorates into the instance dict after the first call, effectively\n ...
diff --git a/pyramid/decorator.py b/pyramid/decorator.py index ea518bfcbc..e3a8c707f0 100644 --- a/pyramid/decorator.py +++ b/pyramid/decorator.py @@ -8,6 +8,16 @@ class reify(object): replacing the function it decorates with an instance variable. It is, in Python parlance, a non-data descriptor. An example...
PennyLaneAI__pennylane-5458
[BUG] `argnum` of `stoch_pulse_grad` applied to a tape does not work as expected/documented ### Expected behavior The `argnum` kwarg of gradient transforms applied to a tape is supposed to index into the set of _trainable_ parameters, not all tape parameters. That is, for `tape.trainable_params = [1]` and `argnum=0`,...
[ { "content": "# Copyright 2023 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless re...
[ { "content": "# Copyright 2023 Xanadu Quantum Technologies Inc.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless re...
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index f5ae32bbf45..14af1f4f15c 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -300,6 +300,10 @@ <h3>Bug fixes 🐛</h3> +* Fix a bug where the `argnum` kwarg of `qml.gradients.stoch_pulse_grad` references th...
ansible__ansible-modules-extras-2483
Kubernetes module error handling fails when creating Deployment (or any unsupported kind) <!--- Verify first that your issue/request is not already reported in GitHub --> ##### ISSUE TYPE <!--- Pick one below and delete the rest: --> - Bug Report ##### COMPONENT NAME <!--- Name of the plugin/module/task --> kubernet...
[ { "content": "#!/usr/bin/python\n# Copyright 2015 Google Inc. All Rights Reserved.\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of...
[ { "content": "#!/usr/bin/python\n# Copyright 2015 Google Inc. All Rights Reserved.\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of...
diff --git a/clustering/kubernetes.py b/clustering/kubernetes.py index 7fc2ad92174..183fb0b837e 100644 --- a/clustering/kubernetes.py +++ b/clustering/kubernetes.py @@ -363,7 +363,7 @@ def main(): try: url = target_endpoint + KIND_URL[kind] except KeyError: - mo...
PyGithub__PyGithub-1641
KeyError while trying to fetch an unbounded PaginatedList's count Accessing the `totalCount` attribute on a `PaginatedList` returned from the `get_repos` method throws a KeyError Trace ```py repos = github_client.get_repos() repos.totalCount --------------------------------------------------------------------...
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <...
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #\n# Copyright 2012 Zearin <...
diff --git a/github/PaginatedList.py b/github/PaginatedList.py index 3fe9e3c0ca..2b2227fb0b 100644 --- a/github/PaginatedList.py +++ b/github/PaginatedList.py @@ -163,7 +163,10 @@ def totalCount(self): else: links = self.__parseLinkHeader(headers) lastUrl = links.get("last...
Pylons__pyramid-2671
reify docstring doesn't render properly The testsetup section is omitted from the rendered docs at http://pyramid.readthedocs.io/en/latest/api/decorator.html#pyramid.decorator.reify Unfortunately this section is essential for understanding the example.
[ { "content": "from functools import update_wrapper\n\n\nclass reify(object):\n \"\"\" Use as a class method decorator. It operates almost exactly like the\n Python ``@property`` decorator, but it puts the result of the method it\n decorates into the instance dict after the first call, effectively\n ...
[ { "content": "from functools import update_wrapper\n\n\nclass reify(object):\n \"\"\" Use as a class method decorator. It operates almost exactly like the\n Python ``@property`` decorator, but it puts the result of the method it\n decorates into the instance dict after the first call, effectively\n ...
diff --git a/pyramid/decorator.py b/pyramid/decorator.py index ea518bfcbc..e3a8c707f0 100644 --- a/pyramid/decorator.py +++ b/pyramid/decorator.py @@ -8,6 +8,16 @@ class reify(object): replacing the function it decorates with an instance variable. It is, in Python parlance, a non-data descriptor. An example...
akvo__akvo-rsr-1562
Finance info not clear Looking at http://rsr.akvo.org/project/2506/finance/ there are a few unclarities. See screenshot below. ![screen shot 2015-05-04 at 12 12 31](https://cloud.githubusercontent.com/assets/4179989/7451921/ea2affa2-f256-11e4-8c4c-5d7999f34537.png) - The project budget is 6600. It says funds needed ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"Akvo RSR is covered by the GNU Affero General Public License.\n\nSee more details in the license.txt file located at the root folder of the Akvo RSR module.\nFor additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.\n\"\"\"\n\nim...
diff --git a/akvo/rsr/models/project.py b/akvo/rsr/models/project.py index fe76e6beac..5c27f1e9ab 100644 --- a/akvo/rsr/models/project.py +++ b/akvo/rsr/models/project.py @@ -384,8 +384,8 @@ def get_pledged(self): ).aggregate(Sum('funding_amount'))['funding_amount__sum'] or 0 def get_funds(self): - ...
mytardis__mytardis-1532
Token auth seems broken Attempting to access an experiment with a valid token (temporary URL) doesn't seem to authorise access to the experiment.
[ { "content": "\"\"\"\nviews that render full pages\n\"\"\"\n\nimport logging\nimport re\nfrom os import path\nimport inspect\nimport types\n\nfrom six import string_types\n\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.contrib.site...
[ { "content": "\"\"\"\nviews that render full pages\n\"\"\"\n\nimport logging\nimport re\nfrom os import path\nimport inspect\nimport types\n\nfrom six import string_types\n\nfrom django.conf import settings\nfrom django.contrib.auth.decorators import login_required, permission_required\nfrom django.contrib.site...
diff --git a/tardis/tardis_portal/tests/test_tokens.py b/tardis/tardis_portal/tests/test_tokens.py index f20964fb4e..363b39f1ab 100644 --- a/tardis/tardis_portal/tests/test_tokens.py +++ b/tardis/tardis_portal/tests/test_tokens.py @@ -31,6 +31,7 @@ """ test_tokens.py """ +import json import re import sys @@ -240...
sql-machine-learning__elasticdl-436
Make master exist when there are no tasks left. Currently, master exists when there are no tasks left AND all workers are gone. It might left hanging if a worker got preempted.
[ { "content": "import logging\nimport time\nimport argparse\nimport os\n\nimport grpc\nimport tensorflow as tf\n\ntf.enable_eager_execution()\n\nfrom concurrent import futures\nfrom recordio import File\nfrom elasticdl.proto import master_pb2_grpc\nfrom elasticdl.master.servicer import MasterServicer\nfrom elast...
[ { "content": "import logging\nimport time\nimport argparse\nimport os\n\nimport grpc\nimport tensorflow as tf\n\ntf.enable_eager_execution()\n\nfrom concurrent import futures\nfrom recordio import File\nfrom elasticdl.proto import master_pb2_grpc\nfrom elasticdl.master.servicer import MasterServicer\nfrom elast...
diff --git a/elasticdl/python/elasticdl/master/main.py b/elasticdl/python/elasticdl/master/main.py index 750ace077..be9bc37f6 100644 --- a/elasticdl/python/elasticdl/master/main.py +++ b/elasticdl/python/elasticdl/master/main.py @@ -163,13 +163,7 @@ def main(): if args.num_worker: # TODO: worker_manager.r...
pymodbus-dev__pymodbus-1498
REPL server needs CTRL+C twice to exit - Python: 3.11 - OS: MacOS - Pymodbus: 9f66ab52bb98931dc260b65275ba3b77bb5122c8 REPL server needs to be exited twice; non-REPL server exits fine. I think this was introduced in https://github.com/pymodbus-dev/pymodbus/pull/1141/commits/c395566ff697ad5087f83764a25af03b717ceb6...
[ { "content": "\"\"\"Repl server main.\"\"\"\nimport asyncio\nimport json\nimport logging\nimport sys\nfrom enum import Enum\nfrom pathlib import Path\nfrom typing import List\n\nimport typer\n\nfrom pymodbus import pymodbus_apply_logging_config\nfrom pymodbus.framer.socket_framer import ModbusSocketFramer\nfrom...
[ { "content": "\"\"\"Repl server main.\"\"\"\nimport asyncio\nimport json\nimport logging\nimport sys\nfrom enum import Enum\nfrom pathlib import Path\nfrom typing import List\n\nimport typer\n\nfrom pymodbus import pymodbus_apply_logging_config\nfrom pymodbus.framer.socket_framer import ModbusSocketFramer\nfrom...
diff --git a/pymodbus/repl/server/main.py b/pymodbus/repl/server/main.py index d986bee5c..1c72e9b0a 100644 --- a/pymodbus/repl/server/main.py +++ b/pymodbus/repl/server/main.py @@ -198,15 +198,12 @@ def run( **web_app_config, **modbus_config, ) - try: + if repl: + loop.run_until_comp...
pallets__werkzeug-2498
ResourceWarning for unclosed sockets with development server When running e.g. a trivial Flask application with a Python 3.11b1 build configured with `--with-pydebug`, I get: ``` * Serving Flask app 'werkzeugtest' (lazy loading) * Environment: production WARNING: This is a development server. Do not use it i...
[ { "content": "\"\"\"A WSGI and HTTP server for use **during development only**. This\nserver is convenient to use, but is not designed to be particularly\nstable, secure, or efficient. Use a dedicate WSGI server and HTTP\nserver when deploying to production.\n\nIt provides features like interactive debugging an...
[ { "content": "\"\"\"A WSGI and HTTP server for use **during development only**. This\nserver is convenient to use, but is not designed to be particularly\nstable, secure, or efficient. Use a dedicate WSGI server and HTTP\nserver when deploying to production.\n\nIt provides features like interactive debugging an...
diff --git a/CHANGES.rst b/CHANGES.rst index f8a93e512..1eec66a7c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -19,6 +19,8 @@ Unreleased - ``LocalProxy.__wrapped__`` is always set to the wrapped object when the proxy is unbound, fixing an issue in doctest that would cause it to fail. :issue:`2485` +- Ad...
oppia__oppia-1765
Conversion of html based emails to their equivalent text based emails Currently in oppia, emails are encoded in html format but some users may be using text based clients or in several circumstances they may have to depend on text based email clients. In such scenario html emails need to be properly converted into thei...
[ { "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/email_manager.py b/core/domain/email_manager.py index 450040219005a..83d88b148f599 100644 --- a/core/domain/email_manager.py +++ b/core/domain/email_manager.py @@ -171,7 +171,7 @@ def _send_email( return raw_plaintext_body = cleaned_html_body.replace('<br/>', '\n').replace( - ...
SeldonIO__MLServer-866
Add more debugging information I am running a custom Python model in MLServer, and it fails with an error. The error itself is not interesting, what's important is that MLServer gives very little helpful information to debug it. After sending a request with grpcurl here is the entire response: ```` ERROR: Code:...
[ { "content": "import grpc\n\nfrom typing import Callable, Dict, Tuple\nfrom fastapi import status\n\nfrom grpc import ServicerContext\n\nfrom .logging import logger\nfrom ..errors import MLServerError\n\n\nSTATUS_CODE_MAPPING = {\n status.HTTP_400_BAD_REQUEST: grpc.StatusCode.INVALID_ARGUMENT,\n status.HT...
[ { "content": "import grpc\n\nfrom typing import Callable, Dict, Tuple\nfrom fastapi import status\n\nfrom grpc import ServicerContext\n\nfrom .logging import logger\nfrom ..errors import MLServerError\n\n\nSTATUS_CODE_MAPPING = {\n status.HTTP_400_BAD_REQUEST: grpc.StatusCode.INVALID_ARGUMENT,\n status.HT...
diff --git a/mlserver/grpc/utils.py b/mlserver/grpc/utils.py index 5963c2fc8..31f7c39b5 100644 --- a/mlserver/grpc/utils.py +++ b/mlserver/grpc/utils.py @@ -43,7 +43,10 @@ async def _inner(self, request, context): try: return await f(self, request, context) except MLServerError as err: - ...
sbi-dev__sbi-11
Non-conditional density estimators are initialized with context_features=None, should support 0 as well the CDEs have a default input context_features which defaults to None. When this is a positive integer, we get a CDE, for a DE we need to set it to None. It should support a value of zero, though.
[ { "content": "from setuptools import find_packages, setup\n\nexec(open(\"lfi/version.py\").read())\n\nsetup(\n name=\"lfi\",\n version=__version__,\n description=\"LFI + CDE.\",\n url=\"https://github.com/mackelab/lfi\",\n author=\"Conor Durkan\",\n packages=find_packages(exclude=[\"tests\"]),...
[ { "content": "from setuptools import find_packages, setup\n\nexec(open(\"sbi/version.py\").read())\n\nsetup(\n name=\"sbi\",\n version=__version__,\n description=\"Simulation-based inference\",\n url=\"https://github.com/mackelab/sbi\",\n author=\"Conor Durkan\",\n packages=find_packages(exclu...
diff --git a/.travis.yml b/.travis.yml index 3983eab56..490b20378 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,7 +36,7 @@ install: #- python setup.py install #- eval $(ssh-agent -s) script: - - PYTHONPATH=$PWD:$PYTHONPATH travis_wait 30 pytest --cov=lfi + - PYTHONPATH=$PWD:$PYTHONPATH travis_wait 30 pytes...
pyodide__pyodide-2022
exception in asyncio.wait_for() ## 🐛 Bug Waiting for an awaitable using `asyncio.wait_for()` prints exceptions to the browser's console: ``` pyodide.asm.js:14 Exception in callback None() pyodide.asm.js:14 handle: <Handle cancelled> ``` This happens whether the awaitable finishes before the timeout or not....
[ { "content": "import asyncio\nimport contextvars\nimport sys\nimport time\nimport traceback\nfrom typing import Callable\n\n\nfrom ._core import create_once_callable, IN_BROWSER\n\nif IN_BROWSER:\n from js import setTimeout\n\n\nclass WebLoop(asyncio.AbstractEventLoop):\n \"\"\"A custom event loop for use...
[ { "content": "import asyncio\nimport contextvars\nimport sys\nimport time\nimport traceback\nfrom typing import Callable\n\n\nfrom ._core import create_once_callable, IN_BROWSER\n\nif IN_BROWSER:\n from js import setTimeout\n\n\nclass WebLoop(asyncio.AbstractEventLoop):\n \"\"\"A custom event loop for use...
diff --git a/docs/project/changelog.md b/docs/project/changelog.md index 59a1994d038..5954c58678c 100644 --- a/docs/project/changelog.md +++ b/docs/project/changelog.md @@ -38,6 +38,9 @@ substitutions: object which treats the response body as an archive and uses `shutil` to unpack it. {pr}`1935` +- {{Fix}} The ...
open-mmlab__mmpose-495
Confusion about udp target generation [Code](https://github.com/open-mmlab/mmpose/blob/13d44d09260d95880b3aa504f93441eaab1ee347/mmpose/datasets/pipelines/top_down_transform.py#L559) from `top_down_transform.py` ```python elif self.encoding == 'UDP': if self.target_type == 'CombinedTarget': ...
[ { "content": "import cv2\nimport numpy as np\n\nfrom mmpose.core.post_processing import (affine_transform, fliplr_joints,\n get_affine_transform)\nfrom mmpose.datasets.pipelines import get_warp_matrix, warp_affine_joints\nfrom mmpose.datasets.registry import PIPELINES\n\n...
[ { "content": "import cv2\nimport numpy as np\n\nfrom mmpose.core.post_processing import (affine_transform, fliplr_joints,\n get_affine_transform)\nfrom mmpose.datasets.pipelines import get_warp_matrix, warp_affine_joints\nfrom mmpose.datasets.registry import PIPELINES\n\n...
diff --git a/mmpose/datasets/pipelines/top_down_transform.py b/mmpose/datasets/pipelines/top_down_transform.py index 5dcb45c833..59f8725f9e 100644 --- a/mmpose/datasets/pipelines/top_down_transform.py +++ b/mmpose/datasets/pipelines/top_down_transform.py @@ -564,7 +564,7 @@ def __call__(self, results): ...
pallets__werkzeug-1741
Local variables not available in debug console in version 1.0 Take this simple script: ```python from werkzeug.wrappers import Request, Response some_global_variable = True @Request.application def application(request): msg = 'Hello, World!' return Response(msg2) if __name__ == '__main__': ...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.debug.console\n ~~~~~~~~~~~~~~~~~~~~~~\n\n Interactive console support.\n\n :copyright: 2007 Pallets\n :license: BSD-3-Clause\n\"\"\"\nimport code\nimport sys\nfrom types import CodeType\n\nfrom ..local import Local\nfrom ..utils import esc...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.debug.console\n ~~~~~~~~~~~~~~~~~~~~~~\n\n Interactive console support.\n\n :copyright: 2007 Pallets\n :license: BSD-3-Clause\n\"\"\"\nimport code\nimport sys\nfrom types import CodeType\n\nfrom ..local import Local\nfrom ..utils import esc...
diff --git a/CHANGES.rst b/CHANGES.rst index ee0deb617..1f9676fbb 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,8 @@ Unreleased Policy header. :pr:`1731` - ``http_date`` zero fills years < 1000 to always output four digits. :issue:`1739` +- Fix missing local variables in interactive debugger co...
getnikola__nikola-2163
NIkola does not see plugins listed under DISABLED_PLUGINS First noticed while running `nikola build`: `ERROR: _switch to py3:please!. Task dependency 'sitemap' does not exist.` > polyzen> there's no longer a way to disable the sitemap? i don't see it under `nikola plugin --list-installed` nor `nikola list` unless it's...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2015 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2015 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
diff --git a/CHANGES.txt b/CHANGES.txt index c5a041bfaa..a256b584ce 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,6 +4,7 @@ New in Master Bugfixes -------- +* Mention disabled plugins in ``nikola plugin --list-installed`` (Issue #2139) * Don't examine all gallery image dates every build (Issue #2160) New in ...
vispy__vispy-2131
ImageVisual fails if data is all NaN In my application I need to temporarily fill the texture (ImageVisual) with invalid data. I'd like if it showed up as transparent which I think I can handle with a custom shader, but the new NaN/Inf handling in the new scalable textures does not allow this for `clim='auto'` cases. I...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\nimport warnings\n\nimport numpy as np\n\nfrom vispy.gloo import Texture2D, Texture3D\nfrom vispy.gloo.texture import should_cast_to_f32\...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\nimport warnings\n\nimport numpy as np\n\nfrom vispy.gloo import Texture2D, Texture3D\nfrom vispy.gloo.texture import should_cast_to_f32\...
diff --git a/vispy/visuals/_scalable_textures.py b/vispy/visuals/_scalable_textures.py index 1e4b1d62e4..21ae1843ba 100644 --- a/vispy/visuals/_scalable_textures.py +++ b/vispy/visuals/_scalable_textures.py @@ -36,8 +36,11 @@ def get_default_clim_from_data(data): max_finite = np.isfinite(max_value) if not (mi...
dmlc__dgl-2163
Error when using `dgl.data.TUDataset` in the latest versions ## 🐛 Bug I get an error when using `dgl.data.TUDataset` in dgl versions `0.5.0` and `0.5.1`. I also get the same error if I build from source. ## To Reproduce I've used `ENZYMES` in this example but it seems to be an issue across all the datasets. ...
[ { "content": "from __future__ import absolute_import\nimport numpy as np\nimport os\nimport random\n\n\nfrom .dgl_dataset import DGLBuiltinDataset\nfrom .utils import loadtxt, save_graphs, load_graphs, save_info, load_info\nfrom .. import backend as F\nfrom ..utils import retry_method_with_fix\nfrom ..convert i...
[ { "content": "from __future__ import absolute_import\nimport numpy as np\nimport os\nimport random\n\n\nfrom .dgl_dataset import DGLBuiltinDataset\nfrom .utils import loadtxt, save_graphs, load_graphs, save_info, load_info\nfrom .. import backend as F\nfrom ..utils import retry_method_with_fix\nfrom ..convert i...
diff --git a/python/dgl/data/tu.py b/python/dgl/data/tu.py index 0ffde83cedad..8be7c65ae875 100644 --- a/python/dgl/data/tu.py +++ b/python/dgl/data/tu.py @@ -323,6 +323,8 @@ def process(self): delimiter=',').astype(int) if 'label' in filename: data ...
microsoft__botbuilder-python-1579
"no match response" button present in qna maker dialog when active learning is disabled Python tracking issue for repo code-owners See original issue for details: microsoft/botframework-sdk#6146
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\r\n# Licensed under the MIT License.\r\n\r\nfrom typing import List\r\nfrom botbuilder.core import CardFactory\r\nfrom botbuilder.schema import Activity, ActivityTypes, CardAction, HeroCard\r\n\r\nfrom ..models import QueryResult\r\n\r\n\...
[ { "content": "# Copyright (c) Microsoft Corporation. All rights reserved.\r\n# Licensed under the MIT License.\r\n\r\nfrom typing import List\r\nfrom botbuilder.core import CardFactory\r\nfrom botbuilder.schema import Activity, ActivityTypes, CardAction, HeroCard\r\n\r\nfrom ..models import QueryResult\r\n\r\n\...
diff --git a/libraries/botbuilder-ai/botbuilder/ai/qna/utils/qna_card_builder.py b/libraries/botbuilder-ai/botbuilder/ai/qna/utils/qna_card_builder.py index 75785c78c..0ff28caaf 100644 --- a/libraries/botbuilder-ai/botbuilder/ai/qna/utils/qna_card_builder.py +++ b/libraries/botbuilder-ai/botbuilder/ai/qna/utils/qna_car...
systemd__mkosi-2589
FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/mkosi/mkosi-workspacees02trw6/root/etc/machine-id' Full build log: [build.log](https://github.com/systemd/mkosi/files/14852691/build.log) Note: /home/xyz has been replaced with ~ and some pkg names replaced with the word HIDDEN. mkosi v22 and v21 seem ...
[ { "content": "# SPDX-License-Identifier: LGPL-2.1+\n\nimport shutil\nimport tempfile\nfrom collections.abc import Iterable, Sequence\nfrom pathlib import Path\n\nfrom mkosi.archive import extract_tar\nfrom mkosi.config import Architecture, Config\nfrom mkosi.context import Context\nfrom mkosi.distributions impo...
[ { "content": "# SPDX-License-Identifier: LGPL-2.1+\n\nimport shutil\nimport tempfile\nfrom collections.abc import Iterable, Sequence\nfrom pathlib import Path\n\nfrom mkosi.archive import extract_tar\nfrom mkosi.config import Architecture, Config\nfrom mkosi.context import Context\nfrom mkosi.distributions impo...
diff --git a/mkosi/distributions/debian.py b/mkosi/distributions/debian.py index 4c16ca450..fddbb629d 100644 --- a/mkosi/distributions/debian.py +++ b/mkosi/distributions/debian.py @@ -152,7 +152,9 @@ def install(cls, context: Context) -> None: [ "-oDebug::pkgDPkgPm=1", ...
conan-io__conan-3063
Improve error message on wrong value for settings attribute I had a wrong value for the settings attribute like: ``` settings = {"os_build": 'Linux', "arch_build": ["x86", "x86_64"]} ``` And the error message was very strange: ``` ERROR: /home/users/.../export/conanfile.py: Error while initializing settings. Inva...
[ { "content": "from conans.errors import ConanException\nimport yaml\nfrom conans.model.values import Values\n\n\ndef bad_value_msg(name, value, value_range):\n tip = \"\"\n if \"settings\" in name:\n tip = '\\nRead \"http://docs.conan.io/en/latest/faq/troubleshooting.html' \\\n '#error...
[ { "content": "from conans.errors import ConanException\nimport yaml\nfrom conans.model.values import Values\n\n\ndef bad_value_msg(name, value, value_range):\n tip = \"\"\n if \"settings\" in name:\n tip = '\\nRead \"http://docs.conan.io/en/latest/faq/troubleshooting.html' \\\n '#error...
diff --git a/conans/model/settings.py b/conans/model/settings.py index 782c94fb8be..7c44411446b 100644 --- a/conans/model/settings.py +++ b/conans/model/settings.py @@ -345,6 +345,8 @@ def constraint(self, constraint_def, raise_undefined_field=True): other_field_def = constraint_def[field] if ...
kartoza__prj.app-162
Landing page gives a 404
[ { "content": "# coding=utf-8\n\"\"\"Our custom error views\"\"\"\nfrom django.shortcuts import render_to_response\nfrom django.template import RequestContext\nfrom base.models.project import Project\n\n\ndef custom_404(request, template_name='404.html'):\n \"\"\"Our custom 404 view\n\n We want to include ...
[ { "content": "# coding=utf-8\n\"\"\"Our custom error views\"\"\"\nfrom django.shortcuts import render_to_response\nfrom django.template import RequestContext\nfrom base.models.project import Project\n\n\ndef custom_404(request, template_name='404.html'):\n \"\"\"Our custom 404 view\n\n We want to include ...
diff --git a/django_project/base/views/error_views.py b/django_project/base/views/error_views.py index 142eeb23d..0c2db2eb9 100644 --- a/django_project/base/views/error_views.py +++ b/django_project/base/views/error_views.py @@ -21,7 +21,11 @@ def custom_404(request, template_name='404.html'): """ public_pr...
zulip__zulip-23329
Rename Recent topics to Recent conversations Once #19449 has been resolved, we should rename Recent topics to Recent conversations across the board. This includes the left sidebar, documentation, settings menus, marketing pages, and anywhere else this term may be used.
[ { "content": "from typing import Dict, List\n\nfrom django.conf import settings\nfrom django.db import transaction\nfrom django.db.models import Count\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import override as override_language\n\nfrom zerver.actions.create_realm import...
[ { "content": "from typing import Dict, List\n\nfrom django.conf import settings\nfrom django.db import transaction\nfrom django.db.models import Count\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import override as override_language\n\nfrom zerver.actions.create_realm import...
diff --git a/frontend_tests/node_tests/hashchange.js b/frontend_tests/node_tests/hashchange.js index 1dbcbe891ebc6..1c5b367ad533c 100644 --- a/frontend_tests/node_tests/hashchange.js +++ b/frontend_tests/node_tests/hashchange.js @@ -205,6 +205,19 @@ run_test("hash_interactions", ({override}) => { [floating_rec...
platformsh__platformsh-docs-2432
🐛 Allow searching for code strings with separators ### Where on docs.platform.sh should be changed? The search ### What exactly should be updated? Searching for strings with separators like `X-Frame-Options` and `memory_ratio` don't show the results for pages that have those strings directly. Putting quotes a...
[ { "content": "import os\nimport glob\nimport json\nimport meilisearch\nfrom platformshconfig import Config\n\nclass Search:\n def __init__(self):\n self.default = {\n \"host\": \"http://127.0.0.1\",\n \"key\": None,\n \"port\": 7700\n }\n\n self.scrape_di...
[ { "content": "import os\nimport glob\nimport json\nimport meilisearch\nfrom platformshconfig import Config\n\nclass Search:\n def __init__(self):\n self.default = {\n \"host\": \"http://127.0.0.1\",\n \"key\": None,\n \"port\": 7700\n }\n\n self.scrape_di...
diff --git a/docs/static/scripts/xss/src/components/SuggestionsPrimary.js b/docs/static/scripts/xss/src/components/SuggestionsPrimary.js index 29f427d41c..2d73e4b932 100644 --- a/docs/static/scripts/xss/src/components/SuggestionsPrimary.js +++ b/docs/static/scripts/xss/src/components/SuggestionsPrimary.js @@ -11,12 +11...
wagtail__wagtail-6104
Typo in wagtail/core/middleware.py warning The second line of the warning in `wagtail/core/middleware.py` should read: ` 'Please update your code to use Site.find_for_request(request) in place of request.site, '` instead of: ` 'Please update your code to use Site.get_for_request(request) in place of requ...
[ { "content": "import warnings\n\nfrom django.utils.deprecation import MiddlewareMixin\nfrom wagtail.core.models import Site\nfrom wagtail.utils.deprecation import RemovedInWagtail211Warning\n\n\nwarnings.warn(\n 'wagtail.core.middleware.SiteMiddleware and the use of request.site is deprecated. '\n 'Please...
[ { "content": "import warnings\n\nfrom django.utils.deprecation import MiddlewareMixin\nfrom wagtail.core.models import Site\nfrom wagtail.utils.deprecation import RemovedInWagtail211Warning\n\n\nwarnings.warn(\n 'wagtail.core.middleware.SiteMiddleware and the use of request.site is deprecated. '\n 'Please...
diff --git a/wagtail/core/middleware.py b/wagtail/core/middleware.py index 74888ba22253..e9373b26315b 100644 --- a/wagtail/core/middleware.py +++ b/wagtail/core/middleware.py @@ -7,7 +7,7 @@ warnings.warn( 'wagtail.core.middleware.SiteMiddleware and the use of request.site is deprecated. ' - 'Please update y...
open-mmlab__mmocr-800
KIE type error exception hi, I am trying to run the KIE from the official colab notebook without success the following code: from mmocr.utils.ocr import MMOCR mmocr = MMOCR(det='TextSnake', recog='SAR', kie='SDMGR') mmocr.readtext('demo/demo_kie.jpeg', print_result=False, output='outputs/demo_kie_pred.jpg') b...
[ { "content": "#!/usr/bin/env python\n# Copyright (c) OpenMMLab. All rights reserved.\nimport copy\nimport os\nimport warnings\nfrom argparse import ArgumentParser, Namespace\nfrom pathlib import Path\n\nimport mmcv\nimport numpy as np\nimport torch\nfrom mmcv.image.misc import tensor2imgs\nfrom mmcv.runner impo...
[ { "content": "#!/usr/bin/env python\n# Copyright (c) OpenMMLab. All rights reserved.\nimport copy\nimport os\nimport warnings\nfrom argparse import ArgumentParser, Namespace\nfrom pathlib import Path\n\nimport mmcv\nimport numpy as np\nimport torch\nfrom mmcv.image.misc import tensor2imgs\nfrom mmcv.runner impo...
diff --git a/mmocr/utils/ocr.py b/mmocr/utils/ocr.py index 93e365790..d99dbe69a 100755 --- a/mmocr/utils/ocr.py +++ b/mmocr/utils/ocr.py @@ -329,8 +329,8 @@ def __init__(self, self.kie = kie self.device = device if self.device is None: - self.device = torch.cuda.current_device() \ ...
pypi__warehouse-1820
Update bleach to 2.0.0 There's a new version of [bleach](https://pypi.python.org/pypi/bleach) available. You are currently using **1.5.0**. I have updated it to **2.0.0** These links might come in handy: <a href="http://pypi.python.org/pypi/bleach">PyPI</a> | <a href="https://pyup.io/changelogs/bleach/">Changelog<...
[ { "content": "# 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 applicable law or agreed to in writing, softw...
[ { "content": "# 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 applicable law or agreed to in writing, softw...
diff --git a/requirements/main.txt b/requirements/main.txt index 15353f73ff25..fc431f2a8e1a 100644 --- a/requirements/main.txt +++ b/requirements/main.txt @@ -45,9 +45,9 @@ bcrypt==3.1.3 \ billiard==3.5.0.2 \ --hash=sha256:03f669755f1d6b7dbe528fe615a3164b0d8efca095382c514dd7026dfb79a9c6 \ --hash=sha256:3eb01...
techmatters__terraso-backend-696
Set up Google iOS login on backend
[ { "content": "# Copyright © 2021-2023 Technology Matters\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as published\n# by the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later ve...
[ { "content": "# Copyright © 2021-2023 Technology Matters\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Affero General Public License as published\n# by the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later ve...
diff --git a/.env.sample b/.env.sample index 2b35f866a..2d6b6b45f 100644 --- a/.env.sample +++ b/.env.sample @@ -47,7 +47,8 @@ CDN_STATIC_DOMAIN=static.dev.terraso.org PLAUSIBLE_URL=https://plausible.io/api/event RENDER_API_TOKEN=your-render-token -GOOGLE_MOBILE_CLIENT_ID=google-mobile-client-id +GOOGLE_ANDROID_CLI...
twisted__twisted-1142
t.a.i.backoffPolicy fails after a certain number of retries (builtins.OverflowError) |[<img alt="wiml's avatar" src="https://avatars.githubusercontent.com/u/156891?s=50" width="50" height="50">](https://github.com/wiml)| @wiml reported| |-|-| |Trac ID|trac#9476| |Type|defect| |Created|2018-07-02 21:05:08Z| I have some...
[ { "content": "# -*- test-case-name: twisted.application.test.test_internet,twisted.test.test_application,twisted.test.test_cooperator -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nReactor-based Services\n\nHere are services to run clients, servers and periodic services...
[ { "content": "# -*- test-case-name: twisted.application.test.test_internet,twisted.test.test_application,twisted.test.test_cooperator -*-\n# Copyright (c) Twisted Matrix Laboratories.\n# See LICENSE for details.\n\n\"\"\"\nReactor-based Services\n\nHere are services to run clients, servers and periodic services...
diff --git a/src/twisted/application/internet.py b/src/twisted/application/internet.py index 85b1634cb06..a8582f4ebe7 100644 --- a/src/twisted/application/internet.py +++ b/src/twisted/application/internet.py @@ -517,9 +517,15 @@ def backoffPolicy(initialDelay=1.0, maxDelay=60.0, factor=1.5, @rtype: see L{ClientSe...
jupyterhub__jupyterhub-93
Running `pip install -e .` in the project root installs (no longer supported) IPython 2.3 Not sure if there's a straightforward fix for this until there's a version of IPython 3 on PyPI. I spent a while playing with the setuptools `dependency_links` option to get this to install from github, to no avail.
[ { "content": "#!/usr/bin/env python\n# coding: utf-8\n\n# Copyright (c) Juptyer Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n#-----------------------------------------------------------------------------\n# Minimal Python version sanity check (from IPython)\n#----------------...
[ { "content": "#!/usr/bin/env python\n# coding: utf-8\n\n# Copyright (c) Juptyer Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n#-----------------------------------------------------------------------------\n# Minimal Python version sanity check (from IPython)\n#----------------...
diff --git a/Dockerfile b/Dockerfile index 319542e6f5..f574cc7daa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,6 @@ WORKDIR /srv/ ADD . /srv/jupyterhub WORKDIR /srv/jupyterhub/ -RUN pip3 install -r requirements.txt RUN pip3 install . WORKDIR /srv/jupyterhub/ diff --git a/README.md b/README.md index 35a...
ckan__ckan-5032
Resource URL gets changed to ___ ### CKAN Version if known (or site URL) latest master ### The probem When I create or edit a resource using the web form, whatever I set the resource.url to be, it gets saved as something like this: `http://myckansite.com/dataset/713c8c32-cbd8-46ce-90fb-86de1f0811d2/resource/59c0e9...
[ { "content": "# encoding: utf-8\n\nimport os\nimport cgi\nimport datetime\nimport logging\nimport magic\nimport mimetypes\n\nfrom werkzeug.datastructures import FileStorage as FlaskFileStorage\n\nimport ckan.lib.munge as munge\nimport ckan.logic as logic\nimport ckan.plugins as plugins\nfrom ckan.common import ...
[ { "content": "# encoding: utf-8\n\nimport os\nimport cgi\nimport datetime\nimport logging\nimport magic\nimport mimetypes\n\nfrom werkzeug.datastructures import FileStorage as FlaskFileStorage\n\nimport ckan.lib.munge as munge\nimport ckan.logic as logic\nimport ckan.plugins as plugins\nfrom ckan.common import ...
diff --git a/ckan/lib/uploader.py b/ckan/lib/uploader.py index 0d83da02442..29122019d21 100644 --- a/ckan/lib/uploader.py +++ b/ckan/lib/uploader.py @@ -214,7 +214,8 @@ def __init__(self, resource): if url and config_mimetype_guess == 'file_ext': self.mimetype = mimetypes.guess_type(url)[0] - ...
boto__botocore-1996
get_bucket_location returns NoneType error when client error is added ## Problem When adding a client error through `get_bucket_location`, rather than raise a `ClientError` (or the specified Service Error Code, we instead receive; `AttributeError: 'NoneType' object has no attribute 'stream'` ## Working Exampl...
[ { "content": "# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n...
[ { "content": "# Copyright 2012-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"). You\n# may not use this file except in compliance with the License. A copy of\n# the License is located at\n#\n# http://aws.amazon.com/apache2.0/\n...
diff --git a/.changes/next-release/bugfix-Stubber-96340.json b/.changes/next-release/bugfix-Stubber-96340.json new file mode 100644 index 0000000000..4e3897ebf6 --- /dev/null +++ b/.changes/next-release/bugfix-Stubber-96340.json @@ -0,0 +1,5 @@ +{ + "type": "bugfix", + "category": "Stubber", + "description": "fixes ...
agconti__cookiecutter-django-rest-91
Update `RedirectView.permanent` to true for `api-root` route Resolves `RemovedInDjango19Warning` > Default value of 'RedirectView.permanent' will change from True to False in Django 1.9. Set an explicit value to silence this warning.
[ { "content": "from __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.conf.urls import include, url\nfrom django.core.urlresolvers import reverse_lazy\nfrom django.conf.urls.static import static\nfrom django.contrib import admin\nfrom django.views.generic.base import RedirectVie...
[ { "content": "from __future__ import unicode_literals\n\nfrom django.conf import settings\nfrom django.conf.urls import include, url\nfrom django.core.urlresolvers import reverse_lazy\nfrom django.conf.urls.static import static\nfrom django.contrib import admin\nfrom django.views.generic.base import RedirectVie...
diff --git a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py b/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py index 5f533119d..f801a574a 100755 --- a/{{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/urls.py +++ b/{{cookiecutter.github_repository_name...
sunpy__sunpy-3255
test_mapsequence_solar_derotate fails under 32bit with Astropy 3.2 When `test_mapsequence_solar_derotate` is run with the `clip` keyword (second stage of that test). It fails with this output: ```python # Test that the shape of data is correct when clipped clipped_shape = (25, 18) for m...
[ { "content": "\"\"\"\nThis module provides routines for applying solar rotation functions to\nmap sequences.\n\"\"\"\n\nimport numpy as np\n\nimport astropy.units as u\n\nfrom sunpy.physics.differential_rotation import solar_rotate_coordinate\nfrom sunpy.image.coalignment import apply_shifts\n\n__author__ = 'J....
[ { "content": "\"\"\"\nThis module provides routines for applying solar rotation functions to\nmap sequences.\n\"\"\"\n\nimport numpy as np\n\nimport astropy.units as u\n\nfrom sunpy.physics.differential_rotation import solar_rotate_coordinate\nfrom sunpy.image.coalignment import apply_shifts\n\n__author__ = 'J....
diff --git a/changelog/3255.bugfix.rst b/changelog/3255.bugfix.rst new file mode 100644 index 00000000000..99cc63efde0 --- /dev/null +++ b/changelog/3255.bugfix.rst @@ -0,0 +1 @@ +Fixed `~sunpy.physics.solar_rotation.calculate_solar_rotate_shift` so that it does not calculate a shift between the reference layer and its...
stephenmcd__mezzanine-795
thumbnail template tag doesn't handle url with query parameters The thumbnail template tag (defined in mezzanine.core.templatetags.mezzanine_tags.py) doesn't properly handle the case where an image URL has query parameters. For example, if you're using the S3 backend with django-storages, you can get image urls that ...
[ { "content": "\nfrom hashlib import md5\nimport os\nfrom urllib import urlopen, urlencode, quote, unquote\n\nfrom django.contrib import admin\nfrom django.contrib.auth import REDIRECT_FIELD_NAME\nfrom django.contrib.sites.models import Site\nfrom django.core.files import File\nfrom django.core.files.storage imp...
[ { "content": "\nfrom hashlib import md5\nimport os\nfrom urllib import urlopen, urlencode, quote, unquote\n\nfrom django.contrib import admin\nfrom django.contrib.auth import REDIRECT_FIELD_NAME\nfrom django.contrib.sites.models import Site\nfrom django.core.files import File\nfrom django.core.files.storage imp...
diff --git a/mezzanine/core/templatetags/mezzanine_tags.py b/mezzanine/core/templatetags/mezzanine_tags.py index 83290ffebc..b8787fc7d7 100644 --- a/mezzanine/core/templatetags/mezzanine_tags.py +++ b/mezzanine/core/templatetags/mezzanine_tags.py @@ -276,6 +276,9 @@ def thumbnail(image_url, width, height, quality=95): ...
activeloopai__deeplake-1738
[FEATURE]Do not overwrite python logging configuration ## 🚨🚨 Feature Request Be able to use both `logging` and `hub` in the same python script ### Current behavior I found the following code has undesired behavior: when adding the line `import hub`, the logging configuration will be overwritten. ```python...
[ { "content": "\"\"\"\nLicense:\nThis Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.\nIf a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\"\"\"\n\nimport logging\nimport sys\n\nlogger = logging.getLogger(\"hub\")\n\n\ndef...
[ { "content": "\"\"\"\nLicense:\nThis Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.\nIf a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\"\"\"\n\nimport logging\nimport sys\n\nlogger = logging.getLogger(\"hub\")\n\n\ndef...
diff --git a/hub/client/log.py b/hub/client/log.py index ac5861bb05..5cc2d2e4ce 100644 --- a/hub/client/log.py +++ b/hub/client/log.py @@ -12,7 +12,17 @@ def configure_logger(debug=0): log_level = logging.DEBUG if debug == 1 else logging.INFO - logging.basicConfig(format="%(message)s", level=log_level, strea...
pallets__werkzeug-1480
Drop Python 3.4 support EOL 2019-03-19: https://devguide.python.org/#status-of-python-branches
[ { "content": "import io\nimport re\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nwith io.open(\"README.rst\", \"rt\", encoding=\"utf8\") as f:\n readme = f.read()\n\nwith io.open(\"src/werkzeug/__init__.py\", \"rt\", encoding=\"utf8\") as f:\n version = re.search(r'__version__ =...
[ { "content": "import io\nimport re\n\nfrom setuptools import find_packages\nfrom setuptools import setup\n\nwith io.open(\"README.rst\", \"rt\", encoding=\"utf8\") as f:\n readme = f.read()\n\nwith io.open(\"src/werkzeug/__init__.py\", \"rt\", encoding=\"utf8\") as f:\n version = re.search(r'__version__ =...
diff --git a/.travis.yml b/.travis.yml index a62f11da6..5677b16f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ python: - "3.7" - "3.6" - "3.5" - - "3.4" - "2.7" - "nightly" - "pypy3.5-6.0" diff --git a/CHANGES.rst b/CHANGES.rst index fe4d67011..e79d34bb1 100644 --- a/CHANGES.rst +++ b/C...
PaddlePaddle__models-211
Encounter exception when running tools/compute_mean_std.py ``` Traceback (most recent call last): File "tools/compute_mean_std.py", line 64, in <module> main() File "tools/compute_mean_std.py", line 59, in main num_samples=args.num_samples) File "/home/disk1/yangyaming/workspace/paddle/ds2/mandarin_...
[ { "content": "\"\"\"Contains the audio featurizer class.\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport numpy as np\nfrom data_utils import utils\nfrom data_utils.audio import AudioSegment\nfrom python_speech_features import mfcc\n...
[ { "content": "\"\"\"Contains the audio featurizer class.\"\"\"\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport numpy as np\nfrom data_utils import utils\nfrom data_utils.audio import AudioSegment\nfrom python_speech_features import mfcc\n...
diff --git a/deep_speech_2/data_utils/featurizer/audio_featurizer.py b/deep_speech_2/data_utils/featurizer/audio_featurizer.py index f0d223cfbe..39f453017e 100644 --- a/deep_speech_2/data_utils/featurizer/audio_featurizer.py +++ b/deep_speech_2/data_utils/featurizer/audio_featurizer.py @@ -57,7 +57,7 @@ def __init__(se...
secdev__scapy-3676
defragmented IP Packet has wrong packet.time ### Brief description When I use sniff() with session option to parse a pcapng file which has some fragmented IP packets, I found that the defragmented packets give the wrong time. It's the current time, not the arrival time in Wireshark. I don't know if this is a bug, but...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nSessions: decode flow of packets when sniffing\n\"\"\"\n\nfrom collections import defaultdi...
[ { "content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Philippe Biondi <phil@secdev.org>\n# This program is published under a GPLv2 license\n\n\"\"\"\nSessions: decode flow of packets when sniffing\n\"\"\"\n\nfrom collections import defaultdi...
diff --git a/scapy/sessions.py b/scapy/sessions.py index 62be34ec97d..2e1f19c9ae0 100644 --- a/scapy/sessions.py +++ b/scapy/sessions.py @@ -140,6 +140,7 @@ def _ip_process_packet(self, packet): defragmented_packet = defragmented_packet.__class__( raw(defragmented_p...
fonttools__fonttools-2803
[COLRv1] Drop DeltaSetIndexMap when not needed In an experimental font generated with: https://github.com/drott/color-fonts/tree/noDeltaSetIndexMap fontTools creates and empty DeltaSetIndexMap. ``` <VarIndexMap Format="0"> <!-- Omitted values default to 0xFFFF/0xFFFF (no variations) --> <Map in...
[ { "content": "\"\"\"\nModule for dealing with 'gvar'-style font variations, also known as run-time\ninterpolation.\n\nThe ideas here are very similar to MutatorMath. There is even code to read\nMutatorMath .designspace files in the varLib.designspace module.\n\nFor now, if you run this file on a designspace fi...
[ { "content": "\"\"\"\nModule for dealing with 'gvar'-style font variations, also known as run-time\ninterpolation.\n\nThe ideas here are very similar to MutatorMath. There is even code to read\nMutatorMath .designspace files in the varLib.designspace module.\n\nFor now, if you run this file on a designspace fi...
diff --git a/Lib/fontTools/varLib/__init__.py b/Lib/fontTools/varLib/__init__.py index f1ca99ffeb..e99a5d0aaa 100644 --- a/Lib/fontTools/varLib/__init__.py +++ b/Lib/fontTools/varLib/__init__.py @@ -722,8 +722,11 @@ def _add_COLR(font, model, master_fonts, axisTags, colr_layer_reuse=True): if store: mapping = stor...
rlworkgroup__garage-1899
Torch 1.6.0 incompatibility https://pytorch.org/docs/stable/generated/torch.full.html torch.full had a warning which has changed to an error in 1.6.0 (https://travis-ci.com/github/rlworkgroup/garage/jobs/365962699#L1864)
[ { "content": "\"\"\"Utility functions for PyTorch algorithms.\n\nA collection of common functions that are used by Pytorch algos.\n\nThis collection of functions can be used to manage the following:\n - Pytorch GPU usage\n - setting the default Pytorch GPU\n - converting Tensors to GPU Tensors\...
[ { "content": "\"\"\"Utility functions for PyTorch algorithms.\n\nA collection of common functions that are used by Pytorch algos.\n\nThis collection of functions can be used to manage the following:\n - Pytorch GPU usage\n - setting the default Pytorch GPU\n - converting Tensors to GPU Tensors\...
diff --git a/src/garage/torch/_functions.py b/src/garage/torch/_functions.py index 6ec6e23072..9a5180954f 100644 --- a/src/garage/torch/_functions.py +++ b/src/garage/torch/_functions.py @@ -72,7 +72,8 @@ def compute_advantages(discount, gae_lambda, max_episode_length, baselines, """ adv_filter = torch.full...
quantumlib__Cirq-4103
Cannot add identity to PauliSum **Description of the issue** Identities cannot be added to PauliSums. This might be related to `cirq.IdentityGate` not being a `cirq.Pauli`. **How to reproduce the issue** ``` ps = cirq.PauliSum() ps += cirq.I(cirq.LineQubit(0)) # Generates the error: # TypeError: unsuppor...
[ { "content": "# Copyright 2019 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2019 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq-core/cirq/ops/linear_combinations.py b/cirq-core/cirq/ops/linear_combinations.py index 8d51d432755..bf598a2993a 100644 --- a/cirq-core/cirq/ops/linear_combinations.py +++ b/cirq-core/cirq/ops/linear_combinations.py @@ -575,7 +575,10 @@ def __iadd__(self, other): def __add__(self, other): ...
pandas-dev__pandas-22963
BUG/ENH: Bad columns dtype when creating empty DataFrame #### Code Sample ```python >>> df = pd.DataFrame(columns=list('ABC'), dtype='int64') >>> df Empty DataFrame Columns: [A, B, C] Index: [] >>> df.dtypes A float64 B float64 C float64 dtype: object ``` #### Problem description When creatin...
[ { "content": "\"\"\" routings for casting \"\"\"\n\nfrom datetime import datetime, timedelta\n\nimport numpy as np\nimport warnings\n\nfrom pandas._libs import tslib, lib, tslibs\nfrom pandas._libs.tslibs import iNaT, OutOfBoundsDatetime\nfrom pandas.compat import string_types, text_type, PY3\nfrom .common impo...
[ { "content": "\"\"\" routings for casting \"\"\"\n\nfrom datetime import datetime, timedelta\n\nimport numpy as np\nimport warnings\n\nfrom pandas._libs import tslib, lib, tslibs\nfrom pandas._libs.tslibs import iNaT, OutOfBoundsDatetime\nfrom pandas.compat import string_types, text_type, PY3\nfrom .common impo...
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 9b71ab656920d..606f29ef75ba7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -199,6 +199,7 @@ Other Enhancements Backwards incompatible API changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +- A newly...
WordPress__openverse-api-233
[Bug] A circular import prevents starting the project correctly ## Description <!-- Concisely describe the bug. --> There is a problem with models imports, run the project and see: ``` web_1 | Exception in thread django-main-thread: web_1 | Traceback (most recent call last): web_1 ...
[ { "content": "from catalog.api.models.audio import (\n AltAudioFile,\n Audio,\n AudioList,\n AudioReport,\n AudioSet,\n DeletedAudio,\n MatureAudio,\n)\nfrom catalog.api.models.base import OpenLedgerModel\nfrom catalog.api.models.image import (\n DeletedImage,\n Image,\n ImageList,...
[ { "content": "from catalog.api.models.base import OpenLedgerModel # isort:skip\nfrom catalog.api.models.audio import (\n AltAudioFile,\n Audio,\n AudioList,\n AudioReport,\n AudioSet,\n DeletedAudio,\n MatureAudio,\n)\nfrom catalog.api.models.image import (\n DeletedImage,\n Image,\n...
diff --git a/openverse-api/catalog/api/models/__init__.py b/openverse-api/catalog/api/models/__init__.py index 4ba63324c..93823d132 100644 --- a/openverse-api/catalog/api/models/__init__.py +++ b/openverse-api/catalog/api/models/__init__.py @@ -1,3 +1,4 @@ +from catalog.api.models.base import OpenLedgerModel # isort:s...
cupy__cupy-980
Cupy 4.0.0b4 cannot install on Windows My environment is Windows10, Python 3.6.1 When I try to install 4.0.0b4 by `pip install -e . --no-cache-dir` then it fails by an error: ``` Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\sakurai\Desktop\cupy\setup.py", l...
[ { "content": "from __future__ import print_function\n\nimport argparse\nfrom distutils import ccompiler\nfrom distutils import errors\nfrom distutils import msvccompiler\nfrom distutils import sysconfig\nfrom distutils import unixccompiler\nimport os\nfrom os import path\nimport shutil\nimport sys\n\nimport pkg...
[ { "content": "from __future__ import print_function\n\nimport argparse\nfrom distutils import ccompiler\nfrom distutils import errors\nfrom distutils import msvccompiler\nfrom distutils import sysconfig\nfrom distutils import unixccompiler\nimport os\nfrom os import path\nimport shutil\nimport sys\n\nimport pkg...
diff --git a/cupy_setup_build.py b/cupy_setup_build.py index aa1306f5da8..a9c9408037f 100644 --- a/cupy_setup_build.py +++ b/cupy_setup_build.py @@ -344,7 +344,7 @@ def make_extensions(options, compiler, use_cython): x for x in settings['library_dirs'] if path.exists(x)] # Adjust rpath to use CUDA libra...
aws-cloudformation__cfn-lint-1231
`EnableVersionUpgrade` Update Policy Not Recognized *cfn-lint version: (`cfn-lint --version`)* 0.25.5 *Description of issue:* cfn-lint does not understand `AWS::Elasticsearch::Domain`'s new `UpdatePolicy` of `EnableVersionUpgrade`. This key accepts a Boolean value. > If `EnableVersionUpgrade` is set to true, y...
[ { "content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport six\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\n\n\nclass Configuration(CloudFormationLintRule):\n \"\"\"Check Update Polic...
[ { "content": "\"\"\"\nCopyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport six\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\n\n\nclass Configuration(CloudFormationLintRule):\n \"\"\"Check Update Polic...
diff --git a/src/cfnlint/rules/resources/updatepolicy/Configuration.py b/src/cfnlint/rules/resources/updatepolicy/Configuration.py index 387d24f080..9b4548c1c9 100644 --- a/src/cfnlint/rules/resources/updatepolicy/Configuration.py +++ b/src/cfnlint/rules/resources/updatepolicy/Configuration.py @@ -91,6 +91,12 @@ class ...
mozmeao__snippets-service-857
Don't include empty data fields on ASRSnippets render
[ { "content": "import copy\nimport hashlib\nimport json\nimport os\nimport re\nimport uuid\nfrom collections import namedtuple\nfrom datetime import datetime\nfrom urllib.parse import urljoin, urlparse\n\nfrom django.conf import settings\nfrom django.urls import reverse\nfrom django.db import models\nfrom django...
[ { "content": "import copy\nimport hashlib\nimport json\nimport os\nimport re\nimport uuid\nfrom collections import namedtuple\nfrom datetime import datetime\nfrom urllib.parse import urljoin, urlparse\n\nfrom django.conf import settings\nfrom django.urls import reverse\nfrom django.db import models\nfrom django...
diff --git a/snippets/base/models.py b/snippets/base/models.py index c13c9296c..950ea8d75 100644 --- a/snippets/base/models.py +++ b/snippets/base/models.py @@ -657,6 +657,9 @@ def render(self, preview=False): # Convert inline links to fluent.js format. data = util.fluent_link_extractor(data, self.tem...
encode__httpx-2355
Multipart doesn't support tuple data value This works: ```python client.post( url, data={"foo": ("1", "2")}, # tuple ) ``` This works: ```python client.post( url, data={"foo": ["1", "2"]}, # list files={"test": b"test"}, ) ``` This fails: ```python client.post( url,...
[ { "content": "import binascii\nimport io\nimport os\nimport typing\nfrom pathlib import Path\n\nfrom ._types import (\n AsyncByteStream,\n FileContent,\n FileTypes,\n RequestFiles,\n SyncByteStream,\n)\nfrom ._utils import (\n format_form_param,\n guess_content_type,\n peek_filelike_leng...
[ { "content": "import binascii\nimport io\nimport os\nimport typing\nfrom pathlib import Path\n\nfrom ._types import (\n AsyncByteStream,\n FileContent,\n FileTypes,\n RequestFiles,\n SyncByteStream,\n)\nfrom ._utils import (\n format_form_param,\n guess_content_type,\n peek_filelike_leng...
diff --git a/httpx/_multipart.py b/httpx/_multipart.py index 8bd7a17c9b..087448f9d6 100644 --- a/httpx/_multipart.py +++ b/httpx/_multipart.py @@ -205,7 +205,7 @@ def _iter_fields( self, data: dict, files: RequestFiles ) -> typing.Iterator[typing.Union[FileField, DataField]]: for name, value in d...
rotki__rotki-1957
Importing BTC accounts via XPUB fails ## Problem Definition Importing BTC accounts via xpub and derivation path hangs forever and fails adding any account. I tried several times and restarted Rotki without improvement. After clicking the "save" button, it becomes disabled and that is pretty much it. The dialog d...
[ { "content": "# Adapted from\n# https://github.com/summa-tx/riemann-keys/blob/master/riemann_keys/hdkey.py\n\nimport hashlib\nimport hmac\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import List, NamedTuple, Optional, Union, cast\n\nfrom base58check import b58decode, b58encode\nfrom co...
[ { "content": "# Adapted from\n# https://github.com/summa-tx/riemann-keys/blob/master/riemann_keys/hdkey.py\n\nimport hashlib\nimport hmac\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import List, NamedTuple, Optional, Union, cast\n\nfrom base58check import b58decode, b58encode\nfrom co...
diff --git a/docs/changelog.rst b/docs/changelog.rst index 6ae0e33704..0d7fa831c0 100755 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -5,6 +5,7 @@ Changelog * :bug:`1287` Querying bitmex balances should now work properly again. * :bug:`1916` Querying bitstamp trades should now work properly again. * :bug:`19...
sopel-irc__sopel-1028
url: UnicodeEncodeError UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in position 352: | ordinal not in range(128) (file "/usr/local/lib/python2.7/dist-packages/sopel/modules/url.py", line | 191, in find_title) https://github.com/sopel-irc/sopel/blob/master/sopel/modules/url.py#L191
[ { "content": "# coding=utf-8\n\"\"\"URL title module\"\"\"\n# Copyright 2010-2011, Michael Yanovich, yanovich.net, Kenneth Sham\n# Copyright 2012-2013 Elsie Powell\n# Copyright 2013 Lior Ramati (firerogue517@gmail.com)\n# Copyright © 2014 Elad Alfassa <elad@fedoraproject.org>\n# Licensed under the Eiffel F...
[ { "content": "# coding=utf-8\n\"\"\"URL title module\"\"\"\n# Copyright 2010-2011, Michael Yanovich, yanovich.net, Kenneth Sham\n# Copyright 2012-2013 Elsie Powell\n# Copyright 2013 Lior Ramati (firerogue517@gmail.com)\n# Copyright © 2014 Elad Alfassa <elad@fedoraproject.org>\n# Licensed under the Eiffel F...
diff --git a/sopel/modules/url.py b/sopel/modules/url.py index 58b346f76b..d2a83df848 100644 --- a/sopel/modules/url.py +++ b/sopel/modules/url.py @@ -188,7 +188,10 @@ def find_title(url): try: content = '' for byte in response.iter_content(chunk_size=512, decode_unicode=True): - conte...
PyGithub__PyGithub-882
get_repo() doesn't raise 404 I have code that is expecting get_repo() to raise an UnknownObjectException if it calls get_repo() on a repository that doesn't exist. With the 1.26.0 release, this is no longer happening; get_repo() returns an object, then subsequent (unprotected) code is getting the UnknownObjectExceptio...
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2013 AKFish <akfish@gmail.com> #\n# Copyright 2013 Ed Jacks...
[ { "content": "# -*- coding: utf-8 -*-\n\n############################ Copyrights and license ############################\n# #\n# Copyright 2013 AKFish <akfish@gmail.com> #\n# Copyright 2013 Ed Jacks...
diff --git a/github/MainClass.py b/github/MainClass.py index 2437778e2a..00a18650dc 100644 --- a/github/MainClass.py +++ b/github/MainClass.py @@ -273,7 +273,7 @@ def get_organizations(self, since=github.GithubObject.NotSet): url_parameters ) - def get_repo(self, full_name_or_id, lazy=True): ...
abey79__vpype-177
Bug: Adding a pipeline command after `show` results in a stack trace error How to reproduce: ``` $ vpype read LabradorLowPoly.svg show stat ========= Stats ========= Traceback (most recent call last): File "/home/dominik/.local/bin/vpype", line 8, in <module> sys.exit(cli()) File "/home/dominik/.local...
[ { "content": "import logging\n\nimport click\nimport numpy as np\n\nimport vpype as vp\nimport vpype_viewer\nfrom vpype_viewer import ViewMode\n\nfrom .cli import cli\n\n__all__ = [\"show\"]\n\nCOLORS = [\n (0, 0, 1),\n (0, 0.5, 0),\n (1, 0, 0),\n (0, 0.75, 0.75),\n (0, 1, 0),\n (0.75, 0, 0.75...
[ { "content": "import logging\n\nimport click\nimport numpy as np\n\nimport vpype as vp\nimport vpype_viewer\nfrom vpype_viewer import ViewMode\n\nfrom .cli import cli\n\n__all__ = [\"show\"]\n\nCOLORS = [\n (0, 0, 1),\n (0, 0.5, 0),\n (1, 0, 0),\n (0, 0.75, 0.75),\n (0, 1, 0),\n (0.75, 0, 0.75...
diff --git a/tests/test_show.py b/tests/test_show.py index 847427e6..38f7d9cb 100644 --- a/tests/test_show.py +++ b/tests/test_show.py @@ -1,6 +1,7 @@ import matplotlib.pyplot as plt import pytest +import vpype as vp import vpype_viewer from vpype_cli import cli @@ -67,3 +68,19 @@ def new_show(*args, **kwargs):...
flask-admin__flask-admin-1744
x-editable Boolean in list view doesn't update after editing When editing a boolean value in the list view (i.e. `column_editable_list = ['is_active', ]`, the field can be edited, but the new value is only shown after a page refresh.
[ { "content": "from flask import json\nfrom jinja2 import escape\nfrom wtforms.widgets import html_params\n\nfrom flask_admin._backwards import Markup\nfrom flask_admin._compat import as_unicode, text_type\nfrom flask_admin.babel import gettext\nfrom flask_admin.helpers import get_url\nfrom flask_admin.form impo...
[ { "content": "from flask import json\nfrom jinja2 import escape\nfrom wtforms.widgets import html_params\n\nfrom flask_admin._backwards import Markup\nfrom flask_admin._compat import as_unicode, text_type\nfrom flask_admin.babel import gettext\nfrom flask_admin.helpers import get_url\nfrom flask_admin.form impo...
diff --git a/doc/changelog.rst b/doc/changelog.rst index f62e20603..4bda665d7 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -1,6 +1,11 @@ Changelog ========= +Next release +----- + +* Fix display of inline x-editable boolean fields on list view + 1.5.3 ----- diff --git a/flask_admin/model/widgets.py...
mesonbuild__meson-9264
When `add_install_script` is used with `./` (curr.dir), the script may fail to run **Describe the bug** When using `meson.add_install_script('./test.sh')`, depending on the directory tree, it may happen that the script could not be run upon running later `ninja install` or `meson install`. **To Reproduce** ```...
[ { "content": "# Copyright 2013-2020 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
[ { "content": "# Copyright 2013-2020 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py index ffd177f9a081..af27801f7c11 100644 --- a/mesonbuild/programs.py +++ b/mesonbuild/programs.py @@ -295,6 +295,9 @@ def _search(self, name: str, search_dir: T.Optional[str]) -> T.List[T.Optional[s commands = self._search_dir(name, search_dir) ...
bokeh__bokeh-7069
session could auto-no-op any callbacks invoked after the session is destroyed Right now, if you do something like this: ``` def update_all_sessions(server_context): for session_context in server_context.sessions: yield session_context.with_locked_document(update_document) ``` One of the sessions could expire...
[ { "content": "''' Provides the ``ServerSession`` class.\n\n'''\nfrom __future__ import absolute_import\n\nimport logging\nlog = logging.getLogger(__name__)\n\nimport time\n\nfrom tornado import gen, locks\n\nfrom ..util.tornado import yield_for_all_futures\n\nfrom .callbacks import _DocumentCallbackGroup\n\ndef...
[ { "content": "''' Provides the ``ServerSession`` class.\n\n'''\nfrom __future__ import absolute_import\n\nimport logging\nlog = logging.getLogger(__name__)\n\nimport time\n\nfrom tornado import gen, locks\n\nfrom ..util.tornado import yield_for_all_futures\n\nfrom .callbacks import _DocumentCallbackGroup\n\ndef...
diff --git a/bokeh/server/session.py b/bokeh/server/session.py index ce15f9e3b94..16ef6ebcd67 100644 --- a/bokeh/server/session.py +++ b/bokeh/server/session.py @@ -37,6 +37,9 @@ def _needs_document_lock_wrapper(self, *args, **kwargs): # from being discarded. This avoids potential weirdness # with the...
scrapy__scrapy-5858
TLS logging broken with new cryptography https://github.com/pyca/cryptography/pull/8391 dropped `SSL_get_server_tmp_key()` so we need to disable the code that uses it if it's not available.
[ { "content": "import OpenSSL._util as pyOpenSSLutil\nimport OpenSSL.SSL\n\nfrom scrapy.utils.python import to_unicode\n\n\ndef ffi_buf_to_string(buf):\n return to_unicode(pyOpenSSLutil.ffi.string(buf))\n\n\ndef x509name_to_string(x509name):\n # from OpenSSL.crypto.X509Name.__repr__\n result_buffer = py...
[ { "content": "import OpenSSL._util as pyOpenSSLutil\nimport OpenSSL.SSL\n\nfrom scrapy.utils.python import to_unicode\n\n\ndef ffi_buf_to_string(buf):\n return to_unicode(pyOpenSSLutil.ffi.string(buf))\n\n\ndef x509name_to_string(x509name):\n # from OpenSSL.crypto.X509Name.__repr__\n result_buffer = py...
diff --git a/scrapy/utils/ssl.py b/scrapy/utils/ssl.py index f4b598ac735..3ddceea359b 100644 --- a/scrapy/utils/ssl.py +++ b/scrapy/utils/ssl.py @@ -20,6 +20,9 @@ def x509name_to_string(x509name): def get_temp_key_info(ssl_object): # adapted from OpenSSL apps/s_cb.c::ssl_print_tmp_key() + if not hasattr(pyOp...
jazzband__pip-tools-1788
Unsafe requirements are no longer included in the requirements.txt generated by pip-compile After v6.12.0 the unsafe packages pip and setuptools are no longer included in the requirements.txt when --allow-unsafe is used in pip-compile. There was a change made in writer.py (https://github.com/jazzband/pip-tools/pull...
[ { "content": "from __future__ import annotations\n\nimport io\nimport os\nimport re\nimport sys\nfrom itertools import chain\nfrom typing import BinaryIO, Iterable, Iterator, cast\n\nfrom click import unstyle\nfrom click.core import Context\nfrom pip._internal.models.format_control import FormatControl\nfrom pi...
[ { "content": "from __future__ import annotations\n\nimport io\nimport os\nimport re\nimport sys\nfrom itertools import chain\nfrom typing import BinaryIO, Iterable, Iterator, cast\n\nfrom click import unstyle\nfrom click.core import Context\nfrom pip._internal.models.format_control import FormatControl\nfrom pi...
diff --git a/piptools/writer.py b/piptools/writer.py index ae42e5bf1..e331d63ec 100644 --- a/piptools/writer.py +++ b/piptools/writer.py @@ -181,7 +181,7 @@ def _iter_lines( hashes: dict[InstallRequirement, set[str]] | None = None, ) -> Iterator[str]: # default values - unsafe_packages = u...
doccano__doccano-1654
I can't add members in the Django admin page. I can't add members in the Django admin page. steps - Add a member in the admin page (click a SAVE button). - <img width="1273" alt="スクリーンショット 2022-01-27 9 52 17" src="https://user-images.githubusercontent.com/20487308/151271702-bf60ae7e-f131-45fe-8314-e7726e90f90c.p...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import ValidationError\nfrom django.db import models\n\nfrom django.db.models import Manager\n\nfrom api.models import Project\nfrom roles.models import Role\n\n\nclass MemberManager(Manager)...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth.models import User\nfrom django.core.exceptions import ValidationError\nfrom django.db import models\n\nfrom django.db.models import Manager\n\nfrom api.models import Project\nfrom roles.models import Role\n\n\nclass MemberManager(Manager)...
diff --git a/backend/members/models.py b/backend/members/models.py index 99ad519209..9a16d86245 100644 --- a/backend/members/models.py +++ b/backend/members/models.py @@ -56,7 +56,7 @@ class Member(models.Model): objects = MemberManager() def clean(self): - members = self.objects.exclude(id=self.id) ...
django-tastypie__django-tastypie-1652
MultiAuthentication with SessionAuthentication exception when there is no CSRF token Hello, after updating to: - Django==4.1.7 - django-tastypie==0.14.5 There is an exception being thrown and not intercepted when trying to use a `MultiAuthentication` with `SessionAuthentication` and another authentication, for exa...
[ { "content": "import base64\nfrom hashlib import sha1\nimport hmac\nimport time\nimport uuid\nimport warnings\n\nfrom django.conf import settings\nfrom django.contrib.auth import authenticate\nfrom django.core.exceptions import ImproperlyConfigured\n\nfrom django.utils.translation import gettext as _\n\nfrom ur...
[ { "content": "import base64\nfrom hashlib import sha1\nimport hmac\nimport time\nimport uuid\nimport warnings\n\nfrom django.conf import settings\nfrom django.contrib.auth import authenticate\nfrom django.core.exceptions import ImproperlyConfigured\n\nfrom django.utils.translation import gettext as _\n\nfrom ur...
diff --git a/tastypie/authentication.py b/tastypie/authentication.py index 6112fb8ca..61769dead 100644 --- a/tastypie/authentication.py +++ b/tastypie/authentication.py @@ -312,7 +312,10 @@ def is_authenticated(self, request, **kwargs): return request.user.is_authenticated csrf_token = request.COO...
prowler-cloud__prowler-2709
FileNotFoundError after version 3.8.1 ### Discussed in https://github.com/prowler-cloud/prowler/discussions/2707 <div type='discussions-op-text'> <sup>Originally posted by **cerontrustly** August 10, 2023</sup> Hello guys! After using version 3.8.1 Prowler stopped working for me showing the following error: ...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\n\nfrom prowler.lib.banner import print_banner\nfrom prowler.lib.check.check import (\n bulk_load_checks_metadata,\n bulk_load_compliance_frameworks,\n exclude_checks_to_run,\n exclude_services_to_run,\n execut...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\n\nfrom prowler.lib.banner import print_banner\nfrom prowler.lib.check.check import (\n bulk_load_checks_metadata,\n bulk_load_compliance_frameworks,\n exclude_checks_to_run,\n exclude_services_to_run,\n execut...
diff --git a/prowler/__main__.py b/prowler/__main__.py index eadff86639..f7a970dab7 100644 --- a/prowler/__main__.py +++ b/prowler/__main__.py @@ -220,7 +220,9 @@ def prowler(): # Resolve previous fails of Security Hub if provider == "aws" and args.security_hub and not args.skip_sh_update: resolve_se...
AUTOMATIC1111__stable-diffusion-webui-1844
Keep -1 for seeds on X/Y plot checkbox isn't respected. **Describe the bug** Keep -1 for seeds on X/Y plot checkbox isn't respected **To Reproduce** Steps to reproduce the behavior: 1. txt2img 2. use Script, X/Y Plot, enter values, check "Keep -1 for seeds on X/Y plot" 3. Generate 4. See that all the seeds are...
[ { "content": "from collections import namedtuple\r\nfrom copy import copy\r\nfrom itertools import permutations, chain\r\nimport random\r\nimport csv\r\nfrom io import StringIO\r\nfrom PIL import Image\r\nimport numpy as np\r\n\r\nimport modules.scripts as scripts\r\nimport gradio as gr\r\n\r\nfrom modules impo...
[ { "content": "from collections import namedtuple\r\nfrom copy import copy\r\nfrom itertools import permutations, chain\r\nimport random\r\nimport csv\r\nfrom io import StringIO\r\nfrom PIL import Image\r\nimport numpy as np\r\n\r\nimport modules.scripts as scripts\r\nimport gradio as gr\r\n\r\nfrom modules impo...
diff --git a/scripts/xy_grid.py b/scripts/xy_grid.py index 6344e612f15..6e618744c52 100644 --- a/scripts/xy_grid.py +++ b/scripts/xy_grid.py @@ -190,7 +190,9 @@ def ui(self, is_img2img): return [x_type, x_values, y_type, y_values, draw_legend, no_fixed_seeds] def run(self, p, x_type, x_values, y_type,...
encode__httpx-1170
User-provided Content-Length header is missing from streaming requests ### Checklist <!-- Please make sure you check all these items before submitting your bug report. --> - [x] The bug is reproducible against the latest release and/or `master`. - [x] There are no similar issues or pull requests to fix it yet. ...
[ { "content": "import cgi\nimport datetime\nimport email.message\nimport json as jsonlib\nimport typing\nimport urllib.request\nimport warnings\nfrom collections.abc import MutableMapping\nfrom http.cookiejar import Cookie, CookieJar\nfrom urllib.parse import parse_qsl, urlencode\n\nimport chardet\nimport rfc398...
[ { "content": "import cgi\nimport datetime\nimport email.message\nimport json as jsonlib\nimport typing\nimport urllib.request\nimport warnings\nfrom collections.abc import MutableMapping\nfrom http.cookiejar import Cookie, CookieJar\nfrom urllib.parse import parse_qsl, urlencode\n\nimport chardet\nimport rfc398...
diff --git a/httpx/_models.py b/httpx/_models.py index a5913c43c4..8d294e7f23 100644 --- a/httpx/_models.py +++ b/httpx/_models.py @@ -613,6 +613,9 @@ def __init__( def prepare(self) -> None: for key, value in self.stream.get_headers().items(): + # Ignore Transfer-Encoding if the Content-Leng...
common-workflow-language__cwltool-826
Crash with caret in secondaryFiles when there's no extension to remove ## Expected Behavior > If string begins with one or more caret ^ characters, for each caret, remove the last file extension from the path (the last period . and all following characters). If there are no file extensions, the path is unchanged. ...
[ { "content": "from __future__ import absolute_import\n\nimport copy\nimport os\nimport logging\nfrom typing import (Any, Callable, Dict, List, MutableMapping, MutableSequence,\n Optional, Set, Tuple, Union)\n\nfrom typing_extensions import Text, Type, TYPE_CHECKING # pylint: disable=unused-i...
[ { "content": "from __future__ import absolute_import\n\nimport copy\nimport os\nimport logging\nfrom typing import (Any, Callable, Dict, List, MutableMapping, MutableSequence,\n Optional, Set, Tuple, Union)\n\nfrom typing_extensions import Text, Type, TYPE_CHECKING # pylint: disable=unused-i...
diff --git a/cwltool/builder.py b/cwltool/builder.py index bce20c3d9..b69d6b90b 100644 --- a/cwltool/builder.py +++ b/cwltool/builder.py @@ -50,8 +50,12 @@ def content_limit_respected_read(f): # type: (IO) -> Text def substitute(value, replace): # type: (Text, Text) -> Text - if replace[0] == "^": - re...
python-poetry__poetry-1621
`poetry shell` puts Terminal in broken state and does not function <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. --...
[ { "content": "import os\nimport signal\nimport sys\n\nimport pexpect\n\nfrom clikit.utils.terminal import Terminal\nfrom shellingham import ShellDetectionFailure\nfrom shellingham import detect_shell\n\nfrom ._compat import WINDOWS\nfrom .env import VirtualEnv\n\n\nclass Shell:\n \"\"\"\n Represents the c...
[ { "content": "import os\nimport signal\nimport sys\n\nimport pexpect\n\nfrom clikit.utils.terminal import Terminal\nfrom shellingham import ShellDetectionFailure\nfrom shellingham import detect_shell\n\nfrom ._compat import WINDOWS\nfrom .env import VirtualEnv\n\n\nclass Shell:\n \"\"\"\n Represents the c...
diff --git a/poetry/utils/shell.py b/poetry/utils/shell.py index d62192850a2..5a6afb650e1 100644 --- a/poetry/utils/shell.py +++ b/poetry/utils/shell.py @@ -58,7 +58,9 @@ def activate(self, env): # type: (VirtualEnv) -> None self._path, ["-i"], dimensions=(terminal.height, terminal.width) ...
google__clusterfuzz-1785
Local clusterfuzz instance >=v1.9.0 fails to install properly on Ubuntu 18.04 As requested by @inferno-chromium :) ## Faulty behavior Local clusterfuzz instance >=v1.9.0 crashes when starting the server via `python butler.py run_server --bootstrap` ## Error ``` google.auth.exceptions.DefaultCredentialsError: C...
[ { "content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/src/appengine/main.py b/src/appengine/main.py index 1f0d99b58b..992f5a4101 100644 --- a/src/appengine/main.py +++ b/src/appengine/main.py @@ -24,12 +24,14 @@ if os.path.exists(config_modules_path): sys.path.append(config_modules_path) -if os.environ.get('GAE_ENV'): +gae_env = os.environ.get('GAE_ENV'...
modin-project__modin-6554
BUG: read_csv with `iterator=True` throws AttributeError ### Modin version checks - [X] I have checked that this issue has not already been reported. - [X] I have confirmed this bug exists on the latest released version of Modin. - [ ] I have confirmed this bug exists on the main branch of Modin. (In order to ...
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
[ { "content": "# Licensed to Modin Development Team under one or more contributor license agreements.\n# See the NOTICE file distributed with this work for additional information regarding\n# copyright ownership. The Modin Development Team licenses this file to you under the\n# Apache License, Version 2.0 (the ...
diff --git a/modin/core/io/text/text_file_dispatcher.py b/modin/core/io/text/text_file_dispatcher.py index 158212b37ec..75f05356bb1 100644 --- a/modin/core/io/text/text_file_dispatcher.py +++ b/modin/core/io/text/text_file_dispatcher.py @@ -683,6 +683,9 @@ def check_parameters_support( if read_kwargs["chunksiz...
google__flax-1703
logical_to_mesh_axes does not process rules with repeated array dim names correctly. ### Problem you have encountered: Current implementation of logical_to_mesh_axes function results in incorrect annotation propagation incase logical_axis_rules have more than one entry for a logical axis. For example: logical_axis...
[ { "content": "# Copyright 2021 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
[ { "content": "# Copyright 2021 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap...
diff --git a/flax/linen/partitioning.py b/flax/linen/partitioning.py index f859bb926..4d3a4f430 100644 --- a/flax/linen/partitioning.py +++ b/flax/linen/partitioning.py @@ -164,7 +164,8 @@ def logical_to_mesh_axes(array_dim_names: Sequence[str], if rule_model_name in array_dim_names: pos = array_dim_names.i...
sql-machine-learning__elasticdl-1495
The worker should wait all channels are ready. If the worker has started to train and the grpc channels to connect PS are not ready, a connection error will be raised. ``` grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with: status = StatusCode.UNAVAILABLE details = "failed to connect to all add...
[ { "content": "import time\n\nimport grpc\nfrom kubernetes import client, config\n\nfrom elasticdl.python.common import log_utils\nfrom elasticdl.python.common.args import parse_worker_args\nfrom elasticdl.python.common.constants import GRPC\nfrom elasticdl.python.common.grpc_utils import build_channel\nfrom ela...
[ { "content": "import time\n\nimport grpc\nfrom kubernetes import client, config\n\nfrom elasticdl.python.common import log_utils\nfrom elasticdl.python.common.args import parse_worker_args\nfrom elasticdl.python.common.constants import GRPC\nfrom elasticdl.python.common.grpc_utils import build_channel\nfrom ela...
diff --git a/elasticdl/python/worker/main.py b/elasticdl/python/worker/main.py index 04d248654..0e9db673e 100644 --- a/elasticdl/python/worker/main.py +++ b/elasticdl/python/worker/main.py @@ -53,6 +53,13 @@ def main(): ), ], ) + + # Wait the channel is read...
PennyLaneAI__pennylane-3386
[BUG] qml.matrix(op) and op.matrix() are different for Barrier and WireCut ### Expected behavior I expected them both to pass, or both to fail. ### Actual behavior `qml.matrix(qml.Barrier(0))` passed, `qml.Barrier(0).matrix()` failed. Same for `qml.WireCut`. ### Additional information Attached source code is for B...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 620b5e513e9..30f8578973a 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -89,6 +89,9 @@ Deprecations cycles are tracked at [doc/developement/deprecations.rst](https://d expansion now occurs. [(#3369)...
DDMAL__CantusDB-454
required fields On OldCantus, to create a source you need both a manuscript ID and a siglum (fields marked with asterisk) otherwise it won't create the source. NewCantus has no asterisks on these fields, and was quite happy to let me make sources with no siglum (though it does tell me to fill out an ID field if I tr...
[ { "content": "from django.db import models\nfrom main_app.models import BaseModel, Segment\nfrom django.contrib.auth import get_user_model\n\n\nclass Source(BaseModel):\n cursus_choices = [(\"Monastic\", \"Monastic\"), (\"Secular\", \"Secular\")]\n source_status_choices = [\n (\n \"Editi...
[ { "content": "from django.db import models\nfrom main_app.models import BaseModel, Segment\nfrom django.contrib.auth import get_user_model\n\n\nclass Source(BaseModel):\n cursus_choices = [(\"Monastic\", \"Monastic\"), (\"Secular\", \"Secular\")]\n source_status_choices = [\n (\n \"Editi...
diff --git a/django/cantusdb_project/main_app/models/source.py b/django/cantusdb_project/main_app/models/source.py index 7d44f3e5f..96d8597ca 100644 --- a/django/cantusdb_project/main_app/models/source.py +++ b/django/cantusdb_project/main_app/models/source.py @@ -33,8 +33,8 @@ class Source(BaseModel): # it is a h...
aio-libs__aiohttp-7357
Request.transport is sometimes None ## Long story short The transport attribute on requests is sometimes (like 1/month on a rather idle system!?) None – I cannot figure out why? ## Expected behaviour Either never be None or an explanation in http://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.Base...
[ { "content": "import asyncio\nimport functools\nimport random\nimport sys\nimport traceback\nimport warnings\nfrom collections import defaultdict, deque\nfrom contextlib import suppress\nfrom http.cookies import SimpleCookie\nfrom itertools import cycle, islice\nfrom time import monotonic\nfrom types import Tra...
[ { "content": "import asyncio\nimport functools\nimport random\nimport sys\nimport traceback\nimport warnings\nfrom collections import defaultdict, deque\nfrom contextlib import suppress\nfrom http.cookies import SimpleCookie\nfrom itertools import cycle, islice\nfrom time import monotonic\nfrom types import Tra...
diff --git a/CHANGES/3355.bugfix b/CHANGES/3355.bugfix new file mode 100644 index 00000000000..fd002cb00df --- /dev/null +++ b/CHANGES/3355.bugfix @@ -0,0 +1 @@ +Fixed a transport is :data:`None` error -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/connector.py b/aiohttp/connector.py index bf40689d81b..2499a2dabe9 1...
nautobot__nautobot-5476
[v2.2] Team(s) field not pre-populating when editing a Contact <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with Nautobot installation, or if you have a general question, please start a discussi...
[ { "content": "from django import forms\nfrom django.contrib.contenttypes.models import ContentType\n\nfrom nautobot.core.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField\nfrom nautobot.extras.models import Role, Status\nfrom nautobot.extras.models.contacts import Contact, ContactAssociation...
[ { "content": "from django import forms\nfrom django.contrib.contenttypes.models import ContentType\n\nfrom nautobot.core.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField\nfrom nautobot.extras.models import Role, Status\nfrom nautobot.extras.models.contacts import Contact, ContactAssociation...
diff --git a/changes/5415.fixed b/changes/5415.fixed new file mode 100644 index 00000000000..9e5faaf3330 --- /dev/null +++ b/changes/5415.fixed @@ -0,0 +1 @@ +Fixed Team(s) field not pre-populating when editing a Contact. diff --git a/nautobot/extras/forms/contacts.py b/nautobot/extras/forms/contacts.py index 30e8bad44...
mesonbuild__meson-4130
llvm fallback code computes wrong build flags While preparing a backport of meson for stretch, I noticed that the test-suite failed: https://buildd.debian.org/status/fetch.php?pkg=meson&arch=all&ver=0.47.2-1~bpo9%2B1&stamp=1535598649&raw=0 The relevant part is ``` [0/1] /usr/bin/python3 /<<PKGBUILDDIR>>/meson.py ...
[ { "content": "# Copyright 2013-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/LICENSE-2.0\n\n# Unless req...
[ { "content": "# Copyright 2013-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/LICENSE-2.0\n\n# Unless req...
diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index f90422e80a51..bcaf2e8c0ec2 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -288,7 +288,7 @@ def _set_old_link_args(self): libdir = self.get_config_value(['--libdir'], 'link_args')[0] ...
apache__airflow-36241
AirbyteTriggerSyncOperator should kill job upon timeout ### Apache Airflow version 2.7.3 ### What happened When calling in not asyncronous way the AirbyteTriggerSyncOperator ([here](https://github.com/apache/airflow/blob/main/airflow/providers/airbyte/operators/airbyte.py#L79)) and timeout is reached [here](https:/...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
[ { "content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th...
diff --git a/airflow/providers/airbyte/hooks/airbyte.py b/airflow/providers/airbyte/hooks/airbyte.py index f0b68e1ad5772..a9ce336022fff 100644 --- a/airflow/providers/airbyte/hooks/airbyte.py +++ b/airflow/providers/airbyte/hooks/airbyte.py @@ -63,6 +63,7 @@ def wait_for_job(self, job_id: str | int, wait_seconds: float...
boto__boto-459
s3.Key.open_read() should read current with Key's version_id if any boto.s3.Key.get_file() makes sure to check self.version_id and adds the versionId string to the query. getting a specific version of a key like: ``` for line in mybucket.get_key( 'my/key/name.whatever', version_id='SOMELONGSTRINGOFCRAP' ): print ...
[ { "content": "# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2011, Nexenta Systems Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without r...
[ { "content": "# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2011, Nexenta Systems Inc.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without r...
diff --git a/boto/s3/key.py b/boto/s3/key.py index b7f6027af4..baf046a8b9 100644 --- a/boto/s3/key.py +++ b/boto/s3/key.py @@ -156,6 +156,10 @@ def open_read(self, headers=None, query_args=None, if self.resp == None: self.mode = 'r' + if self.version_id: + query_args = ...
conan-io__conan-center-index-5795
[package] apr/1.7.0: consumer packages fail to find apr when used as shared ### Package and Environment Details * Package Name/Version: **apr/1.7.0** * Operating System+version: **Windows 10** * Compiler+version: **MSVC v142** * Conan version: **conan 1.35.0** * Python version: **Python 3.7.9** ### ...
[ { "content": "import os\nimport re\nfrom conans import AutoToolsBuildEnvironment, ConanFile, CMake, tools\nfrom conans.errors import ConanException, ConanInvalidConfiguration\n\n\nclass AprConan(ConanFile):\n name = \"apr\"\n description = \"The Apache Portable Runtime (APR) provides a predictable and con...
[ { "content": "import os\nimport re\nfrom conans import AutoToolsBuildEnvironment, ConanFile, CMake, tools\nfrom conans.errors import ConanException, ConanInvalidConfiguration\n\n\nclass AprConan(ConanFile):\n name = \"apr\"\n description = \"The Apache Portable Runtime (APR) provides a predictable and con...
diff --git a/recipes/apr/all/conanfile.py b/recipes/apr/all/conanfile.py index 2d77b6a299e90..59a7e4a7b8416 100644 --- a/recipes/apr/all/conanfile.py +++ b/recipes/apr/all/conanfile.py @@ -120,7 +120,7 @@ def package(self): def package_info(self): self.cpp_info.names["pkg_config"] = "apr-1" - sel...
scikit-image__scikit-image-6733
Invalid f-string in _warnings ### Description: ``` f4978b1149 skimage/_shared/_warnings.py (Jarrod Millman 2022-10-11 17:14:49 -0700 145) msg = f"No warning raised matching:\n{{'\n'.join(remaining)}}" c0a0490eed skimage/_shared/_warnings.py (Steven Silvester 2014-12-23 10:59:47 -0600 146) ...
[ { "content": "from contextlib import contextmanager\nimport sys\nimport warnings\nimport re\nimport functools\nimport os\n\n__all__ = ['all_warnings', 'expected_warnings', 'warn']\n\n\n# A version of `warnings.warn` with a default stacklevel of 2.\n# functool is used so as not to increase the call stack acciden...
[ { "content": "from contextlib import contextmanager\nimport sys\nimport warnings\nimport re\nimport functools\nimport os\n\n__all__ = ['all_warnings', 'expected_warnings', 'warn']\n\n\n# A version of `warnings.warn` with a default stacklevel of 2.\n# functool is used so as not to increase the call stack acciden...
diff --git a/skimage/_shared/_warnings.py b/skimage/_shared/_warnings.py index f7c47983c3d..310acd16dcc 100644 --- a/skimage/_shared/_warnings.py +++ b/skimage/_shared/_warnings.py @@ -142,5 +142,6 @@ def expected_warnings(matching): if strict_warnings and not found: raise ValueError(f'Une...
aio-libs__aiohttp-7333
Request.transport is sometimes None ## Long story short The transport attribute on requests is sometimes (like 1/month on a rather idle system!?) None – I cannot figure out why? ## Expected behaviour Either never be None or an explanation in http://docs.aiohttp.org/en/stable/web_reference.html#aiohttp.web.Base...
[ { "content": "import asyncio\nimport dataclasses\nimport functools\nimport logging\nimport random\nimport sys\nimport traceback\nimport warnings\nfrom collections import defaultdict, deque\nfrom contextlib import suppress\nfrom http import HTTPStatus\nfrom http.cookies import SimpleCookie\nfrom itertools import...
[ { "content": "import asyncio\nimport dataclasses\nimport functools\nimport logging\nimport random\nimport sys\nimport traceback\nimport warnings\nfrom collections import defaultdict, deque\nfrom contextlib import suppress\nfrom http import HTTPStatus\nfrom http.cookies import SimpleCookie\nfrom itertools import...
diff --git a/CHANGES/3355.bugfix b/CHANGES/3355.bugfix new file mode 100644 index 00000000000..fd002cb00df --- /dev/null +++ b/CHANGES/3355.bugfix @@ -0,0 +1 @@ +Fixed a transport is :data:`None` error -- by :user:`Dreamsorcerer`. diff --git a/aiohttp/connector.py b/aiohttp/connector.py index 959a81c47a4..b05e688fb25 1...
saleor__saleor-4875
Checkout - cart of death ### What I'm trying to achieve After completing the second step at checkout (`shipping method`), I want to be able to remove all products from the cart and add others. ### Steps to reproduce the problem 1. Add any product to the cart 2. Go to checkout 3. Login to your account 4. Fill ...
[ { "content": "from typing import List, Optional, Tuple\n\nimport graphene\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.db import transaction\nfrom django.utils import timezone\n\nfrom ...checkout import models\nfrom ...checkout.error_code...
[ { "content": "from typing import List, Optional, Tuple\n\nimport graphene\nfrom django.conf import settings\nfrom django.core.exceptions import ObjectDoesNotExist, ValidationError\nfrom django.db import transaction\nfrom django.utils import timezone\n\nfrom ...checkout import models\nfrom ...checkout.error_code...
diff --git a/saleor/graphql/checkout/mutations.py b/saleor/graphql/checkout/mutations.py index 161cc8ea878..7b35d6ed8b3 100644 --- a/saleor/graphql/checkout/mutations.py +++ b/saleor/graphql/checkout/mutations.py @@ -77,6 +77,11 @@ def clean_shipping_method( def update_checkout_shipping_method_if_invalid(checkout:...
shuup__shuup-1573
Admin: Fix category name in category edit view Do not show the category with hierarchy on breadcrumbs and title ![image](https://user-images.githubusercontent.com/8770370/46307475-6926a100-c58d-11e8-82cf-cac5729c7563.png)
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of Shuup.\n#\n# Copyright (c) 2012-2018, Shuup Inc. All rights reserved.\n#\n# This source code is licensed under the OSL-3.0 license found in the\n# LICENSE file in the root directory of this source tree.\nfrom django.core.urlresolvers import reverse_l...
[ { "content": "# -*- coding: utf-8 -*-\n# This file is part of Shuup.\n#\n# Copyright (c) 2012-2018, Shuup Inc. All rights reserved.\n#\n# This source code is licensed under the OSL-3.0 license found in the\n# LICENSE file in the root directory of this source tree.\nfrom django.core.urlresolvers import reverse_l...
diff --git a/shuup/admin/modules/categories/views/edit.py b/shuup/admin/modules/categories/views/edit.py index e5e6466e6e..d170682eba 100644 --- a/shuup/admin/modules/categories/views/edit.py +++ b/shuup/admin/modules/categories/views/edit.py @@ -35,6 +35,9 @@ def get_context_data(self, **kwargs): context = su...
spack__spack-44290
Installation issue: spack install grpc ### Steps to reproduce the issue ```console $ spack config add "config:build_jobs: 48" spack clean --all spack add grpc spack concretize --force spack install ``` ### Error message ```console ==> Error: ProcessError: Command exited with status 2: 'make' '-j48...
[ { "content": "# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nfrom spack.package import *\n\n\nclass Grpc(CMakePackage):\n \"\"\"A high performance, open-so...
[ { "content": "# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\nfrom spack.package import *\n\n\nclass Grpc(CMakePackage):\n \"\"\"A high performance, open-so...
diff --git a/var/spack/repos/builtin/packages/grpc/package.py b/var/spack/repos/builtin/packages/grpc/package.py index 5c83f6d2add231..3e1daf3caccfba 100644 --- a/var/spack/repos/builtin/packages/grpc/package.py +++ b/var/spack/repos/builtin/packages/grpc/package.py @@ -62,7 +62,12 @@ class Grpc(CMakePackage): dep...
mlflow__mlflow-2699
[BUG] `pip: not found` on `mlflow models build-docker` Thank you for submitting an issue. Please refer to our [issue policy](https://www.github.com/mlflow/mlflow/blob/master/ISSUE_POLICY.md) for information on what types of issues we address. For help with debugging your code, please refer to [Stack Overflow](https://...
[ { "content": "import os\nfrom subprocess import Popen, PIPE, STDOUT\nimport logging\n\nimport mlflow\nimport mlflow.version\nfrom mlflow.utils.file_utils import TempDir, _copy_project\nfrom mlflow.utils.logging_utils import eprint\n\n_logger = logging.getLogger(__name__)\n\nDISABLE_ENV_CREATION = \"MLFLOW_DISAB...
[ { "content": "import os\nfrom subprocess import Popen, PIPE, STDOUT\nimport logging\n\nimport mlflow\nimport mlflow.version\nfrom mlflow.utils.file_utils import TempDir, _copy_project\nfrom mlflow.utils.logging_utils import eprint\n\n_logger = logging.getLogger(__name__)\n\nDISABLE_ENV_CREATION = \"MLFLOW_DISAB...
diff --git a/mlflow/models/docker_utils.py b/mlflow/models/docker_utils.py index c78c4af7c7f3d..745c39a60b293 100644 --- a/mlflow/models/docker_utils.py +++ b/mlflow/models/docker_utils.py @@ -29,7 +29,7 @@ && rm -rf /var/lib/apt/lists/* # Download and setup miniconda -RUN curl https://repo.anaconda.com/minicon...