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 ⌀ |
|---|---|---|---|---|
python-pillow__Pillow-576 | Check libwebp 0.4.0
We should check Pillow with libwebp 0.4.0 prior to the next 2.4 release.
https://chromium.googlesource.com/webm/libwebp/+/v0.4.0
| [
{
"content": "# > pyroma .\n# ------------------------------\n# Checking .\n# Found Pillow\n# ------------------------------\n# Final rating: 10/10\n# Your cheese is so fresh most people think it's a cream: Mascarpone\n# ------------------------------\nfrom __future__ import print_function\nimport glob\nimport ... | [
{
"content": "# > pyroma .\n# ------------------------------\n# Checking .\n# Found Pillow\n# ------------------------------\n# Final rating: 10/10\n# Your cheese is so fresh most people think it's a cream: Mascarpone\n# ------------------------------\nfrom __future__ import print_function\nimport glob\nimport ... | diff --git a/.gitignore b/.gitignore
index 0a642e562e9..f16a1f9a8b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,8 @@ docs/_build
# Vim cruft
.*.swp
+
+#emacs
+*~
+\#*#
+.#*
diff --git a/.travis.yml b/.travis.yml
index fc7b5e6a53e..d68de0b3279 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,9 @@ langua... |
watchdogpolska__small_eod-479 | Tagi
Stworzenie ekranu Tagi
tabela zawiera kolumnę
* tag (pole `name` w serializatorze)
Ekran paginowy wielkość strony 20
Ekran dostępny z menu bocznego
| [
{
"content": "from rest_framework import serializers\nfrom .models import Tag\n\n\nclass TagSerializer(serializers.ModelSerializer):\n class Meta:\n model = Tag\n fields = [\n \"name\",\n ]\n",
"path": "backend-project/small_eod/tags/serializers.py"
}
] | [
{
"content": "from rest_framework import serializers\nfrom .models import Tag\n\n\nclass TagSerializer(serializers.ModelSerializer):\n class Meta:\n model = Tag\n fields = [\n \"name\",\n \"id\",\n ]\n",
"path": "backend-project/small_eod/tags/serializers.py"
... | diff --git a/backend-project/small_eod/tags/serializers.py b/backend-project/small_eod/tags/serializers.py
index 1a94fd7f3..720e782c2 100644
--- a/backend-project/small_eod/tags/serializers.py
+++ b/backend-project/small_eod/tags/serializers.py
@@ -7,4 +7,5 @@ class Meta:
model = Tag
fields = [
... |
encode__httpx-286 | stop nox on first error
During nox is running, if it gets an error, continues running. if we add this: `nox.options.stop_on_first_error = True`, we don't overlook check errors or others before PR.
| [
{
"content": "import nox\n\nsource_files = (\"httpx\", \"tests\", \"setup.py\", \"noxfile.py\")\n\n\n@nox.session(reuse_venv=True)\ndef lint(session):\n session.install(\"autoflake\", \"black\", \"flake8\", \"isort\", \"seed-isort-config\")\n\n session.run(\"autoflake\", \"--in-place\", \"--recursive\", *... | [
{
"content": "import nox\n\nnox.options.stop_on_first_error = True\n\nsource_files = (\"httpx\", \"tests\", \"setup.py\", \"noxfile.py\")\n\n\n@nox.session(reuse_venv=True)\ndef lint(session):\n session.install(\"autoflake\", \"black\", \"flake8\", \"isort\", \"seed-isort-config\")\n\n session.run(\"autof... | diff --git a/noxfile.py b/noxfile.py
index 739470ab99..dea8595b85 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -1,5 +1,7 @@
import nox
+nox.options.stop_on_first_error = True
+
source_files = ("httpx", "tests", "setup.py", "noxfile.py")
|
archlinux__archinstall-470 | PermissionError redeclared in exceptions.py shadows built-in PermissionError class
```
class PermissionError(BaseException):
pass
```
Can we remove this and just use the built-in? Or we could rename ours to something different.
| [
{
"content": "class RequirementError(BaseException):\n\tpass\n\n\nclass DiskError(BaseException):\n\tpass\n\n\nclass UnknownFilesystemFormat(BaseException):\n\tpass\n\n\nclass ProfileError(BaseException):\n\tpass\n\n\nclass SysCallError(BaseException):\n\tdef __init__(self, message, exit_code):\n\t\tsuper(SysCa... | [
{
"content": "class RequirementError(BaseException):\n\tpass\n\n\nclass DiskError(BaseException):\n\tpass\n\n\nclass UnknownFilesystemFormat(BaseException):\n\tpass\n\n\nclass ProfileError(BaseException):\n\tpass\n\n\nclass SysCallError(BaseException):\n\tdef __init__(self, message, exit_code):\n\t\tsuper(SysCa... | diff --git a/archinstall/lib/exceptions.py b/archinstall/lib/exceptions.py
index 6837f58253..147b239b01 100644
--- a/archinstall/lib/exceptions.py
+++ b/archinstall/lib/exceptions.py
@@ -29,10 +29,6 @@ class HardwareIncompatibilityError(BaseException):
pass
-class PermissionError(BaseException):
- pass
-
-
class... |
projectmesa__mesa-535 | Issue 523
add networkx to the dependency specified in setup.py for #523 to allow all the tests to run without error when installing with the `pip install -e .` command.
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport re\n\nfrom setuptools import setup, find_packages\nfrom codecs import open\n\nrequires = [\n 'tornado >= 4.2, < 5.0.0',\n 'numpy',\n 'pandas',\n 'tqdm',\n 'click',\n]\n\nversion = ''\nwith open('mesa/__init__.py', 'r') as fd:\n ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport re\n\nfrom setuptools import setup, find_packages\nfrom codecs import open\n\nrequires = [\n 'tornado >= 4.2, < 5.0.0',\n 'networkx',\n 'numpy',\n 'pandas',\n 'tqdm',\n]\n\nversion = ''\nwith open('mesa/__init__.py', 'r') as fd:... | diff --git a/setup.py b/setup.py
index 33bda862497..7aad7ceedfe 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@
requires = [
'tornado >= 4.2, < 5.0.0',
+ 'networkx',
'numpy',
'pandas',
'tqdm',
diff --git a/tests/test_lifespan.py b/tests/test_lifespan.py
index 59b5a06b296..df2b7b90e9d 1006... |
cocotb__cocotb-1179 | Add Scheduler to Library Reference
The scheduler module is not at all listed in the Library Reference.
| [
{
"content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions of... | [
{
"content": "# Copyright (c) 2013 Potential Ventures Ltd\n# Copyright (c) 2013 SolarFlare Communications Inc\n# All rights reserved.\n\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions of... | diff --git a/cocotb/__init__.py b/cocotb/__init__.py
index c77686c430..5666928f45 100644
--- a/cocotb/__init__.py
+++ b/cocotb/__init__.py
@@ -85,6 +85,8 @@
scheduler = Scheduler()
+"""The global scheduler instance."""
+
regression_manager = None
plusargs = {}
diff --git a/documentation/source/library_referenc... |
statsmodels__statsmodels-1374 | move graphics.tsa to tsa.graphics
Makes more sense to me to keep the tsa stuff under the tsa namespace. Might need to deprecate functions that aren't new.
| [
{
"content": "from .ar_model import AR\nfrom .arima_model import ARMA, ARIMA\nimport vector_ar as var\nfrom .vector_ar.var_model import VAR\nfrom .vector_ar.svar_model import SVAR\nfrom .vector_ar.dynamic import DynamicVAR\nimport filters\nimport tsatools\nfrom .tsatools import (add_trend, detrend, lagmat, lagm... | [
{
"content": "from .ar_model import AR\nfrom .arima_model import ARMA, ARIMA\nimport vector_ar as var\nfrom .vector_ar.var_model import VAR\nfrom .vector_ar.svar_model import SVAR\nfrom .vector_ar.dynamic import DynamicVAR\nimport filters\nimport tsatools\nfrom .tsatools import (add_trend, detrend, lagmat, lagm... | diff --git a/docs/source/release/version0.6.rst b/docs/source/release/version0.6.rst
index 4a4e21bf37a..1dab9b71bc2 100644
--- a/docs/source/release/version0.6.rst
+++ b/docs/source/release/version0.6.rst
@@ -37,13 +37,14 @@ Adding functionality to look at seasonality in plots. Two new functions are :fun
... |
open-mmlab__mmsegmentation-658 | error in train.py
error in line 134 in mmsegmentation/tools/train.py
model.init_weights() is error
model.init_weight() is ok
| [
{
"content": "import mmcv\n\nfrom .version import __version__, version_info\n\nMMCV_MIN = '1.3.1'\nMMCV_MAX = '1.4.0'\n\n\ndef digit_version(version_str):\n digit_version = []\n for x in version_str.split('.'):\n if x.isdigit():\n digit_version.append(int(x))\n elif x.find('rc') !... | [
{
"content": "import mmcv\n\nfrom .version import __version__, version_info\n\nMMCV_MIN = '1.3.7'\nMMCV_MAX = '1.4.0'\n\n\ndef digit_version(version_str):\n digit_version = []\n for x in version_str.split('.'):\n if x.isdigit():\n digit_version.append(int(x))\n elif x.find('rc') !... | diff --git a/docs/get_started.md b/docs/get_started.md
index 23e6a52866..05f2ddc916 100644
--- a/docs/get_started.md
+++ b/docs/get_started.md
@@ -11,9 +11,11 @@ The compatible MMSegmentation and MMCV versions are as below. Please install the
| MMSegmentation version | MMCV version |
|:-------------------:|:... |
carltongibson__django-filter-989 | DeprecationWarning on python 3.7
```
django_filters/widgets.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
```
see potential fix here: https://github.com/pyparsing/pyparsing/pull/16/files
| [
{
"content": "from collections import Iterable\nfrom itertools import chain\nfrom re import search, sub\n\nfrom django import forms\nfrom django.db.models.fields import BLANK_CHOICE_DASH\nfrom django.forms.utils import flatatt\nfrom django.utils.datastructures import MultiValueDict\nfrom django.utils.encoding i... | [
{
"content": "from collections.abc import Iterable\nfrom itertools import chain\nfrom re import search, sub\n\nfrom django import forms\nfrom django.db.models.fields import BLANK_CHOICE_DASH\nfrom django.forms.utils import flatatt\nfrom django.utils.datastructures import MultiValueDict\nfrom django.utils.encodi... | diff --git a/django_filters/widgets.py b/django_filters/widgets.py
index fc7490299..756f4f776 100644
--- a/django_filters/widgets.py
+++ b/django_filters/widgets.py
@@ -1,4 +1,4 @@
-from collections import Iterable
+from collections.abc import Iterable
from itertools import chain
from re import search, sub
|
microsoft__DeepSpeed-3137 | Add Full Apache License
#3111 did not include the full Apache 2.0 License text. Adding that here.
@jeffra
| [
{
"content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\n# This script extracts fp32 consolidated weights from a zero 2 and 3 DeepSpeed checkpoints. It gets\n# copied into the top level checkpoint dir, so the user can easily do the conversion at any poin... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\n# This script extracts fp32 consolidated weights from a zero 2 and 3 DeepSpeed checkpoints. It gets\n# copied into the top level checkpoint dir, so the user can easily do t... | diff --git a/deepspeed/utils/zero_to_fp32.py b/deepspeed/utils/zero_to_fp32.py
index 55d23ca61745..6c8a5de2b1e0 100755
--- a/deepspeed/utils/zero_to_fp32.py
+++ b/deepspeed/utils/zero_to_fp32.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0
|
pymodbus-dev__pymodbus-1422 | py.typed missing in pip install
### Versions
- Python: 3.11
- OS: macOS
- Pymodbus: 3.2.0 (pip install)
- Modbus Hardware (if used):
### Description
running mypy on my project complains about missing
```
artisanlib/modbusport.py:68: error: Skipping analyzing "pymodbus.constants": module is installed,... | [
{
"content": "#!/usr/bin/env python3\n\"\"\"Installs pymodbus using setuptools.\"\"\"\n\n\n# --------------------------------------------------------------------------- #\n# initialization\n# --------------------------------------------------------------------------- #\nfrom setuptools import setup\n\n\ndepende... | [
{
"content": "#!/usr/bin/env python3\n\"\"\"Installs pymodbus using setuptools.\"\"\"\n\n\n# --------------------------------------------------------------------------- #\n# initialization\n# --------------------------------------------------------------------------- #\nfrom setuptools import setup\n\n\ndepende... | diff --git a/setup.py b/setup.py
index 1551b2dd6..7cd2ed605 100644
--- a/setup.py
+++ b/setup.py
@@ -30,4 +30,5 @@
setup(
install_requires=install_req,
extras_require=dependencies,
+ package_data={"pymodbus": ["py.typed"]},
)
|
uccser__cs-unplugged-434 | Check desired orientation of binary to alphabet resource
Currently is displayed in portrait but half the page is unused. May be better to switch to landscape which will increase the size of table cells.
| [
{
"content": "\"\"\"Module for generating Binary to Alphabet resource.\"\"\"\n\nfrom PIL import Image, ImageDraw, ImageFont\nfrom utils.retrieve_query_parameter import retrieve_query_parameter\n\n\ndef resource_image(request, resource):\n \"\"\"Create a image for Binary to Alphabet resource.\n\n Args:\n ... | [
{
"content": "\"\"\"Module for generating Binary to Alphabet resource.\"\"\"\n\nfrom PIL import Image, ImageDraw, ImageFont\nfrom utils.retrieve_query_parameter import retrieve_query_parameter\n\n\ndef resource_image(request, resource):\n \"\"\"Create a image for Binary to Alphabet resource.\n\n Args:\n ... | diff --git a/csunplugged/resources/views/binary_to_alphabet.py b/csunplugged/resources/views/binary_to_alphabet.py
index 8942f1170..894c0fa22 100644
--- a/csunplugged/resources/views/binary_to_alphabet.py
+++ b/csunplugged/resources/views/binary_to_alphabet.py
@@ -78,6 +78,7 @@ def resource_image(request, resource):
... |
spack__spack-6618 | xrootd needs openssl
xrootd needs openssl headers to compile for 4.6.0
spack find : always prompt 0 installed packages
On a clean `develop` checkout :
```
$ git clone https://github.com/LLNL/spack.git
Cloning into 'spack'...
remote: Counting objects: 25613, done.
remote: Compressing objects: 100% (42/42), done.
remot... | [
{
"content": "##############################################################################\n# Copyright (c) 2013-2017, 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-2017, 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/var/spack/repos/builtin/packages/xrootd/package.py b/var/spack/repos/builtin/packages/xrootd/package.py
index 2514997f88a18c..16a178788334df 100644
--- a/var/spack/repos/builtin/packages/xrootd/package.py
+++ b/var/spack/repos/builtin/packages/xrootd/package.py
@@ -40,3 +40,4 @@ class Xrootd(CMakePackage):... |
streamlit__streamlit-6663 | st.json replaces multiple spaces with single space
### Checklist
- [X] I have searched the [existing issues](https://github.com/streamlit/streamlit/issues) for similar issues.
- [X] I added a very descriptive title to this issue.
- [X] I have provided sufficient information below to help reproduce this issue.
### Sum... | [
{
"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | [
{
"content": "# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2... | diff --git a/e2e/scripts/st_json.py b/e2e/scripts/st_json.py
index 31a2b9b87904..2681bdaea318 100644
--- a/e2e/scripts/st_json.py
+++ b/e2e/scripts/st_json.py
@@ -17,3 +17,5 @@
data = {"foo": "bar"}
st.json(data)
st.json(data, expanded=False)
+data = {"Hello World": "Foo Bar"}
+st.json(data)
diff --git a/e2e/... |
jazzband__pip-tools-555 | pip-sync uninstalls pkg-resources, breaks psycopg2
`pip-sync` uninstalls `pkg-resources`, which in turn breaks installation of many other packages. `pkg-resources` is a new "system" package that was recently extracted from `setuptools` (since version 31, I believe). I think it must be handled similarly to `setuptools`.... | [
{
"content": "import collections\nimport os\nimport sys\nfrom subprocess import check_call\n\nfrom . import click\nfrom .exceptions import IncompatibleRequirements, UnsupportedConstraint\nfrom .utils import flat_map, format_requirement, key_from_req\n\nPACKAGES_TO_IGNORE = [\n 'pip',\n 'pip-tools',\n '... | [
{
"content": "import collections\nimport os\nimport sys\nfrom subprocess import check_call\n\nfrom . import click\nfrom .exceptions import IncompatibleRequirements, UnsupportedConstraint\nfrom .utils import flat_map, format_requirement, key_from_req\n\nPACKAGES_TO_IGNORE = [\n 'pip',\n 'pip-tools',\n '... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0e04189fd..1de8180b7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ when `--allow-unsafe` was not set. ([#517](https://github.com/jazzband/pip-tools
- Fixed bug where editable PyPI dependencies would have a `download_dir` and be exposed to `git-checkout-in... |
wemake-services__wemake-python-styleguide-1700 | WPS421 doesn't catch pprint.pprint()
WPS421 has pprint in the blacklist, however does not catch a call to `pprint.pprint()`.
WPS421 doesn't catch pprint.pprint()
WPS421 has pprint in the blacklist, however does not catch a call to `pprint.pprint()`.
| [
{
"content": "\"\"\"\nThis module contains list of white- and black-listed ``python`` members.\n\nWe add values here when we want to make them public.\nOr when a value is reused in several places.\nThen, we automatically have to add it here and document it.\n\nOther constants that are not used across modules\na... | [
{
"content": "\"\"\"\nThis module contains list of white- and black-listed ``python`` members.\n\nWe add values here when we want to make them public.\nOr when a value is reused in several places.\nThen, we automatically have to add it here and document it.\n\nOther constants that are not used across modules\na... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5cf56332c..b4ed1c340 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -47,6 +47,7 @@ Semantic versioning in our case means:
- Allow to use `^` with `1`
- Fixes false positives in WPS513 and WPS323
- Fixes false positive WPS426 if `lambda` in loop uses only its arguments
... |
scipy__scipy-17210 | BUG: Build failure due to problems with shebang line in cythoner.py
I ran into a problem running `dev.py` that appears to be caused by the shebang line `#!python3` in the file `scipy/_build_utils/cythoner.py`. If I change it to `#!/usr/bin/env python` then the build works fine.
Most files in scipy with a shebang li... | [
{
"content": "#!python3\n\"\"\" Scipy variant of Cython command\n\nCython, as applied to single pyx file.\n\nExpects two arguments, infile and outfile.\n\nOther options passed through to cython command line parser.\n\"\"\"\n\nimport os\nimport os.path as op\nimport sys\nimport subprocess as sbp\n\n\ndef main():... | [
{
"content": "#!/usr/bin/env python3\n\"\"\" Scipy variant of Cython command\n\nCython, as applied to single pyx file.\n\nExpects two arguments, infile and outfile.\n\nOther options passed through to cython command line parser.\n\"\"\"\n\nimport os\nimport os.path as op\nimport sys\nimport subprocess as sbp\n\n... | diff --git a/scipy/_build_utils/cythoner.py b/scipy/_build_utils/cythoner.py
index d61062560fbe..6ef7ad43c2d0 100644
--- a/scipy/_build_utils/cythoner.py
+++ b/scipy/_build_utils/cythoner.py
@@ -1,4 +1,4 @@
-#!python3
+#!/usr/bin/env python3
""" Scipy variant of Cython command
Cython, as applied to single pyx file.... |
google-research__text-to-text-transfer-transformer-983 | No values in Mixture Registry
**THE ISSUES SECTION IS ONLY FOR FILING BUGS. PLEASE ASK YOUR QUESTION ON THE DISCUSSION TAB.**
I ran the script provided [here](https://github.com/google-research/text-to-text-transfer-transformer/blob/main/t5/models/hf_model.py#L39), after installing T5 in my environment, but got:
``... | [
{
"content": "# Copyright 2022 The T5 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 appl... | [
{
"content": "# Copyright 2022 The T5 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 appl... | diff --git a/t5/models/hf_model.py b/t5/models/hf_model.py
index 79fec9a0..2e3d8be9 100644
--- a/t5/models/hf_model.py
+++ b/t5/models/hf_model.py
@@ -27,6 +27,7 @@
import functools
import t5
+import t5.data.mixtures
import t5.models
import torch
import transformers
|
keras-team__keras-19118 | `keras.ops.broadcast_to` throws error `expected ArrayLike, got KerasVariable` when broadcasting a Keras layer weight. Only on `jax` backend.
Hello,
When I try to broadcast a Keras layer's weight that I create with the `self.add_weight` method, using the `keras.ops.broadcast_to` function, everything works fine on both ... | [
{
"content": "import builtins\nimport math\n\nimport jax.experimental.sparse as jax_sparse\nimport jax.numpy as jnp\n\nfrom keras.backend import config\nfrom keras.backend.common import dtypes\nfrom keras.backend.common.variables import standardize_dtype\nfrom keras.backend.jax import sparse\nfrom keras.backend... | [
{
"content": "import builtins\nimport math\n\nimport jax.experimental.sparse as jax_sparse\nimport jax.numpy as jnp\n\nfrom keras.backend import config\nfrom keras.backend.common import dtypes\nfrom keras.backend.common.variables import standardize_dtype\nfrom keras.backend.jax import sparse\nfrom keras.backend... | diff --git a/keras/backend/jax/numpy.py b/keras/backend/jax/numpy.py
index ac9d10ae3675..0b062489065b 100644
--- a/keras/backend/jax/numpy.py
+++ b/keras/backend/jax/numpy.py
@@ -322,6 +322,7 @@ def average(x, axis=None, weights=None):
def broadcast_to(x, shape):
+ x = convert_to_tensor(x)
return jnp.broad... |
celery__celery-3671 | Request on_timeout should ignore soft time limit exception
When Request.on_timeout receive a soft timeout from billiard, it does the same as if it was receiving a hard time limit exception. This is ran by the controller.
But the task may catch this exception and eg. return (this is what soft timeout are for).
Thi... | [
{
"content": "from __future__ import absolute_import, unicode_literals\nfrom . import app\n\n\n@app.task\ndef add(x, y):\n return x + y\n\n\n@app.task\ndef mul(x, y):\n return x * y\n\n\n@app.task\ndef xsum(numbers):\n return sum(numbers)\n",
"path": "examples/next-steps/proj/tasks.py"
}
] | [
{
"content": "from __future__ import absolute_import, unicode_literals\nfrom .celery import app\n\n\n@app.task\ndef add(x, y):\n return x + y\n\n\n@app.task\ndef mul(x, y):\n return x * y\n\n\n@app.task\ndef xsum(numbers):\n return sum(numbers)\n",
"path": "examples/next-steps/proj/tasks.py"
}
] | diff --git a/examples/next-steps/proj/tasks.py b/examples/next-steps/proj/tasks.py
index 22317e2cee3..07387c89e6f 100644
--- a/examples/next-steps/proj/tasks.py
+++ b/examples/next-steps/proj/tasks.py
@@ -1,5 +1,5 @@
from __future__ import absolute_import, unicode_literals
-from . import app
+from .celery import app
... |
mlflow__mlflow-9267 | Remove python shebang
Remove:
https://github.com/mlflow/mlflow/blob/d898704ed4987c5113be0cda47c28054df18f4c4/docs/source/conf.py#L1
https://github.com/mlflow/mlflow/blob/d898704ed4987c5113be0cda47c28054df18f4c4/tests/utils/test_file_utils.py#L1
| [
{
"content": "#!/usr/bin/env python3\n#\n# MLflow documentation build configuration file, created by\n# cookiecutter pipproject\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.... | [
{
"content": "#\n# MLflow documentation build configuration file, created by\n# cookiecutter pipproject\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration... | diff --git a/docs/source/conf.py b/docs/source/conf.py
index 6659cf6e0550f..d8ee88a262e3c 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
#
# MLflow documentation build configuration file, created by
# cookiecutter pipproject
diff --git a/tests/utils/test_file_utils... |
getsentry__sentry-5098 | MYSQL_PWD not recognized as sensitive field
In Sentry 8.11.0, the data key `MYSQL_PWD` is not treated as sensitive and is transmitted in cleartext and shown in the UI, while things that look like mysql connection string are rendered as `mysql://readonly:[Filtered]@db1.example.com/`
MYSQL_PWD is the standard way of p... | [
{
"content": "\"\"\"\nsentry.constants\n~~~~~~~~~~~~~~~~\n\nThese settings act as the default (base) settings for the Sentry-provided\nweb-server\n\n:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom __future__ import absolute_... | [
{
"content": "\"\"\"\nsentry.constants\n~~~~~~~~~~~~~~~~\n\nThese settings act as the default (base) settings for the Sentry-provided\nweb-server\n\n:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.\n:license: BSD, see LICENSE for more details.\n\"\"\"\nfrom __future__ import absolute_... | diff --git a/src/sentry/constants.py b/src/sentry/constants.py
index 6de35f1385085c..62f67baa86ecfd 100644
--- a/src/sentry/constants.py
+++ b/src/sentry/constants.py
@@ -173,6 +173,7 @@ def get_all_languages():
'access_token',
'auth',
'credentials',
+ 'mysql_pwd',
)
VALID_PLATFORMS = set([
diff -... |
codespell-project__codespell-3157 | Exit status is always 0 when started as a Python module
When started as `python -m codespell_lib` codespell always exits with 0.
Is it intentional?
| [
{
"content": "from ._codespell import _script_main\n\nif __name__ == \"__main__\":\n _script_main()\n",
"path": "codespell_lib/__main__.py"
}
] | [
{
"content": "import sys\n\nfrom ._codespell import _script_main\n\nif __name__ == \"__main__\":\n sys.exit(_script_main())\n",
"path": "codespell_lib/__main__.py"
}
] | diff --git a/codespell_lib/__main__.py b/codespell_lib/__main__.py
index bbadb84c5b..ecc82e092b 100644
--- a/codespell_lib/__main__.py
+++ b/codespell_lib/__main__.py
@@ -1,4 +1,6 @@
+import sys
+
from ._codespell import _script_main
if __name__ == "__main__":
- _script_main()
+ sys.exit(_script_main())
|
mlcommons__GaNDLF-747 | Porting to PyTorch 2.0
**Is your feature request related to a problem? Please describe.**
As PyTorch 2.0 is approaching its release and promising significant benefits, particularly in model compilation, it would be beneficial for GaNDLF to migrate to the platform once it becomes stable. To learn more about PyTorch 2.0... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport sys, re, os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\ntry:\n with open(\"REA... | [
{
"content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport sys, re, os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\ntry:\n with open(\"REA... | diff --git a/.devcontainer/onCreateCommand.sh b/.devcontainer/onCreateCommand.sh
index bd69500a8..fe14726b0 100755
--- a/.devcontainer/onCreateCommand.sh
+++ b/.devcontainer/onCreateCommand.sh
@@ -5,4 +5,4 @@ pip install wheel
pip install openvino-dev==2023.0.1 # [OPTIONAL] to generate optimized models for inference
... |
svthalia__concrexit-2186 | Order payments by date in payment inline in payment user admin
### Is your feature request related to a problem? Please describe.
The PaymentUserAdmin features a PaymentInline for all payments a user made. Those payments right should be ordered by date (I think they are ordered alphabetically right now)
### Descri... | [
{
"content": "\"\"\"Registers admin interfaces for the payments module.\"\"\"\nimport csv\nfrom collections import OrderedDict\n\nfrom django.contrib import admin, messages\nfrom django.contrib.admin import ModelAdmin\nfrom django.contrib.admin.utils import model_ngettext\nfrom django.db.models import QuerySet\... | [
{
"content": "\"\"\"Registers admin interfaces for the payments module.\"\"\"\nimport csv\nfrom collections import OrderedDict\n\nfrom django.contrib import admin, messages\nfrom django.contrib.admin import ModelAdmin\nfrom django.contrib.admin.utils import model_ngettext\nfrom django.db.models import QuerySet\... | diff --git a/website/payments/admin.py b/website/payments/admin.py
index 2dd23b163..dd1981be3 100644
--- a/website/payments/admin.py
+++ b/website/payments/admin.py
@@ -570,6 +570,7 @@ class PaymentInline(admin.TabularInline):
"notes",
"batch",
)
+ ordering = ("-created_at",)
show_chang... |
vispy__vispy-1794 | Add transparent color to internal color dictionary
Hi,
I've been working extending and improving `napari`'s color support (mostly [here](https://github.com/napari/napari/pull/782)) and we'd be very happy to have a "transparent" color in your internal `color_dict`, which simply corresponds to `#00000000`. This modif... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\n\ndef get_color_names():\n \"\"\"Get the known color names\n\n Returns\n -------\n names : list\n List of color nam... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright (c) Vispy Development Team. All Rights Reserved.\n# Distributed under the (new) BSD License. See LICENSE.txt for more info.\n\n\ndef get_color_names():\n \"\"\"Get the known color names\n\n Returns\n -------\n names : list\n List of color nam... | diff --git a/vispy/color/_color_dict.py b/vispy/color/_color_dict.py
index e4f5007007..119194a699 100644
--- a/vispy/color/_color_dict.py
+++ b/vispy/color/_color_dict.py
@@ -190,4 +190,5 @@ def get_color_dict():
"tomato": "#ff6347",
"white": "#ffffff",
"yellow": "#ffff00",
+ "transparent": "#00000000... |
InstaPy__InstaPy-4046 | Instapy-chromedriver not supporting latest Chrome browser version
The Instapy-chrome driver only supports Chrome upto versions 71 and since the update, the whole program quits with the error of ensure chromedriver is installed at .../insta-py/chromedriver_linux64..
| [
{
"content": "# flake8: noqa\n\nfrom .instapy import InstaPy\nfrom .util import smart_run\nfrom .settings import Settings\nfrom .file_manager import set_workspace\nfrom .file_manager import get_workspace\n\n\n# __variables__ with double-quoted values will be available in setup.py\n__version__ = \"0.2.1\"\n\n",
... | [
{
"content": "# flake8: noqa\n\nfrom .instapy import InstaPy\nfrom .util import smart_run\nfrom .settings import Settings\nfrom .file_manager import set_workspace\nfrom .file_manager import get_workspace\n\n\n# __variables__ with double-quoted values will be available in setup.py\n__version__ = \"0.2.2\"\n\n",
... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 35d1ba268..b61cf3c47 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,11 @@ The **goal** of this file is explaining to the users of our project the notable
_The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to... |
elastic__apm-agent-python-1494 | [META 576] Sanitize `*auth*` instead of `authorization`
[](https://github.com/elastic/apm/issues/576)
[ 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain... | [
{
"content": "# BSD 3-Clause License\n#\n# Copyright (c) 2019, Elasticsearch BV\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain... | diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index a9105fc36..6e8023128 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -37,6 +37,7 @@ endif::[]
===== Features
* Add OpenTelemetry API bridge {pull}1411[#1411]
+* Change default for `sanitize_field_names` to sanitize `*auth*` instead of `authoriza... |
getsentry__sentry-67881 | Support release field for customized fingerprint rules
### Problem Statement
## Context
Sentry's App Hangs collected for iOS Widgets extensions do not accurately reflect whether the extension code is hanging.
## Problem
I have disabled app hang collection in widgets in new clients, but old clients will continue to lo... | [
{
"content": "from __future__ import annotations\n\nimport inspect\nimport logging\nfrom collections.abc import Sequence\nfrom pathlib import Path\n\nfrom django.conf import settings\nfrom parsimonious.exceptions import ParseError\nfrom parsimonious.grammar import Grammar\nfrom parsimonious.nodes import NodeVis... | [
{
"content": "from __future__ import annotations\n\nimport inspect\nimport logging\nfrom collections.abc import Sequence\nfrom pathlib import Path\n\nfrom django.conf import settings\nfrom parsimonious.exceptions import ParseError\nfrom parsimonious.grammar import Grammar\nfrom parsimonious.nodes import NodeVis... | diff --git a/src/sentry/grouping/fingerprinting/__init__.py b/src/sentry/grouping/fingerprinting/__init__.py
index 038df88af8a1a0..1ed0b115b61f0e 100644
--- a/src/sentry/grouping/fingerprinting/__init__.py
+++ b/src/sentry/grouping/fingerprinting/__init__.py
@@ -283,6 +283,7 @@ def _from_config_structure(cls, data, bas... |
modin-project__modin-7045 | ModuleNotFoundError: No module named 'modin.pandas.testing'
This module is public and is used quite often.
It shouldn't be difficult to maintain, as it has a few functions:
```python
__all__ = [
"assert_extension_array_equal",
"assert_frame_equal",
"assert_series_equal",
"assert_index_equal",
]
... | [
{
"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/pandas/__init__.py b/modin/pandas/__init__.py
index 1c40219d55e..d816980f6c0 100644
--- a/modin/pandas/__init__.py
+++ b/modin/pandas/__init__.py
@@ -94,6 +94,7 @@
Float32Dtype,
Float64Dtype,
from_dummies,
+ testing,
)
import os
diff --git a/modin/pandas/test... |
sanic-org__sanic-1530 | Publish 19.3 release to PyPI
Thank you for the release 3 days ago!
https://github.com/huge-success/sanic/releases/tag/19.3
It's missing from PyPI at the moment:
https://pypi.org/project/sanic/#history
Please publish it at your convenience 🙇
Keep up the awesome work ❤️
| [
{
"content": "from sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\n\n\n__version__ = \"19.03.0\"\n\n__all__ = [\"Sanic\", \"Blueprint\"]\n",
"path": "sanic/__init__.py"
}
] | [
{
"content": "from sanic.app import Sanic\nfrom sanic.blueprints import Blueprint\n\n\n__version__ = \"19.03.1\"\n\n__all__ = [\"Sanic\", \"Blueprint\"]\n",
"path": "sanic/__init__.py"
}
] | diff --git a/sanic/__init__.py b/sanic/__init__.py
index 88d1193bc4..c7c69bd45a 100644
--- a/sanic/__init__.py
+++ b/sanic/__init__.py
@@ -2,6 +2,6 @@
from sanic.blueprints import Blueprint
-__version__ = "19.03.0"
+__version__ = "19.03.1"
__all__ = ["Sanic", "Blueprint"]
|
mdn__kuma-1830 | generate window.waffle without HTTP request
See https://github.com/jsocol/django-waffle/pull/100
| [
{
"content": "# Django settings for kuma project.\nfrom datetime import date\nimport logging\nimport os\nimport platform\nimport json\n\nfrom django.utils.functional import lazy\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom sumo_locales import LOCALES\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\... | [
{
"content": "# Django settings for kuma project.\nfrom datetime import date\nimport logging\nimport os\nimport platform\nimport json\n\nfrom django.utils.functional import lazy\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom sumo_locales import LOCALES\n\nDEBUG = False\nTEMPLATE_DEBUG = DEBUG\... | diff --git a/settings.py b/settings.py
index 6fa7134e856..38ca2637afc 100644
--- a/settings.py
+++ b/settings.py
@@ -319,6 +319,7 @@ def lazy_language_deki_map():
'admindocs',
'registration',
'grappelli',
+ 'waffle'
)
TEMPLATE_CONTEXT_PROCESSORS = (
diff --git a/templates/includes/config.html b/te... |
librosa__librosa-1738 | Release new version to fix scipy tests
https://github.com/librosa/librosa/commit/12dee8eabed7df14c5622b52c05393ddfeb11f4b fixed compatibility with scipy in tests but it's not included in any release.
We rely as downstream packagers on tests to ensure all python dependencies play well together.
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Version info\"\"\"\n\nimport sys\nimport importlib\n\nshort_version = \"0.10\"\nversion = \"0.10.1dev\"\n\n\ndef __get_mod_version(modname):\n try:\n if modname in sys.modules:\n mod = sys.modules[modname]\n else:\n ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Version info\"\"\"\n\nimport sys\nimport importlib\n\nshort_version = \"0.10\"\nversion = \"0.10.1\"\n\n\ndef __get_mod_version(modname):\n try:\n if modname in sys.modules:\n mod = sys.modules[modname]\n else:\n ... | diff --git a/AUTHORS.md b/AUTHORS.md
index 46f350e5d1..ac1b32471f 100644
--- a/AUTHORS.md
+++ b/AUTHORS.md
@@ -101,6 +101,8 @@ Contributors
* Fabian Keller <https://github.com/bluenote10>
* BdeGraff <https://github.com/BdeGraff>
* Jon Petter Åsen <https://github.com/jpaasen>
+* Shin Hyun <https://github.com/kyaryunh... |
pulp__pulpcore-4449 | As a user I can list repos whose name match a regex
I'd like to be able to hit the `/pulp/api/v3/repositories/` endpoint with a filter like `name__regex` or `name__iregex` to list repos whose name match a particular regex. We have hundreds of repos so this would be a much welcome feature.
https://docs.djangoproject.... | [
{
"content": "import warnings\nfrom gettext import gettext as _\nfrom urllib.parse import urlparse\n\nfrom django.conf import settings\nfrom django.db import transaction\nfrom django.db.models.expressions import RawSQL\nfrom django.core.exceptions import FieldError, ValidationError\nfrom django.urls import Reso... | [
{
"content": "import warnings\nfrom gettext import gettext as _\nfrom urllib.parse import urlparse\n\nfrom django.conf import settings\nfrom django.db import transaction\nfrom django.db.models.expressions import RawSQL\nfrom django.core.exceptions import FieldError, ValidationError\nfrom django.urls import Reso... | diff --git a/CHANGES/4432.feature b/CHANGES/4432.feature
new file mode 100644
index 0000000000..1268f71983
--- /dev/null
+++ b/CHANGES/4432.feature
@@ -0,0 +1 @@
+Added filters ``name__regex`` and ``name__iregex`` to various endpoints.
diff --git a/pulpcore/app/viewsets/base.py b/pulpcore/app/viewsets/base.py
index 553... |
pytorch__TensorRT-1896 | Upgrade `release/1.4` to Torch 2.0.1 + TensorRT 8.6.1
- Also upgrade `main` to TensorRT 8.6.1 (as a commit to #1852)
| [
{
"content": "__version__ = \"1.4.0.rc0\"\n__cuda_version__ = \"11.8\"\n__cudnn_version__ = \"8.8\"\n__tensorrt_version__ = \"8.6\"\n",
"path": "py/versions.py"
}
] | [
{
"content": "__version__ = \"1.4.0\"\n__cuda_version__ = \"11.8\"\n__cudnn_version__ = \"8.8\"\n__tensorrt_version__ = \"8.6\"\n",
"path": "py/versions.py"
}
] | diff --git a/.circleci/config.yml b/.circleci/config.yml
index a7d799eb9d..2e4a4d0438 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -203,10 +203,10 @@ commands:
default: "8.8.0.121"
trt-version-short:
type: string
- default: "8.6.0"
+ default: "8.6.1"
trt-... |
rotki__rotki-4490 | Extract SQLCipher and pysqlcipher building to different repo
## Problem Definition
We have pinned versions of SQLCipher, and pysqlcipher that we use.
The build of SQLCipher happens on every build, docker, windows, macos, linux, arm64.
Since we use pinned versions we should create a new repo that builds sqlcipher... | [
{
"content": "from PyInstaller.utils.hooks import copy_metadata\n\ndatas = copy_metadata(\"pysqlcipher3\")\n",
"path": "tools/pyinstaller_hooks/hook-pysqlcipher3.py"
}
] | [
{
"content": "from PyInstaller.utils.hooks import copy_metadata\n\ndatas = copy_metadata(\"rotki-pysqlcipher3\")\n",
"path": "tools/pyinstaller_hooks/hook-pysqlcipher3.py"
}
] | diff --git a/.github/workflows/rotki_ci.yml b/.github/workflows/rotki_ci.yml
index 673a874771..d05f44d90b 100644
--- a/.github/workflows/rotki_ci.yml
+++ b/.github/workflows/rotki_ci.yml
@@ -7,24 +7,28 @@ on:
- develop
- bugfixes
+env:
+ PYTHON_VERSION: 3.9.13
+ NODE_VERSION: 16
+ PIP_VERSION: 22.1.2... |
XanaduAI__strawberryfields-581 | Dependency versions error
#### Issue description
I made a fork of this project and tried to setup a new virtual environment.
```
python -m venv sf-venv
source sf-venv/bin/active.fish
pip install -r requirements.txt
```
However, I got the following error
```
ERROR: Cannot install -r requirements.txt (line ... | [
{
"content": "# Copyright 2019 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 2019 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/requirements.txt b/doc/requirements.txt
index fa84097fa..df4c7bce0 100644
--- a/doc/requirements.txt
+++ b/doc/requirements.txt
@@ -4,7 +4,7 @@ ipykernel
sphinx==2.2.2
m2r
networkx>=2.0
-numpy>=1.20
+numpy>=1.19.2
plotly
quantum-blackbird
scipy>=1.0.0
diff --git a/requirements.txt b/requirements.... |
ResonantGeoData__ResonantGeoData-455 | Improve VTK.js 3D Viewer
After #406 is merged, we should improve the 3D viewer. Basically, use [this example](https://kitware.github.io/vtk-js/examples/GeometryViewer.html)
Things we should have:
- [x] drop-down menu to change the scalar array
- [x] Scalar bar
- [x] Representation style
- [x] Better background... | [
{
"content": "from rgd_testing_utils.settings import * # noqa\n\nINSTALLED_APPS += [ # noqa\n 'rgd_3d',\n 'rgd_fmv',\n 'rgd_geometry',\n 'rgd_imagery',\n # Swagger\n 'drf_yasg',\n 'django_extensions',\n]\n\nROOT_URLCONF = 'rgd_example.urls'\nWSGI_APPLICATION = 'rgd_example.wsgi.applicatio... | [
{
"content": "from rgd_testing_utils.settings import * # noqa\n\nINSTALLED_APPS += [ # noqa\n 'rgd_3d',\n 'rgd_fmv',\n 'rgd_geometry',\n 'rgd_imagery',\n # Swagger\n 'drf_yasg',\n 'django_extensions',\n]\n\nROOT_URLCONF = 'rgd_example.urls'\nWSGI_APPLICATION = 'rgd_example.wsgi.applicatio... | diff --git a/.dockerignore b/.dockerignore
index ef0db6bbb..a6f1ac15a 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -4,3 +4,4 @@
*.egg-info
build
.mypy_cache
+**/node_modules
diff --git a/.gitignore b/.gitignore
index 7707361fb..e81d36831 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,3 +62,5 @@ files/
docker-... |
zulip__zulip-27960 | Social links in website footer
Discussed here https://chat.zulip.org/#narrow/stream/107-kandra/topic/website.20footer
<img width="182" alt="image" src="https://github.com/zulip/zulip/assets/1903309/37ad6196-e5a3-499f-b65c-e035e4901596">
Working demo is on https://terpimost.github.io/zulip-plans/
```html
<div cl... | [
{
"content": "import re\nfrom typing import List, Match, Tuple\n\nfrom bs4 import BeautifulSoup\n\n# The phrases in this list will be ignored. The longest phrase is\n# tried first; this removes the chance of smaller phrases changing\n# the text before longer phrases are tried.\n# The errors shown by `tools/chec... | [
{
"content": "import re\nfrom typing import List, Match, Tuple\n\nfrom bs4 import BeautifulSoup\n\n# The phrases in this list will be ignored. The longest phrase is\n# tried first; this removes the chance of smaller phrases changing\n# the text before longer phrases are tried.\n# The errors shown by `tools/chec... | diff --git a/templates/zerver/footer.html b/templates/zerver/footer.html
index df5afbc2cc0bb..cd6b3bc4aa5c1 100644
--- a/templates/zerver/footer.html
+++ b/templates/zerver/footer.html
@@ -92,9 +92,13 @@ <h3 class="footer__section-title">
<li><a href="/values/">{{ _("Values") }}</a></li>
... |
geopandas__geopandas-2958 | ENH: link files with .fgb extension to FlatGeobuf driver
#### Is your feature request related to a problem?
I whish `GeoDataFrame.to_file()` method would recognize `.fgb` file-extensions as FlatGeobuf files and automatically select the corresponding driver. At this moment, it needs to be specified explicitly.
###... | [
{
"content": "import os\nfrom packaging.version import Version\nfrom pathlib import Path\nimport warnings\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.api.types import is_integer_dtype\n\nimport pyproj\nfrom shapely.geometry import mapping\nfrom shapely.geometry.base import BaseGeometry\n\nfrom geopa... | [
{
"content": "import os\nfrom packaging.version import Version\nfrom pathlib import Path\nimport warnings\n\nimport numpy as np\nimport pandas as pd\nfrom pandas.api.types import is_integer_dtype\n\nimport pyproj\nfrom shapely.geometry import mapping\nfrom shapely.geometry.base import BaseGeometry\n\nfrom geopa... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a3a450ef2c..c3c18e9cd0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,8 @@ New methods:
New features and improvements:
- Added ``exclusive`` parameter to ``sjoin_nearest`` method for Shapely >= 2.0 (#2877)
+- The ``to_file()`` method will now automatically d... |
holoviz__panel-3990 | Clearing value of a DatetimePicker
#### Description of expected behavior and the observed behavior
Not sure if this is a bug or a new feature to Panel. Let's say I have a layout consisting of a button named "Edit", a DatetimePicker disabled with no default value, and a button named "Submit". At the time of initializat... | [
{
"content": "from bokeh.core.enums import CalendarPosition\nfrom bokeh.core.properties import (\n Bool, Date, Datetime, Either, Enum, List, Nullable, String, Tuple,\n)\nfrom bokeh.models.widgets.inputs import InputWidget\n\n\nclass DatetimePicker(InputWidget):\n ''' Calendar-based date picker widget.\n\n... | [
{
"content": "from bokeh.core.enums import CalendarPosition\nfrom bokeh.core.properties import (\n Bool, Date, Datetime, Either, Enum, List, Nullable, String, Tuple,\n)\nfrom bokeh.models.widgets.inputs import InputWidget\n\n\nclass DatetimePicker(InputWidget):\n ''' Calendar-based date picker widget.\n\n... | diff --git a/panel/models/datetime_picker.py b/panel/models/datetime_picker.py
index c73fc7fe79..529fb94ecf 100644
--- a/panel/models/datetime_picker.py
+++ b/panel/models/datetime_picker.py
@@ -10,7 +10,7 @@ class DatetimePicker(InputWidget):
'''
- value = String(help="""
+ value = Nullable(String, help... |
googleapis__google-cloud-python-6232 | Re-generate library using tasks/synth.py
This PR was created by autosynth.
| [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/tasks/synth.py b/tasks/synth.py
index 673a913cd7d3..f986b0e76af8 100644
--- a/tasks/synth.py
+++ b/tasks/synth.py
@@ -25,6 +25,7 @@
excludes = [
'README.rst',
'setup.py',
+ 'nox*.py',
'docs/conf.py',
'docs/index.rst',
]
|
opsdroid__opsdroid-28 | Regex case sensitive
The regex match is currently case insensitive. It shouldn't be.
https://github.com/opsdroid/opsdroid/blob/master/opsdroid/helper.py#L30
| [
{
"content": "\"\"\"Helper functions to use within OpsDroid.\"\"\"\n\nimport logging\nimport re\n\n\ndef set_logging_level(logging_level):\n \"\"\"Set the logger level based on the user configuration.\"\"\"\n logger = logging.getLogger()\n if logging_level == 'critical':\n logger.setLevel(loggin... | [
{
"content": "\"\"\"Helper functions to use within OpsDroid.\"\"\"\n\nimport logging\nimport re\n\n\ndef set_logging_level(logging_level):\n \"\"\"Set the logger level based on the user configuration.\"\"\"\n logger = logging.getLogger()\n if logging_level == 'critical':\n logger.setLevel(loggin... | diff --git a/opsdroid/helper.py b/opsdroid/helper.py
index 0b3b108c8..5e52f109c 100644
--- a/opsdroid/helper.py
+++ b/opsdroid/helper.py
@@ -27,4 +27,4 @@ def set_logging_level(logging_level):
def match(regex, message):
"""Regex match a string."""
- return re.match(regex, message, re.M | re.I)
+ return re... |
librosa__librosa-1839 | librosa 0.10.2 is not compatible with matplotlib <3.5
***BEFORE POSTING A BUG REPORT*** Please look through [existing issues (both open and closed)](https://github.com/librosa/librosa/issues?q=is%3Aissue) to see if it's already been reported or fixed!
**librosa 0.10.2 is not imcompatible with matplotlib.colormap**... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Version info\"\"\"\n\nimport sys\nimport importlib\n\nshort_version = \"0.10\"\nversion = \"0.10.2\"\n\n\ndef __get_mod_version(modname):\n try:\n if modname in sys.modules:\n mod = sys.modules[modname]\n else:\n ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Version info\"\"\"\n\nimport sys\nimport importlib\n\nshort_version = \"0.10\"\nversion = \"0.10.2.post1\"\n\n\ndef __get_mod_version(modname):\n try:\n if modname in sys.modules:\n mod = sys.modules[modname]\n else:... | diff --git a/.github/environment-ci.yml b/.github/environment-ci.yml
index 9dd4e384af..aedf9f5e97 100644
--- a/.github/environment-ci.yml
+++ b/.github/environment-ci.yml
@@ -21,7 +21,7 @@ dependencies:
- typing_extensions>=4.1.1
# optional, but required for testing
- - matplotlib>=3.3.0
+ - matplotlib>=3.5.0... |
svthalia__concrexit-1750 | Event registration member serializer should be read only
### Describe the bug
https://github.com/svthalia/concrexit/blob/4ab37961f50e398cc52422cdc1df66f6ab8ff2ee/website/events/api/v2/serializers/event_registration.py#L34 This serializer should be read-only
### How to reproduce
https://staging.thalia.nu/api/v2/eve... | [
{
"content": "from rest_framework import serializers\n\nfrom events.models import EventRegistration\nfrom members.api.v2.serializers.member import MemberSerializer\n\n\nclass EventRegistrationSerializer(serializers.ModelSerializer):\n \"\"\"Serializer for event registrations.\"\"\"\n\n def __init__(self, ... | [
{
"content": "from rest_framework import serializers\n\nfrom events.models import EventRegistration\nfrom members.api.v2.serializers.member import MemberSerializer\n\n\nclass EventRegistrationSerializer(serializers.ModelSerializer):\n \"\"\"Serializer for event registrations.\"\"\"\n\n def __init__(self, ... | diff --git a/website/events/api/v2/serializers/event_registration.py b/website/events/api/v2/serializers/event_registration.py
index 70f006dcf..ba7a92bb5 100644
--- a/website/events/api/v2/serializers/event_registration.py
+++ b/website/events/api/v2/serializers/event_registration.py
@@ -31,4 +31,4 @@ class Meta:
... |
scikit-hep__pyhf-1855 | Add linkcheck to docs workflows
With the addition of [user-defined build jobs in ReadTheDocs](https://twitter.com/readthedocs/status/1519363742869295105?s=11&t=5-u_2BFwXLAj9IyXQLhIVA) I noticed that one of their examples was to [perform a check for broken links]( https://docs.readthedocs.io/en/latest/build-customizatio... | [
{
"content": "#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#... | [
{
"content": "#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#... | diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 967a8939fd..d25242f51b 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -51,6 +51,13 @@ jobs:
- name: Verify CITATION.cff schema
run: |
jsonschema <(curl -sL "https://citation-file-format.github.io... |
cloud-custodian__cloud-custodian-3433 | ci - failure around mismatched versions of tabulate
Per current ci failures we're getting 0.8.3 of tabulate installed even though azure-cli-core calls out a pin to under 0.8.2.
This mirrors the issue we had with fakeredis, where it properly declared a dependency for six == 0.12.0 and we picked up the version pin in ... | [
{
"content": "import os\nfrom io import open\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()\n\n\nsetup(\n name=\"c7n\",\n version='0.8.33.1',\n description=\"Cloud Custodian - Policy Rules Engi... | [
{
"content": "import os\nfrom io import open\nfrom setuptools import setup, find_packages\n\n\ndef read(fname):\n return open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()\n\n\nsetup(\n name=\"c7n\",\n version='0.8.33.1',\n description=\"Cloud Custodian - Policy Rules Engi... | diff --git a/requirements.txt b/requirements.txt
index 2f9ec3fc6e5..5dc4629d126 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,7 +3,7 @@ boto3>=1.9.62
botocore>=1.12.62
jsonschema>=2.5.1
PyYAML>=3.13
-tabulate>=0.7.7
+tabulate==0.8.2
jsonpatch>=1.2.1
futures>=3.1.1
python-dateutil>=2.6
diff --git a/se... |
holoviz__panel-752 | panel/examples/apps/django2/ example doesn't work
The django2 example doesn't work at least for Django 2.2. The interactive plot doesn't show up and there are no clear error messages either. However, the same example provided by ParamBokeh works fine. But I prefer Panel if this problem can be solved.
| [
{
"content": "import panel as pn\n\nfrom .sinewave import SineWave\n\ndef app(doc):\n sw = SineWave()\n row = pn.Row(sw.param, sw.plot)\n row._get_root(doc)\n",
"path": "examples/apps/django2/sliders/bk_sliders.py"
}
] | [
{
"content": "import panel as pn\n\nfrom .sinewave import SineWave\n\ndef app(doc):\n sw = SineWave()\n row = pn.Row(sw.param, sw.plot)\n row.server_doc(doc)\n",
"path": "examples/apps/django2/sliders/bk_sliders.py"
}
] | diff --git a/examples/apps/django2/sliders/bk_sliders.py b/examples/apps/django2/sliders/bk_sliders.py
index 7101f3f9ba..3a7097f60f 100644
--- a/examples/apps/django2/sliders/bk_sliders.py
+++ b/examples/apps/django2/sliders/bk_sliders.py
@@ -5,4 +5,4 @@
def app(doc):
sw = SineWave()
row = pn.Row(sw.param, s... |
mkdocs__mkdocs-636 | Site description not working
Hi,
I have the following configuration
``` yml
site_name: embed.js
site_url: http://embedjs.com
site_author: Ritesh Kumar
site_description: A jQuery plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services.
pages:
- Home: index.md
- Getting S... | [
{
"content": "#!/usr/bin/env python\n# coding: utf-8\n\nfrom __future__ import unicode_literals\nimport logging\nimport click\nimport socket\n\nfrom mkdocs import __version__\nfrom mkdocs import build\nfrom mkdocs import gh_deploy\nfrom mkdocs import new\nfrom mkdocs import serve\nfrom mkdocs import utils\nfrom... | [
{
"content": "#!/usr/bin/env python\n# coding: utf-8\n\nfrom __future__ import unicode_literals\nimport logging\nimport click\nimport socket\n\nfrom mkdocs import __version__\nfrom mkdocs import build\nfrom mkdocs import gh_deploy\nfrom mkdocs import new\nfrom mkdocs import serve\nfrom mkdocs import utils\nfrom... | diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md
index f6fef6a5be..fcf20b409b 100644
--- a/docs/about/release-notes.md
+++ b/docs/about/release-notes.md
@@ -17,6 +17,12 @@ You can determine your currently installed version using `mkdocs --version`:
## Version 0.15.0 (2015-??-??)
* Fix issues w... |
encode__httpx-691 | Version 0.10.0
Let's get squared away what we need for Version 0.10.0.
The key here is we need to make sure we've sorted out any API that'd block us from reintroducing the sync API, so...
* [x] Let's drop `.read()` from `Request` - It's not documented anywhere, not *actually* required by users, and the content is... | [
{
"content": "__title__ = \"httpx\"\n__description__ = \"A next generation HTTP client, for Python 3.\"\n__version__ = \"0.9.5\"\n",
"path": "httpx/__version__.py"
}
] | [
{
"content": "__title__ = \"httpx\"\n__description__ = \"A next generation HTTP client, for Python 3.\"\n__version__ = \"0.10.0\"\n",
"path": "httpx/__version__.py"
}
] | diff --git a/CHANGELOG.md b/CHANGELOG.md
index bdb16660dc..cfb96504ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,32 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
+## 0.10.0 (December 29th, 2019)
... |
inventree__InvenTree-2404 | It would be great to be able to search by MPN.
It would be great to be able to search by MPN.
_Originally posted by @r0l1 in https://github.com/inventree/InvenTree/issues/2384#issuecomment-982929233_
| [
{
"content": "\"\"\"\nProvides a JSON API for the Part app\n\"\"\"\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.conf.urls import url, include\nfrom django.http import JsonResponse\nfrom django.db.models import Q, F, Count, Min, Max, Avg\nfrom django.db import transaction\nf... | [
{
"content": "\"\"\"\nProvides a JSON API for the Part app\n\"\"\"\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.conf.urls import url, include\nfrom django.http import JsonResponse\nfrom django.db.models import Q, F, Count, Min, Max, Avg\nfrom django.db import transaction\nf... | diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py
index 403934d3d9d4..dbc114021404 100644
--- a/InvenTree/part/api.py
+++ b/InvenTree/part/api.py
@@ -1075,6 +1075,7 @@ def filter_queryset(self, queryset):
'revision',
'keywords',
'category__name',
+ 'manufacturer_parts__MPN',
... |
google__flax-3089 | Imcompatibility with Flax Official ImageNet example with jax version >= 0.4.7
Hi,
I was testing the [official flax example](https://github.com/google/flax/tree/main/examples/imagenet/) on Colab with jax and jaxlib version >= 0.4.7 on the colab pro+ environment with V100. After installing the requirements with `pip ... | [
{
"content": "# Copyright 2023 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 2023 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/CHANGELOG.md b/CHANGELOG.md
index 921a1181b..1be1757f7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,7 +5,6 @@ vNext
------
(Add your change to a random empty line to avoid merge conflicts)
-
-- Rudimentary quantization support: some layers can be parametrized with custom dot_general and conv_gener... |
DataDog__dd-agent-2915 | [http] HTTP Check logs error
*_Output of the [info page](https://help.datadoghq.com/hc/en-us/articles/203764635-Agent-Status-and-Information) *_
<details>
```
===================
Collector (v 5.9.1)
===================
Status date: 2016-10-09 11:44:45 (13s ago)
Pid: 15254
Platform: Linux-3.13.0-96-generic-x86... | [
{
"content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n# stdlib\nfrom datetime import datetime\nimport os.path\nfrom os import environ\nimport re\nimport socket\nimport ssl\nimport time\nimport warnings\nfrom urlparse import urlparse\n\n# 3rd... | [
{
"content": "# (C) Datadog, Inc. 2010-2016\n# All rights reserved\n# Licensed under Simplified BSD License (see LICENSE)\n\n# stdlib\nfrom datetime import datetime\nimport _strptime # noqa\nimport os.path\nfrom os import environ\nimport re\nimport socket\nimport ssl\nimport time\nimport warnings\nfrom urlparse... | diff --git a/checks.d/http_check.py b/checks.d/http_check.py
index f3976a0b79..260a4fc9cd 100644
--- a/checks.d/http_check.py
+++ b/checks.d/http_check.py
@@ -4,6 +4,7 @@
# stdlib
from datetime import datetime
+import _strptime # noqa
import os.path
from os import environ
import re
|
google__osv.dev-836 | Missing result from query
```
curl -X POST -d '{"package": {"ecosystem": "npm", "name": "ws"}, "version": "7.1.1"}' https://api.osv.dev/v1/query
```
Should return at least https://osv.dev/vulnerability/GHSA-6fc8-4gx4-v693
| [
{
"content": "# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | [
{
"content": "# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab... | diff --git a/gcp/api/integration_tests.py b/gcp/api/integration_tests.py
index 0752981657f..31b087d6b47 100644
--- a/gcp/api/integration_tests.py
+++ b/gcp/api/integration_tests.py
@@ -320,6 +320,22 @@ def test_query_semver_multiple_package(self):
self.assertCountEqual(['GO-2021-0061', 'GO-2020-0036'],
... |
django-haystack__django-haystack-1375 | Limit django versions in setup.py
Since the currently released version of haystack is incompatible with django 1.9 people have to manually install django 1.8 it would be nice if pip would handle this automatically.
The same problem will probably also arise when django 1.10 is released.
For the next release please limi... | [
{
"content": "#!/usr/bin/env python\n# encoding: utf-8\n\n# n.b. we can't have unicode_literals here due to http://bugs.python.org/setuptools/issue152\nfrom __future__ import absolute_import, division, print_function\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from ez_setup import use_se... | [
{
"content": "#!/usr/bin/env python\n# encoding: utf-8\n\n# n.b. we can't have unicode_literals here due to http://bugs.python.org/setuptools/issue152\nfrom __future__ import absolute_import, division, print_function\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from ez_setup import use_se... | diff --git a/setup.py b/setup.py
index fe240e9a8..b7afeb7a4 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,8 @@
from setuptools import setup
install_requires = [
- 'Django',
+ 'Django>=1.8',
+ 'Django<1.10',
]
tests_require = [
|
d2l-ai__d2l-en-2078 | [MXNet] matplotlib >=3.5 raises TypeError with ax.plot_wireframe in MXNet ndarray
With the latest version of matplotlib, multiple notebooks fail with a type error in mxnet (mxnet==1.7.0 & CUDA 10.2). Some of the affected sections include [optimization intro](https://d2l.ai/chapter_optimization/optimization-intro.html),... | [
{
"content": "from setuptools import setup, find_packages\nimport d2l\n\nrequirements = [\n 'jupyter',\n 'numpy',\n 'matplotlib==3.4',\n 'requests',\n 'pandas',\n 'gym'\n]\n\nsetup(\n name='d2l',\n version=d2l.__version__,\n python_requires='>=3.5',\n author='D2L Developers',\n ... | [
{
"content": "from setuptools import setup, find_packages\nimport d2l\n\nrequirements = [\n 'jupyter',\n 'numpy',\n 'matplotlib',\n 'requests',\n 'pandas',\n 'gym'\n]\n\nsetup(\n name='d2l',\n version=d2l.__version__,\n python_requires='>=3.5',\n author='D2L Developers',\n autho... | diff --git a/chapter_appendix-mathematics-for-deep-learning/integral-calculus.md b/chapter_appendix-mathematics-for-deep-learning/integral-calculus.md
index 128efe816d..ddef4ef097 100644
--- a/chapter_appendix-mathematics-for-deep-learning/integral-calculus.md
+++ b/chapter_appendix-mathematics-for-deep-learning/integr... |
mytardis__mytardis-582 | dynamic SFTP settings page password text incorrect if SITE_TITLE not set in settings.py
SITE_TITLE set to None in default_settings.py by default, which prevents the default template value for {{ site_name }} to be set to 'MyTardis'. As a result, the password information reads "Your None password" instead of "Your MyTa... | [
{
"content": "from datetime import timedelta\nfrom os import path\nfrom tempfile import gettempdir\n\nimport djcelery\n\n# MUST change this to False for any serious use.\nDEBUG = True\n\nADMINS = (('bob', 'bob@bobmail.com'), )\n\nMANAGERS = ADMINS\n\n# Dictionary containing the settings for all databases to be ... | [
{
"content": "from datetime import timedelta\nfrom os import path\nfrom tempfile import gettempdir\n\nimport djcelery\n\n# MUST change this to False for any serious use.\nDEBUG = True\n\nADMINS = (('bob', 'bob@bobmail.com'), )\n\nMANAGERS = ADMINS\n\n# Dictionary containing the settings for all databases to be ... | diff --git a/tardis/default_settings.py b/tardis/default_settings.py
index 5db11d3504..de45a028a9 100644
--- a/tardis/default_settings.py
+++ b/tardis/default_settings.py
@@ -106,7 +106,7 @@
address in production.
'''
-SITE_TITLE = None
+SITE_TITLE = 'MyTardis'
'''
customise the title of your site
'''
|
python__mypy-4770 | __ne__ doesn't allow returning NotImplemented
It seems that mypy doesn't allow `__ne__` returning `NotImplemented`, (this is allowed with `__eq__`).
And when I try explicitly adding `NotImplemented` as a possible return type, I get a run-time error:
```
File ".../pod.py", line 65, in PlainOldData
def __ne__(s... | [
{
"content": "from typing import Optional\n\n\"\"\"Shared logic between our three mypy parser files.\"\"\"\n\n\nMAGIC_METHODS = {\n \"__abs__\",\n \"__add__\",\n \"__and__\",\n \"__call__\",\n \"__cmp__\",\n \"__complex__\",\n \"__contains__\",\n \"__del__\",\n \"__delattr__\",\n \... | [
{
"content": "from typing import Optional\n\n\"\"\"Shared logic between our three mypy parser files.\"\"\"\n\n\nMAGIC_METHODS = {\n \"__abs__\",\n \"__add__\",\n \"__and__\",\n \"__call__\",\n \"__cmp__\",\n \"__complex__\",\n \"__contains__\",\n \"__del__\",\n \"__delattr__\",\n \... | diff --git a/mypy/sharedparse.py b/mypy/sharedparse.py
index 91015b6d693f..b186da088f2b 100644
--- a/mypy/sharedparse.py
+++ b/mypy/sharedparse.py
@@ -118,6 +118,7 @@
"__lt__",
"__mod__",
"__mul__",
+ "__ne__",
"__or__",
"__pow__",
"__radd__",
|
ManimCommunity__manim-126 | Remove argparse from setup.py
https://github.com/ManimCommunity/manim/blob/cf8c5b9938abafba9f6c2c1aeff9e15c8edbfdd1/setup.py#L17
Remove `argparse` from setup.py as it is a default library and need not be mentioned in `requirements.txt` and `setup.py`.
| [
{
"content": "from setuptools import setup, find_namespace_packages\n\nsetup(\n name=\"manimlib\",\n version=\"0.2.0\",\n description=\"Animation engine for explanatory math videos\",\n license=\"MIT\",\n packages=find_namespace_packages(),\n package_data={ \"manim\": [\"*.tex\"] },\n entry... | [
{
"content": "from setuptools import setup, find_namespace_packages\n\nsetup(\n name=\"manimlib\",\n version=\"0.2.0\",\n description=\"Animation engine for explanatory math videos\",\n license=\"MIT\",\n packages=find_namespace_packages(),\n package_data={ \"manim\": [\"*.tex\"] },\n entry... | diff --git a/requirements.txt b/requirements.txt
index 53f34a4ac8..6f1952e7ef 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,3 @@
-argparse
colour
numpy
Pillow
diff --git a/setup.py b/setup.py
index 018bf1ebcb..f47d495fb1 100755
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,6 @@
]
},
... |
scikit-hep__pyhf-2300 | Sphinx warning in docs for config value `jupyterlite_dir` has type `str`, defaults to `PosixPath`
Following Issue #2297, the test build of the docs is failing with
```
WARNING: The config value `jupyterlite_dir' has type `str', defaults to `PosixPath'.
```
This warning is treated as an error as we do this inten... | [
{
"content": "#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#... | [
{
"content": "#\n# pyhf documentation build configuration file, created by\n# sphinx-quickstart on Fri Feb 9 11:58:49 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#... | diff --git a/docs/conf.py b/docs/conf.py
index 062f1f5eb7..c119cd0de8 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -529,4 +529,5 @@ def setup(app):
linkcheck_retries = 50
# JupyterLite configuration
-jupyterlite_dir = "lite"
+# Use Path as jupyterlite-sphinx expects PosixPath
+jupyterlite_dir = Path("lite")
|
rotki__rotki-2192 | Suport the v2 Aave tokens
## Abstract
The v2 Aave tokens are detected thanks to the defi SDK and taken into account in the balance query. But they are not shown in the dashboard.
## Task
Add support for them and also show them in the Dashboard
| [
{
"content": "from dataclasses import dataclass, field\nfrom functools import total_ordering\nfrom typing import Any, Optional, Type, TypeVar\n\nfrom rotkehlchen.assets.resolver import AssetResolver\nfrom rotkehlchen.errors import DeserializationError, UnknownAsset, UnsupportedAsset\nfrom rotkehlchen.typing imp... | [
{
"content": "from dataclasses import dataclass, field\nfrom functools import total_ordering\nfrom typing import Any, Optional, Type, TypeVar\n\nfrom rotkehlchen.assets.resolver import AssetResolver\nfrom rotkehlchen.errors import DeserializationError, UnknownAsset, UnsupportedAsset\nfrom rotkehlchen.typing imp... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 5aaa3f0b7f..09374d5db8 100755
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -14,6 +14,7 @@ Changelog
* :feature:`2159` Users now won't see empty tables for blockchains without accounts.
* :feature:`2155` Users can now additionally filter the uniswap li... |
doccano__doccano-1530 | doccano init causes a ModuleNotFoundError for chardet
How to reproduce the behaviour
---------
Create a fresh virtualenv in which to test, then install the latest release of doccano from PyPi (v1.4.1):
```
$ virtualenv env
[...virtualenv output removed...]
$ source env/bin/activate
(env) $ pip install doc... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport io\nimport os\n\nfrom setuptools import find_packages, setup\n\nNAME = 'doccano'\nDESCRIPTION = 'doccano, text annotation tool for machine learning practitioners'\nURL = 'https://github.com/doccano/doccano'\nEMAIL = 'hiroki.nakayama.py@gmail.c... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport io\nimport os\n\nfrom setuptools import find_packages, setup\n\nNAME = 'doccano'\nDESCRIPTION = 'doccano, text annotation tool for machine learning practitioners'\nURL = 'https://github.com/doccano/doccano'\nEMAIL = 'hiroki.nakayama.py@gmail.c... | diff --git a/setup.py b/setup.py
index c2156b7311..92b0a28dc2 100644
--- a/setup.py
+++ b/setup.py
@@ -43,6 +43,8 @@
'sqlalchemy>=1.4.7',
'gunicorn>=20.1.0',
'waitress>=2.0.0',
+ 'pydantic>=1.8.2',
+ 'chardet>=4.0.0'
]
setup(
|
encode__httpx-868 | 0.12.0 PyPI wheel contains both public- and private-name modules
The following works in httpx 0.11.1:
```python
In [1]: import httpx
...: from httpx.exceptions import InvalidURL
In [2... | [
{
"content": "__title__ = \"httpx\"\n__description__ = \"A next generation HTTP client, for Python 3.\"\n__version__ = \"0.12.0\"\n",
"path": "httpx/__version__.py"
}
] | [
{
"content": "__title__ = \"httpx\"\n__description__ = \"A next generation HTTP client, for Python 3.\"\n__version__ = \"0.12.1\"\n",
"path": "httpx/__version__.py"
}
] | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 158577a198..748ac94a14 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
+## 0.12.1 (March 19th, 2020)
+
+... |
AUTOMATIC1111__stable-diffusion-webui-7583 | [Bug]: vae does not appear when clicking refresh button in models/VAE
### Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
### What happened?
Pressing the button to update the VAE list does not update the VAE list.
### Steps to reproduce the proble... | [
{
"content": "\r\n\r\ndef realesrgan_models_names():\r\n import modules.realesrgan_model\r\n return [x.name for x in modules.realesrgan_model.get_realesrgan_models(None)]\r\n\r\n\r\ndef postprocessing_scripts():\r\n import modules.scripts\r\n\r\n return modules.scripts.scripts_postproc.scripts\r\n\r... | [
{
"content": "\r\n\r\ndef realesrgan_models_names():\r\n import modules.realesrgan_model\r\n return [x.name for x in modules.realesrgan_model.get_realesrgan_models(None)]\r\n\r\n\r\ndef postprocessing_scripts():\r\n import modules.scripts\r\n\r\n return modules.scripts.scripts_postproc.scripts\r\n\r... | diff --git a/modules/shared_items.py b/modules/shared_items.py
index 8b5ec96dcdf..b72b2bae068 100644
--- a/modules/shared_items.py
+++ b/modules/shared_items.py
@@ -20,4 +20,4 @@ def sd_vae_items():
def refresh_vae_list():
import modules.sd_vae
- return modules.sd_vae.refresh_vae_list
+ return modules... |
apache__tvm-6399 | `import tvm` now requires pytest
With the merge of #6331, `import tvm` now requires pytest. I created this issue just to check whether this is something intentional or something that we want to fix.
The chain from `import tvm` to `import pytest` happens due to the `from .import testing` on `python/tvm/__init__.py`. ... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | diff --git a/python/tvm/__init__.py b/python/tvm/__init__.py
index 19a69bf6f12a..e10f387e3591 100644
--- a/python/tvm/__init__.py
+++ b/python/tvm/__init__.py
@@ -51,9 +51,6 @@
# tvm.te
from . import te
-# tvm.testing
-from . import testing
-
# tvm.driver
from .driver import build, lower
|
ManimCommunity__manim-70 | A small Bug in setup.py
In `install_requires` of `setup.py` the library `colour` is mentioned twice. This needed to be changed.
| [
{
"content": "from setuptools import setup, find_namespace_packages\nsetup(\n name=\"manimlib\",\n version=\"0.2.0\",\n description=\"Animation engine for explanatory math videos\",\n license=\"MIT\",\n packages=find_namespace_packages(),\n package_data={ \"manim\": [\"*.tex\"] },\n entry_p... | [
{
"content": "from setuptools import setup, find_namespace_packages\nsetup(\n name=\"manimlib\",\n version=\"0.2.0\",\n description=\"Animation engine for explanatory math videos\",\n license=\"MIT\",\n packages=find_namespace_packages(),\n package_data={ \"manim\": [\"*.tex\"] },\n entry_p... | diff --git a/setup.py b/setup.py
index 51b8279813..4552d4c3cb 100755
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,6 @@
]
},
install_requires=[
- "colour",
"argparse",
"colour",
"numpy",
|
pyca__cryptography-2606 | Set a minimum version on setuptools
Apparently it fails in hilarious ways with very very old setuptools (or even distribute). We should set a floor in `setup.py`.
@dstufft do you have opinions on what a reasonable floor would be?
| [
{
"content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl... | [
{
"content": "#!/usr/bin/env python\n\n# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport os\nimport pl... | diff --git a/setup.py b/setup.py
index 19f1e66382a2..3b67e8ff02da 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@
"idna>=2.0",
"pyasn1>=0.1.8",
"six>=1.4.1",
- "setuptools",
+ "setuptools>=1.0",
]
setup_requirements = []
|
blaze__blaze-1136 | psutil.NUM_CPUS deprecated and removed
``` python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-11-5c5ee3cb747a> in <module>()
----> 1 import blaze
/home/skipper/.virtualenvs/py3/lib/python3.4/site-... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport datetime\nfrom functools import wraps\n\ntry:\n from cytoolz import nth\nexcept ImportError:\n from toolz import nth\n\nfrom itertools import islice\nfrom collections import Iterator\nfrom multiprocessing.p... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport os\nimport datetime\nfrom functools import wraps\n\ntry:\n from cytoolz import nth\nexcept ImportError:\n from toolz import nth\n\nfrom itertools import islice\nfrom collections import Iterator\nfrom multiprocessing.p... | diff --git a/blaze/utils.py b/blaze/utils.py
index 7c6fb6c41..968450340 100644
--- a/blaze/utils.py
+++ b/blaze/utils.py
@@ -24,7 +24,7 @@
from .dispatch import dispatch
-thread_pool = ThreadPool(psutil.NUM_CPUS)
+thread_pool = ThreadPool(psutil.cpu_count())
def nth_list(n, seq):
|
jazzband__django-axes-648 | Error fetching command 'axes_reset_user'
Hello,
after updating to the latest django-axes (5.6.1) i've got some errors applying its migrations, since the software i'm developing is still in test i had the opportunity to start over and deleting database tables and migrations.
Unfortunately i still got this error ever... | [
{
"content": "axes_reset_username.py # type: ignore # pylint: disable=all\n",
"path": "axes/management/commands/axes_reset_user.py"
}
] | [
{
"content": "from django.core.management.base import BaseCommand\n\nfrom axes.utils import reset\n\n\nclass Command(BaseCommand):\n help = \"Reset all access attempts and lockouts for given usernames\"\n\n def add_arguments(self, parser):\n parser.add_argument(\"username\", nargs=\"+\", type=str)\... | diff --git a/axes/management/commands/axes_reset_user.py b/axes/management/commands/axes_reset_user.py
deleted file mode 100644
index 1438d29f..00000000
--- a/axes/management/commands/axes_reset_user.py
+++ /dev/null
@@ -1 +0,0 @@
-axes_reset_username.py # type: ignore # pylint: disable=all
diff --git a/axes/managemen... |
bookwyrm-social__bookwyrm-1018 | Ratings don't federate
**Describe the bug**
I do follow someone on bookwyrm.social from bookwyrm.social and wyrms.de. I have seen on b.s that they rated some books without reviewing them, but those ratings do not appear on w.d. All other posts federate properly (I think).
**Expeceted behaviour**
The rating should ... | [
{
"content": "\"\"\" note serializer and children thereof \"\"\"\nfrom dataclasses import dataclass, field\nfrom typing import Dict, List\nfrom django.apps import apps\n\nfrom .base_activity import ActivityObject, Link\nfrom .image import Document\n\n\n@dataclass(init=False)\nclass Tombstone(ActivityObject):\n ... | [
{
"content": "\"\"\" note serializer and children thereof \"\"\"\nfrom dataclasses import dataclass, field\nfrom typing import Dict, List\nfrom django.apps import apps\n\nfrom .base_activity import ActivityObject, Link\nfrom .image import Document\n\n\n@dataclass(init=False)\nclass Tombstone(ActivityObject):\n ... | diff --git a/bookwyrm/activitypub/note.py b/bookwyrm/activitypub/note.py
index b501c3d619..ea2e92b6e3 100644
--- a/bookwyrm/activitypub/note.py
+++ b/bookwyrm/activitypub/note.py
@@ -83,4 +83,5 @@ class Rating(Comment):
rating: int
content: str = None
+ name: str = None # not used, but the model inherit... |
apache__airflow-15731 | DockerOperator fails to pull an image
**Apache Airflow version**: 2.0
**Environment**:
- **OS** (from /etc/os-release): Debian GNU/Linux 10 (buster)
- **Kernel** (`uname -a`): Linux 37365fa0b59b 5.4.0-47-generic #51-Ubuntu SMP Fri Sep 4 19:50:52 UTC 2020 x86_64 GNU/Linux
- **Others**: running inside a docker co... | [
{
"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/setup.py b/setup.py
index 818b28e80d0a9..7a3024ec6f33c 100644
--- a/setup.py
+++ b/setup.py
@@ -263,7 +263,7 @@ def get_sphinx_theme_version() -> str:
'sphinxcontrib-spelling==5.2.1',
]
docker = [
- 'docker~=3.0',
+ 'docker',
]
druid = [
'pydruid>=0.4.1',
|
hylang__hy-1369 | Official support for evaluating strings of Hy code from Python
Is it possible to embed some hy code inside a python file? As opposed to having the whole file be full on hy?
| [
{
"content": "__appname__ = 'hy'\ntry:\n from hy.version import __version__\nexcept ImportError:\n __version__ = 'unknown'\n\n\nfrom hy.models import HyExpression, HyInteger, HyKeyword, HyComplex, HyString, HyBytes, HySymbol, HyFloat, HyDict, HyList, HySet, HyCons # NOQA\n\n\nimport hy.importer # NOQA\n... | [
{
"content": "__appname__ = 'hy'\ntry:\n from hy.version import __version__\nexcept ImportError:\n __version__ = 'unknown'\n\n\nfrom hy.models import HyExpression, HyInteger, HyKeyword, HyComplex, HyString, HyBytes, HySymbol, HyFloat, HyDict, HyList, HySet, HyCons # NOQA\n\n\nimport hy.importer # NOQA\n... | diff --git a/AUTHORS b/AUTHORS
index dcc9b0cee..7791140dd 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -80,3 +80,4 @@
* Neil Lindquist <archer1mail@gmail.com
* Hikaru Ikuta <woodrush924@gmail.com>
* David Schaefer <david.schaefe@gmail.com>
+* Jordan Danford <jordandanford@gmail.com>
diff --git a/NEWS b/NEWS
index 6580965ef... |
getsentry__sentry-python-133 | Rename meta key to _meta
sentry.io cannot handle "" as meta key, only "_meta"
| [
{
"content": "import os\nimport sys\nimport linecache\nimport logging\n\nfrom contextlib import contextmanager\nfrom datetime import datetime\nfrom collections import Mapping, Sequence\n\nfrom sentry_sdk._compat import (\n urlparse,\n text_type,\n implements_str,\n string_types,\n number_types,\n... | [
{
"content": "import os\nimport sys\nimport linecache\nimport logging\n\nfrom contextlib import contextmanager\nfrom datetime import datetime\nfrom collections import Mapping, Sequence\n\nfrom sentry_sdk._compat import (\n urlparse,\n text_type,\n implements_str,\n string_types,\n number_types,\n... | diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py
index 5531545e94..5b4e97a455 100644
--- a/sentry_sdk/utils.py
+++ b/sentry_sdk/utils.py
@@ -552,7 +552,7 @@ def inner(obj):
obj, meta = inner(obj)
if meta is not None:
- obj[""] = meta
+ obj["_meta"] = meta
return obj
diff --git a... |
doccano__doccano-1907 | Cannot access Django admin panel in a Heroku deployment
How to reproduce the behaviour
---------
The FAQ describes how to [create a user via the Django admin panel](https://github.com/doccano/doccano/blob/master/docs/faq.md#how-to-create-a-user) for a locally hosted Doccano. When run locally, I have no problem to rea... | [
{
"content": "import django_heroku\n\nfrom .base import * # noqa: F401,F403\n\ndjango_heroku.settings(locals(), test_runner=False)\n",
"path": "backend/config/settings/heroku.py"
}
] | [
{
"content": "import django_heroku\n\nfrom .base import * # noqa: F401,F403\n\ndjango_heroku.settings(locals(), test_runner=False, staticfiles=False)\n",
"path": "backend/config/settings/heroku.py"
}
] | diff --git a/backend/config/settings/heroku.py b/backend/config/settings/heroku.py
index 080fac7db7..c94ede01e3 100644
--- a/backend/config/settings/heroku.py
+++ b/backend/config/settings/heroku.py
@@ -2,4 +2,4 @@
from .base import * # noqa: F401,F403
-django_heroku.settings(locals(), test_runner=False)
+django_... |
mindsdb__mindsdb-2137 | [Bug]: PIP installation error
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
Hello,
using ```pip install mindsdb``` I've got this error:
```
Traceback (most recent call last):
File "C:\Users\lukas\AppData\Local\Programs\Python\Python310\lib\site-pa... | [
{
"content": "from setuptools import setup, find_packages\n\n\nabout = {}\nwith open(\"mindsdb/__about__.py\") as fp:\n exec(fp.read(), about)\n\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\n\ndef install_deps():\n \"\"\"Reads requirements.txt and preprocess it\n to be ... | [
{
"content": "from setuptools import setup, find_packages\n\n\nabout = {}\nwith open(\"mindsdb/__about__.py\") as fp:\n exec(fp.read(), about)\n\n\nwith open(\"README.md\", \"r\", encoding=\"utf8\") as fh:\n long_description = fh.read()\n\n\ndef install_deps():\n \"\"\"Reads requirements.txt and prepro... | diff --git a/setup.py b/setup.py
index 73eaa8781c7..a518fe61f34 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@
exec(fp.read(), about)
-with open("README.md", "r") as fh:
+with open("README.md", "r", encoding="utf8") as fh:
long_description = fh.read()
|
uccser__cs-unplugged-54 | Add Bootstrap 4 SCSS
| [
{
"content": "\"\"\"\nDjango settings for csunplugged project.\n\nGenerated by 'django-admin startproject' using Django 1.10.3.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.co... | [
{
"content": "\"\"\"\nDjango settings for csunplugged project.\n\nGenerated by 'django-admin startproject' using Django 1.10.3.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.co... | diff --git a/.gitignore b/.gitignore
index 52c5759ac..67d14c841 100644
--- a/.gitignore
+++ b/.gitignore
@@ -93,8 +93,12 @@ ENV/
# Rope project settings
.ropeproject
+# Installed node modules
+node_modules/
+
# vim files
*.swp
+*.swo
-# custom git configs
+# Custom git settings
.gitconfig
diff --git a/csunplug... |
typeddjango__django-stubs-2131 | Bump django from 5.0.4 to 5.0.5
Bumps [django](https://github.com/django/django) from 5.0.4 to 5.0.5.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/django/django/commit/b6844c6e325e400d8475fde51339984201164893"><code>b6844c6</code></a> [5.0.x] Bumped version for 5.0.5 release.</li>
<li><a hr... | [
{
"content": "#!/usr/bin/env python\nimport os\nfrom typing import List\n\nfrom setuptools import find_packages, setup\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, _dirs, files in os.walk(name):\n for file in files:\n if file.endswith(\".pyi\"):\n ... | [
{
"content": "#!/usr/bin/env python\nimport os\nfrom typing import List\n\nfrom setuptools import find_packages, setup\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, _dirs, files in os.walk(name):\n for file in files:\n if file.endswith(\".pyi\"):\n ... | diff --git a/django-stubs/contrib/gis/db/backends/oracle/features.pyi b/django-stubs/contrib/gis/db/backends/oracle/features.pyi
index 5c4571cc7..9785b6e1b 100644
--- a/django-stubs/contrib/gis/db/backends/oracle/features.pyi
+++ b/django-stubs/contrib/gis/db/backends/oracle/features.pyi
@@ -1,5 +1,8 @@
+from typing im... |
jazzband__django-axes-388 | Release 4.5.0
If everyone is OK with the current implementation for the `credentials`, we can release a version 4.5.0. If iteration on the work is needed, please raise any concerns you have here.
The contents of the changes for 4.5.0 from the current version are available for review in here:
https://github.com/ja... | [
{
"content": "from __future__ import unicode_literals\n\n__version__ = '4.4.3'\n\ndefault_app_config = 'axes.apps.AppConfig'\n\n\ndef get_version():\n return __version__\n",
"path": "axes/__init__.py"
}
] | [
{
"content": "from __future__ import unicode_literals\n\n__version__ = '4.5.0'\n\ndefault_app_config = 'axes.apps.AppConfig'\n\n\ndef get_version():\n return __version__\n",
"path": "axes/__init__.py"
}
] | diff --git a/CHANGES.txt b/CHANGES.txt
index 11270e66..895b38cd 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,6 +1,29 @@
Changes
=======
+4.5.0 (2018-12-25)
+------------------
+
+- Improve support for custom authentication credentials using the
+ ``AXES_USERNAME_FORM_FIELD`` and ``AXES_USERNAME_CALLABLE`` sett... |
cookiecutter__cookiecutter-609 | Drop distutils support
I feel it's about time to drop **distutils** support as we rely on [extras_require of setuptools](https://pythonhosted.org/setuptools/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies) to handle **yaml** dependencies..
What's your opinion on this matter?
| [
{
"content": "#!/usr/bin/env python\n\nimport os\nimport sys\n\ntry:\n from setuptools import setup\nexcept ImportError:\n from distutils.core import setup\n\nversion = \"1.3.0\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setup.py bdist_wheel upl... | [
{
"content": "#!/usr/bin/env python\n\nimport os\nimport sys\n\nfrom setuptools import setup\n\nversion = \"1.3.0\"\n\nif sys.argv[-1] == 'publish':\n os.system('python setup.py sdist upload')\n os.system('python setup.py bdist_wheel upload')\n sys.exit()\n\nif sys.argv[-1] == 'tag':\n os.system(\"g... | diff --git a/setup.py b/setup.py
index e6e63b923..200e53eee 100755
--- a/setup.py
+++ b/setup.py
@@ -3,10 +3,7 @@
import os
import sys
-try:
- from setuptools import setup
-except ImportError:
- from distutils.core import setup
+from setuptools import setup
version = "1.3.0"
|
rotki__rotki-501 | LBRY Credits cryptocompare price queries did not work
## Problem Definition
LBRY cryptocompare queries stopped working.
It seems that `LBRY` is known as `LBC` in cryptocompare.
## Task
Fix the cryptocompare mapping
| [
{
"content": "WORLD_TO_CRYPTOCOMPARE = {\n 'DATAcoin': 'DATA',\n 'IOTA': 'MIOTA',\n 'XRB': 'NANO',\n 'AIR-2': 'AIR*',\n # In Rotkehlchen Bitswift is BITS-2 but in cryptocompare it's BITSW\n 'BITS-2': 'BITSW',\n # In Rotkehlchen BTM is Bitmark and BTM-2 is Bytom but in\n # Cryptocompare B... | [
{
"content": "WORLD_TO_CRYPTOCOMPARE = {\n 'LBRY': 'LBC',\n 'DATAcoin': 'DATA',\n 'IOTA': 'MIOTA',\n 'XRB': 'NANO',\n 'AIR-2': 'AIR*',\n # In Rotkehlchen Bitswift is BITS-2 but in cryptocompare it's BITSW\n 'BITS-2': 'BITSW',\n # In Rotkehlchen BTM is Bitmark and BTM-2 is Bytom but in\n ... | diff --git a/docs/changelog.rst b/docs/changelog.rst
index 6ec1bbfcd7..77f212c622 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -2,6 +2,7 @@
Changelog
=========
+* :bug:`500` Fix cryptocompare price queries for LBRY credits.
* :feature:`-` Support WorldWideAssetExchange token for Bittrex after it got... |
typeddjango__django-stubs-390 | mypy@0.780 is out
We need to test if everything works on this new version and update the dependency.
| [
{
"content": "import os\nfrom distutils.core import setup\nfrom typing import List\n\nfrom setuptools import find_packages\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, dirs, files in os.walk(name):\n for file in files:\n if file.endswith('.pyi'):\n ... | [
{
"content": "import os\nfrom distutils.core import setup\nfrom typing import List\n\nfrom setuptools import find_packages\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, dirs, files in os.walk(name):\n for file in files:\n if file.endswith('.pyi'):\n ... | diff --git a/README.md b/README.md
index 86bf7d9a2..b9d25f7fd 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,9 @@ We rely on different `django` and `mypy` versions:
| django-stubs | mypy version | django version | python version
| ------------ | ---- | ---- | ---- |
-| 1.3.0 | 0.750 | 2.2.x | ^3.6
+| 1.5.0 | 0... |
CTFd__CTFd-796 | Not possible to download files as anonymous user
**Environment**:
- CTFd Version/Commit: 2.0.0 from master
- Operating System: Debian Stretch, Ubuntu 18.04, ...
- Web Browser and Version: Firefox 63
**What happened?**
* In admin, set visibility of challenges to public
* Logout
* Open challenge view (... | [
{
"content": "import sys\nimport os\n\nfrom distutils.version import StrictVersion\nfrom flask import Flask\nfrom werkzeug.contrib.fixers import ProxyFix\nfrom jinja2 import FileSystemLoader\nfrom jinja2.sandbox import SandboxedEnvironment\nfrom six.moves import input\n\nfrom CTFd import utils\nfrom CTFd.utils.... | [
{
"content": "import sys\nimport os\n\nfrom distutils.version import StrictVersion\nfrom flask import Flask\nfrom werkzeug.contrib.fixers import ProxyFix\nfrom jinja2 import FileSystemLoader\nfrom jinja2.sandbox import SandboxedEnvironment\nfrom six.moves import input\n\nfrom CTFd import utils\nfrom CTFd.utils.... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index af8d3d55c..7c1b60905 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,41 @@
-2.0.0 / 2018-12-2
+2.0.1 / 2018-12-09
+==================
+
+2.0.1 is a patch release to fix regressions and bugs in 2.0.0.
+
+If you are upgrading from a version prior to 2.0.0 please rea... |
typeddjango__django-stubs-414 | Bump max mypy version
I just updated `mypy` to `0.782` and got the following error:
> ERROR: django-stubs 1.5.0 has requirement mypy<0.780,>=0.770, but you'll have mypy 0.782 which is incompatible.
So far I have not encountered any issues despite this error (it still installed it regardless).
Can the max versi... | [
{
"content": "import os\nfrom distutils.core import setup\nfrom typing import List\n\nfrom setuptools import find_packages\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, dirs, files in os.walk(name):\n for file in files:\n if file.endswith('.pyi'):\n ... | [
{
"content": "import os\nfrom distutils.core import setup\nfrom typing import List\n\nfrom setuptools import find_packages\n\n\ndef find_stub_files(name: str) -> List[str]:\n result = []\n for root, dirs, files in os.walk(name):\n for file in files:\n if file.endswith('.pyi'):\n ... | diff --git a/setup.py b/setup.py
index 3a9d8276f..c41d1fc24 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ def find_stub_files(name: str) -> List[str]:
readme = f.read()
dependencies = [
- 'mypy>=0.780,<0.790',
+ 'mypy>=0.782,<0.790',
'typing-extensions',
'django',
]
|
fedora-infra__bodhi-1935 | The CI yaml file is invalid yaml
I noticed today that our CentOS CI service jobs have been failing for a week or two due to the yaml being invalid:
```
>>> with open('devel/ci/githubprb-project.yml') as yml:
... a = yaml.load(yml.read()) ... | [
{
"content": "import __main__\n__requires__ = __main__.__requires__ = 'WebOb>=1.4.1'\nimport pkg_resources # noqa\n\n# The following two imports are required to shut up an\n# atexit error when running tests with python 2.7\nfrom setuptools import setup, find_packages # noqa\nimport logging # noqa\nimport mul... | [
{
"content": "import __main__\n__requires__ = __main__.__requires__ = 'WebOb>=1.4.1'\nimport pkg_resources # noqa\n\n# The following two imports are required to shut up an\n# atexit error when running tests with python 2.7\nfrom setuptools import setup, find_packages # noqa\nimport logging # noqa\nimport mul... | diff --git a/bodhi/tests/test_ci.py b/bodhi/tests/test_ci.py
new file mode 100644
index 0000000000..1ff3c882a1
--- /dev/null
+++ b/bodhi/tests/test_ci.py
@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+# Copyright © 2017 Red Hat, Inc.
+#
+# This file is part of Bodhi.
+#
+# This program is free software; you can redistribut... |
dbt-labs__dbt-core-7932 | [CT-2729] [Bug] Accidental copy-paste artifact for dbt retry
### Is this a new bug in dbt-core?
- [X] I believe this is a new bug in dbt-core
- [X] I have searched the existing issues, and I could not find an existing issue for this bug
### Current Behavior
https://github.com/dbt-labs/dbt-core/blob/533988233ecc1b239... | [
{
"content": "from copy import copy\nfrom dataclasses import dataclass\nfrom typing import Callable, List, Optional, Union\n\nimport click\nfrom click.exceptions import (\n Exit as ClickExit,\n BadOptionUsage,\n NoSuchOption,\n UsageError,\n)\n\nfrom dbt.cli import requires, params as p\nfrom dbt.cl... | [
{
"content": "from copy import copy\nfrom dataclasses import dataclass\nfrom typing import Callable, List, Optional, Union\n\nimport click\nfrom click.exceptions import (\n Exit as ClickExit,\n BadOptionUsage,\n NoSuchOption,\n UsageError,\n)\n\nfrom dbt.cli import requires, params as p\nfrom dbt.cl... | diff --git a/core/dbt/cli/main.py b/core/dbt/cli/main.py
index bd8d92a4d62..ac194a2e602 100644
--- a/core/dbt/cli/main.py
+++ b/core/dbt/cli/main.py
@@ -578,7 +578,7 @@ def run(ctx, **kwargs):
return results, success
-# dbt run
+# dbt retry
@cli.command("retry")
@click.pass_context
@p.project_dir
|
biopython__biopython-4577 | AttributeError: 'SeqFeature' object has no attribute 'strand'
## Setup
- **Biopython Version:** 1.82
- **Python Version:** 3.11.5 (main, Sep 27 2023, 11:42:37) [GCC 11.4.0]
- **Operating System:** Linux-5.15.0-91-generic-x86_64-with-glibc2.35
- **Python Implementation:** CPython
## Expected Behaviour
When proce... | [
{
"content": "# Copyright 1999-2003 by Jeffrey Chang. All rights reserved.\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Clause License\".\n# Please see the LICENSE file that should have been included as part of this\n... | [
{
"content": "# Copyright 1999-2003 by Jeffrey Chang. All rights reserved.\n#\n# This file is part of the Biopython distribution and governed by your\n# choice of the \"Biopython License Agreement\" or the \"BSD 3-Clause License\".\n# Please see the LICENSE file that should have been included as part of this\n... | diff --git a/Bio/__init__.py b/Bio/__init__.py
index 331e109c754..df94984ece4 100644
--- a/Bio/__init__.py
+++ b/Bio/__init__.py
@@ -15,7 +15,7 @@
import os
import warnings
-__version__ = "1.83.dev0"
+__version__ = "1.84.dev0"
class MissingExternalDependencyError(Exception):
diff --git a/NEWS.rst b/NEWS.rst
in... |
goauthentik__authentik-9516 | 2024.4.0 LongRunningTransaction
**Describe the bug**
Prometheus alert for a long running transaction.
I think the transaction is
```
SELECT pg_advisory_unlock($1)
```
**To Reproduce**
No activity, sitting idle
**Expected behavior**
Shouldn't have the alert
**Screenshots**
**Logs**
**Version an... | [
{
"content": "#!/usr/bin/env python\n\"\"\"System Migration handler\"\"\"\nfrom importlib.util import module_from_spec, spec_from_file_location\nfrom inspect import getmembers, isclass\nfrom os import environ, system\nfrom pathlib import Path\nfrom typing import Any\n\nfrom psycopg import Connection, Cursor, co... | [
{
"content": "#!/usr/bin/env python\n\"\"\"System Migration handler\"\"\"\nfrom importlib.util import module_from_spec, spec_from_file_location\nfrom inspect import getmembers, isclass\nfrom os import environ, system\nfrom pathlib import Path\nfrom typing import Any\n\nfrom psycopg import Connection, Cursor, co... | diff --git a/lifecycle/migrate.py b/lifecycle/migrate.py
index 42504c872f0d..a7f049a45484 100755
--- a/lifecycle/migrate.py
+++ b/lifecycle/migrate.py
@@ -117,6 +117,8 @@ def run_migrations():
)
finally:
release_lock(curr)
+ curr.close()
+ conn.close()
if __name__ == "__main__"... |
jupyterhub__jupyterhub-1526 | Jupyterhub 0.8.0 radio buttons unclickable or ugly due to form-control class
```
jupyterhub --version
0.8.0
```
I have some radio buttons in my spawner's `_option_form_default`:
```
return """<label for="type">Which type of instance do you want to launch?</label>
<table>
<tr>
<td><i... | [
{
"content": "\"\"\"JupyterHub version info\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nversion_info = (\n 0,\n 8,\n 2,\n 'dev',\n)\n\n__version__ = '.'.join(map(str, version_info))\n\n\ndef _check_version(hub_version, singleuser_... | [
{
"content": "\"\"\"JupyterHub version info\"\"\"\n\n# Copyright (c) Jupyter Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nversion_info = (\n 0,\n 8,\n 2,\n 'dev',\n)\n\n__version__ = '.'.join(map(str, version_info))\n\n\ndef _check_version(hub_version, singleuser_... | diff --git a/jupyterhub/_version.py b/jupyterhub/_version.py
index eec6c65a76..e063b1c4ff 100644
--- a/jupyterhub/_version.py
+++ b/jupyterhub/_version.py
@@ -6,8 +6,8 @@
version_info = (
0,
8,
- 1,
- # 'dev',
+ 2,
+ 'dev',
)
__version__ = '.'.join(map(str, version_info))
diff --git a/share/j... |
cowrie__cowrie-1434 | Add mkdir as command
**Is your feature request related to a problem? Please describe.**
I see a lot of bots trying to build the .ssh directory or a tmp directory using mkdir. However, when the command is executed they get an error back that the command does not exist.
**Describe the solution you'd like**
Either ha... | [
{
"content": "# Copyright (c) 2010 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\n\n\"\"\"\nFilesystem related commands\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport copy\nimport getopt\nimport os.path\nimport re\n\nfrom twisted.python import log\n\ni... | [
{
"content": "# Copyright (c) 2010 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\n\n\"\"\"\nFilesystem related commands\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport copy\nimport getopt\nimport os.path\nimport re\n\nfrom twisted.python import log\n\ni... | diff --git a/src/cowrie/commands/fs.py b/src/cowrie/commands/fs.py
index 49153b1946..8a2422e476 100644
--- a/src/cowrie/commands/fs.py
+++ b/src/cowrie/commands/fs.py
@@ -517,6 +517,7 @@ def call(self):
commands['/bin/mkdir'] = command_mkdir
+commands['mkdir'] = command_mkdir
class command_rmdir(HoneyPotComma... |
joke2k__faker-1235 | French IBAN should be 27 char of length
* Faker version: 4.1.1
### Steps to reproduce
```
import faker
from faker import Faker
fake = Faker('fr_FR')
fr_iban = fake.iban()
fr_iban
'FR96505438725498141631455686'
len(fr_iban)
28
```
### Expected behavior
```
>>> len(fr_iban)
27
```
[As stated ... | [
{
"content": "from .. import Provider as BankProvider\n\n\nclass Provider(BankProvider):\n bban_format = '########################'\n country_code = 'FR'\n",
"path": "faker/providers/bank/fr_FR/__init__.py"
}
] | [
{
"content": "from .. import Provider as BankProvider\n\n\nclass Provider(BankProvider):\n bban_format = '#######################'\n country_code = 'FR'\n",
"path": "faker/providers/bank/fr_FR/__init__.py"
}
] | diff --git a/faker/providers/bank/fr_FR/__init__.py b/faker/providers/bank/fr_FR/__init__.py
index 0047f58dcd..f2ff8a98d9 100644
--- a/faker/providers/bank/fr_FR/__init__.py
+++ b/faker/providers/bank/fr_FR/__init__.py
@@ -2,5 +2,5 @@
class Provider(BankProvider):
- bban_format = '########################'
+ ... |
jazzband__django-axes-586 | Issue loading default settings on production server
Just launching a project onto AWS (fargate) servers & we're unable to login due to a missing setting. Although it's one of the axes defaults, so it's not being loaded properly.
This is happening only on the AWS setup, unable to replicate locally or within our docke... | [
{
"content": "from django.conf import settings\nfrom django.utils.translation import gettext_lazy as _\n\nfrom appconf import AppConf\n\n\nclass AxesAppConf(AppConf):\n # disable plugin when set to False\n ENABLED = True\n\n # see if the user has overridden the failure limit\n FAILURE_LIMIT = 3\n\n ... | [
{
"content": "from django.conf import settings\nfrom django.utils.translation import gettext_lazy as _\n\nfrom appconf import AppConf\n\n\nclass AxesAppConf(AppConf):\n class Meta:\n prefix = \"axes\"\n\n # disable plugin when set to False\n ENABLED = True\n\n # see if the user has overridden... | diff --git a/axes/conf.py b/axes/conf.py
index c6476896..59c838b3 100644
--- a/axes/conf.py
+++ b/axes/conf.py
@@ -5,6 +5,9 @@
class AxesAppConf(AppConf):
+ class Meta:
+ prefix = "axes"
+
# disable plugin when set to False
ENABLED = True
|
pydantic__pydantic-4418 | V1.10 release
To do/decide:
* [x] #2557 - **merged**
* [x] #2745 - needs some tweaks, but we need to decide if it's a good idea before V2
* [x] #2190 - **deferred**
* [x] cherry pick stuff from v1.9 branch, maybe just history #4350
* [x] #3346
* [x] #3593 - **deferred**
* [x] #3946
* [x] #4028 - **API will cha... | [
{
"content": "__all__ = 'compiled', 'VERSION', 'version_info'\n\nVERSION = '1.9.2'\n\ntry:\n import cython # type: ignore\nexcept ImportError:\n compiled: bool = False\nelse: # pragma: no cover\n try:\n compiled = cython.compiled\n except AttributeError:\n compiled = False\n\n\ndef v... | [
{
"content": "__all__ = 'compiled', 'VERSION', 'version_info'\n\nVERSION = '1.10.0a1'\n\ntry:\n import cython # type: ignore\nexcept ImportError:\n compiled: bool = False\nelse: # pragma: no cover\n try:\n compiled = cython.compiled\n except AttributeError:\n compiled = False\n\n\nde... | diff --git a/HISTORY.md b/HISTORY.md
index 986ef9f7096..f4992d3970a 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -1,3 +1,81 @@
+## v1.10.0a1 (2022-08-22)
+
+* Refactor the whole _pydantic_ `dataclass` decorator to really act like its standard lib equivalent.
+ It hence keeps `__eq__`, `__hash__`, ... and makes comparis... |
HypothesisWorks__hypothesis-563 | External pull requests currently fail the deploy task
The build on #536 is currently failing because the decryption is trying to run and it doesn't have access to the decryption environment variables because it comes from @Zac-HD's fork rather than the main repo.
The solution is just to have that task skip for exter... | [
{
"content": "#!/usr/bin/env python\n\n# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2017 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n#... | [
{
"content": "#!/usr/bin/env python\n\n# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2017 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n#... | diff --git a/scripts/deploy.py b/scripts/deploy.py
index 5e829b5f4c..5a1dce31fd 100644
--- a/scripts/deploy.py
+++ b/scripts/deploy.py
@@ -38,6 +38,8 @@
if __name__ == '__main__':
+ if os.environ.get('TRAVIS_SECURE_ENV_VARS', None) != 'true':
+ sys.exit(0)
print('Decrypting secrets')
|
ManageIQ__integration_tests-471 | Paginator returns wrong rec_end() result
When record is last one on it's own on the last page, rec_end() incorrectly shows 1, instead of rec_total() value.
| [
{
"content": "\"\"\"A set of functions for dealing with the paginator controls.\"\"\"\nimport cfme.fixtures.pytest_selenium as sel\nimport re\n\n_locator = '(//div[@id=\"paging_div\"] | //div[@id=\"records_div\"])'\n_next = '//img[@alt=\"Next\"]'\n_previous = '//img[@alt=\"Previous\"]'\n_first = '//img[@alt=\"F... | [
{
"content": "\"\"\"A set of functions for dealing with the paginator controls.\"\"\"\nimport cfme.fixtures.pytest_selenium as sel\nimport re\n\n_locator = '(//div[@id=\"paging_div\"] | //div[@id=\"records_div\"])'\n_next = '//img[@alt=\"Next\"]'\n_previous = '//img[@alt=\"Previous\"]'\n_first = '//img[@alt=\"F... | diff --git a/cfme/web_ui/paginator.py b/cfme/web_ui/paginator.py
index 3d33937dd4..d363040e3c 100644
--- a/cfme/web_ui/paginator.py
+++ b/cfme/web_ui/paginator.py
@@ -78,7 +78,7 @@ def rec_end():
if offset:
return offset.groups()[0]
else:
- return '1'
+ return rec_total()
def rec_t... |
Parsl__parsl-2038 | Parsl v1.1.0 Release Checklist
## Checklist
Please edit the checklist if I've missed any items.
### Documentation updates :
- [x] Update docs to point at 1.1.0 as the latest
- [x] Make sure docs are not broken on readthedocs, since a broken doc build will stick on as stable till next release.
- [x] Update c... | [
{
"content": "\"\"\"Set module version.\n\n<Major>.<Minor>.<maintenance>[alpha/beta/..]\nAlphas will be numbered like this -> 0.4.0a0\n\"\"\"\nVERSION = '1.1.0a1'\n",
"path": "parsl/version.py"
}
] | [
{
"content": "\"\"\"Set module version.\n\n<Major>.<Minor>.<maintenance>[alpha/beta/..]\nAlphas will be numbered like this -> 0.4.0a0\n\"\"\"\nVERSION = '1.1.0'\n",
"path": "parsl/version.py"
}
] | diff --git a/docs/devguide/changelog.rst b/docs/devguide/changelog.rst
index 2d0ca49b78..2e19f3ac0e 100644
--- a/docs/devguide/changelog.rst
+++ b/docs/devguide/changelog.rst
@@ -5,7 +5,7 @@ Changelog
Parsl 1.1.0
-----------
-Released (tentatively) on April 26th, 2021.
+Released on April 26th, 2021.
Parsl v1.1.... |
pulp__pulpcore-3469 | Expose "get_url" via the plugin interface
| [
{
"content": "from pulpcore.app.role_util import ( # noqa\n assign_role,\n get_groups_with_perms,\n get_groups_with_perms_attached_perms,\n get_groups_with_perms_attached_roles,\n get_objects_for_group,\n get_objects_for_user,\n get_perms_for_model,\n get_users_with_perms,\n get_user... | [
{
"content": "from pulpcore.app.role_util import ( # noqa\n assign_role,\n get_groups_with_perms,\n get_groups_with_perms_attached_perms,\n get_groups_with_perms_attached_roles,\n get_objects_for_group,\n get_objects_for_user,\n get_perms_for_model,\n get_users_with_perms,\n get_user... | diff --git a/CHANGES/plugin_api/3468.feature b/CHANGES/plugin_api/3468.feature
new file mode 100644
index 0000000000..00aa879876
--- /dev/null
+++ b/CHANGES/plugin_api/3468.feature
@@ -0,0 +1 @@
+Exposed the ``get_url`` util function.
diff --git a/pulpcore/plugin/util.py b/pulpcore/plugin/util.py
index 63e249cc55..7947... |
open-mmlab__mmengine-684 | config/utils.py haven't mmyolo

| [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport ast\nimport os.path as osp\nimport re\nimport warnings\nfrom typing import Tuple\n\nfrom mmengine.fileio import load\nfrom mmengine.utils import check_file_exist\n\nPKG2PROJECT = {\n 'mmcls': 'mmcls',\n 'mmdet': 'mmdet',\n 'mmdet3d':... | [
{
"content": "# Copyright (c) OpenMMLab. All rights reserved.\nimport ast\nimport os.path as osp\nimport re\nimport warnings\nfrom typing import Tuple\n\nfrom mmengine.fileio import load\nfrom mmengine.utils import check_file_exist\n\nPKG2PROJECT = {\n 'mmcls': 'mmcls',\n 'mmdet': 'mmdet',\n 'mmdet3d':... | diff --git a/mmengine/config/utils.py b/mmengine/config/utils.py
index 529a09a42b..7ff0b01de1 100644
--- a/mmengine/config/utils.py
+++ b/mmengine/config/utils.py
@@ -25,6 +25,7 @@
'mmhuman3d': 'mmhuman3d',
'mmrotate': 'mmrotate',
'mmselfsup': 'mmselfsup',
+ 'mmyolo': 'mmyolo',
}
|
searxng__searxng-471 | [SIMPLE THEME]: Reddit search engine breaks Simple Theme "Image" tab Style.
<!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG -->
**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
Powered by searxng - 1.0.0-999-e4025cd1
**How did y... | [
{
"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"\n Reddit\n\"\"\"\n\nimport json\nfrom datetime import datetime\nfrom urllib.parse import urlencode, urljoin, urlparse\n\n# about\nabout = {\n \"website\": 'https://www.reddit.com/',\n \"wikidata_id\": 'Q1136',\n \"official_api_documenta... | [
{
"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n\"\"\"\n Reddit\n\"\"\"\n\nimport json\nfrom datetime import datetime\nfrom urllib.parse import urlencode, urljoin, urlparse\n\n# about\nabout = {\n \"website\": 'https://www.reddit.com/',\n \"wikidata_id\": 'Q1136',\n \"official_api_documenta... | diff --git a/searx/engines/reddit.py b/searx/engines/reddit.py
index ee734ace2f1..e84e772204b 100644
--- a/searx/engines/reddit.py
+++ b/searx/engines/reddit.py
@@ -18,7 +18,7 @@
}
# engine dependent config
-categories = ['general', 'images', 'news', 'social media']
+categories = ['social media']
page_size = 25
... |
encode__starlette-455 | py.typed missing in published artifacts
I didn’t check for earlier versions, but at least 0.11.4 on PyPI does not include `py.typed`. I assume this is an oversight, given it is mentioned in `setup.py`?
https://github.com/encode/starlette/blob/77b84a08c1e4de0db64a197b58ac363a26c51d4f/setup.py#L49
| [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport re\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `init.py`.\n \"\"\"\n with open(os.path.join(package, \"__init__.py\")) as f:\n r... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport re\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `init.py`.\n \"\"\"\n with open(os.path.join(package, \"__init__.py\")) as f:\n r... | diff --git a/setup.py b/setup.py
index d6dfafb78..c3e304f0a 100644
--- a/setup.py
+++ b/setup.py
@@ -72,4 +72,5 @@ def get_packages(package):
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
+ zip_safe=False,
)
diff --git a/starlette/py.typed b/starlette/py... |
napalm-automation__napalm-904 | `get_lldp_neighbors_detail()` fails on Arista 7150S
```python
In [1]: from napalm.eos import EOSDriver
In [2]: from getpass import getpass
In [3]: with EOSDriver("arista", "bewing", getpass()) as d:
...: print(d.get_lldp_neighbors_detail())
...:
Password:
-------------------------------------------... | [
{
"content": "# Based on:\n# https://code.getnoc.com/noc/noc/blob/6f3db2a6e4b1ece77aaf4c4c98413e35ff64643a/sa/profiles/Arista/EOS/get_lldp_neighbors.py#L76-79\nLLDP_CAPAB_TRANFORM_TABLE = {\n \"other\": \"other\",\n \"repeater\": \"repeater\",\n \"bridge\": \"bridge\",\n \"wlanaccesspoint\": \"wlan-... | [
{
"content": "# Based on:\n# https://code.getnoc.com/noc/noc/blob/6f3db2a6e4b1ece77aaf4c4c98413e35ff64643a/sa/profiles/Arista/EOS/get_lldp_neighbors.py#L76-79\nLLDP_CAPAB_TRANFORM_TABLE = {\n \"other\": \"other\",\n \"repeater\": \"repeater\",\n \"bridge\": \"bridge\",\n \"wlanaccesspoint\": \"wlan-... | diff --git a/napalm/eos/constants.py b/napalm/eos/constants.py
index c7f537dda..7e841e216 100644
--- a/napalm/eos/constants.py
+++ b/napalm/eos/constants.py
@@ -9,4 +9,5 @@
"telephone": "telephone",
"docsis": "docsis-cable-device",
"station": "station",
+ "stationonly": "station",
}
diff --git a/test... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.