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 ⌀ |
|---|---|---|---|---|
kserve__kserve-2478 | Update ModelMesh version to `v0.10.0`
#### Proposed Changes
Update to the latest ModelMesh version (`v0.10.0`)
> If your changes should also be in the most recent release, add the corresponding "cherrypick-0.X"
label to the original PR; for example, "cherrypick-0.10".
#### TODOs:
> - [ ] Best practice is t... | [
{
"content": "# Copyright 2021 The KServe 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 a... | [
{
"content": "# Copyright 2021 The KServe 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 a... | diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index 7f56710651e..1529ca65444 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -47,17 +47,17 @@ jobs:
./test/scripts/gh-actions/build-server-runtimes.sh predictor,transformer
docker ima... |
horovod__horovod-2262 | [Horovod on Ray]Failed on example of tensorflow2_mnist_ray.py
**Environment:**
1. Framework: (TensorFlow1.15.0)
3. Horovod version:0.20.0
**Your question:**
Please ask your question here.
Hi @tgaddair @richardliaw I tried the example of Horovod on ray on CPU nodes, but failed.
The ray cluster is ok.
Using Te... | [
{
"content": "import tensorflow as tf\nimport horovod.tensorflow.keras as hvd\nimport horovod.keras as hvd\n\nimport ray\nfrom horovod.ray import RayExecutor\n\n\ndef train(num_epochs):\n # Horovod: initialize Horovod.\n hvd.init()\n\n # Horovod: pin GPU to be used to process local rank (one GPU per pr... | [
{
"content": "import tensorflow as tf\nimport horovod.tensorflow.keras as hvd\n\nimport ray\nfrom horovod.ray import RayExecutor\n\n\ndef train(num_epochs):\n # Horovod: initialize Horovod.\n hvd.init()\n\n # Horovod: pin GPU to be used to process local rank (one GPU per process)\n gpus = tf.config.... | diff --git a/examples/tensorflow2_mnist_ray.py b/examples/tensorflow2_mnist_ray.py
index f44905221b..1e446d931c 100644
--- a/examples/tensorflow2_mnist_ray.py
+++ b/examples/tensorflow2_mnist_ray.py
@@ -1,6 +1,5 @@
import tensorflow as tf
import horovod.tensorflow.keras as hvd
-import horovod.keras as hvd
import r... |
PaddlePaddle__PaddleSpeech-1311 | speech_recognition示例运行出错
这是源码:
import paddle
from paddlespeech.cli import ASRExecutor
asr_executor = ASRExecutor()
text = asr_executor(
model='conformer_wenetspeech',
lang='zh',
sample_rate=16000,
config=None, # Set `config` and `ckpt_path` to None to use pretrained model.
ckpt_path=None... | [
{
"content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | [
{
"content": "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.... | diff --git a/requirements.txt b/requirements.txt
index e567dfa7099..c6889318398 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -43,5 +43,5 @@ typeguard
unidecode
visualdl
webrtcvad
-yacs
+yacs~=0.1.8
yq
diff --git a/setup.py b/setup.py
index 75b3fe5c809..5d4ff80f7bc 100644
--- a/setup.py
+++ b/setup.py
@@ ... |
pyodide__pyodide-4018 | Add check for WASM magic number in .so files
> `pyodide build` now replaces native `.so` slugs with Emscripten
> slugs. Usually `.so`s in the generated wheels are actually Emscripten `.so`s
> so this is good. If they are actually native `.so`s then there is a problem
> either way.
Not very critical, but shoul... | [
{
"content": "# Common functions shared by other modules.\n# Notes for contributors:\n# This module should not import any other modules from pyodide-build except logger to avoid circular imports.\n\nimport contextlib\nimport hashlib\nimport os\nimport shutil\nimport subprocess\nimport sys\nimport textwrap\nim... | [
{
"content": "# Common functions shared by other modules.\n# Notes for contributors:\n# This module should not import any other modules from pyodide-build except logger to avoid circular imports.\n\nimport contextlib\nimport hashlib\nimport os\nimport shutil\nimport subprocess\nimport sys\nimport textwrap\nim... | diff --git a/docs/project/changelog.md b/docs/project/changelog.md
index e7f1b7e0c71..8fa3bc9267a 100644
--- a/docs/project/changelog.md
+++ b/docs/project/changelog.md
@@ -15,6 +15,10 @@ myst:
## Unreleased
+- {{ Enhancement }} Adds `check_wasm_magic_number` function to validate `.so`
+ files for WebAssembly (WA... |
ivy-llc__ivy-13218 | iscomplex
Marked as closed in #10862, yet it's unimplemented.
| [
{
"content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.functional.frontends.jax.numpy import (\n promote_types_of_jax_inputs as promote_jax_arrays,\n)\n\n\n@to_ivy_arrays_and_back\ndef allclose(a, b, rtol=1e-05, atol=1e-08, equal_n... | [
{
"content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.functional.frontends.jax.numpy import (\n promote_types_of_jax_inputs as promote_jax_arrays,\n)\n\n\n@to_ivy_arrays_and_back\ndef allclose(a, b, rtol=1e-05, atol=1e-08, equal_n... | diff --git a/ivy/functional/frontends/jax/numpy/logic.py b/ivy/functional/frontends/jax/numpy/logic.py
index e2c82f2458170..ff1b7db94a9f7 100644
--- a/ivy/functional/frontends/jax/numpy/logic.py
+++ b/ivy/functional/frontends/jax/numpy/logic.py
@@ -205,3 +205,7 @@ def right_shift(x1, x2, /):
def isrealobj(x: any):
... |
cupy__cupy-2615 | cupy.where fails for complex arrays
The function cupy.where does not work for complex arrays (numpy.where does):
```
import cupy as cp
a = cp.arange(5).astype(cp.complex128)
b = cp.arange(5).astype(cp.complex128)
c = cp.where(a==b,a,b)
```
fails with the error message
> TypeError: Wrong type ((<class 'num... | [
{
"content": "from cupy import core\nfrom cupy.core import fusion\n\n\ndef argmax(a, axis=None, dtype=None, out=None, keepdims=False):\n \"\"\"Returns the indices of the maximum along an axis.\n\n Args:\n a (cupy.ndarray): Array to take argmax.\n axis (int): Along which axis to find the maxi... | [
{
"content": "from cupy import core\nfrom cupy.core import fusion\n\n\ndef argmax(a, axis=None, dtype=None, out=None, keepdims=False):\n \"\"\"Returns the indices of the maximum along an axis.\n\n Args:\n a (cupy.ndarray): Array to take argmax.\n axis (int): Along which axis to find the maxi... | diff --git a/cupy/sorting/search.py b/cupy/sorting/search.py
index 4abc58a5377..cc8d395f1b0 100644
--- a/cupy/sorting/search.py
+++ b/cupy/sorting/search.py
@@ -100,7 +100,7 @@ def flatnonzero(a):
# works).
# See issue #551.
'?hd->d', '?Hd->d',
- '?dd->d'),
+ '?dd->d', '?FF->F', '?DD->D'),
... |
lutris__lutris-2561 | Can't use any installers
When I try to install Epic Games Store, for example https://lutris.net/games/epic-games-store/
the installer eventually fails on this:
```
2019-12-29 10:35:48,329: Error while completing task <bound method CommandsMixin.execute of <lutris.installer.interpreter.ScriptInterpreter object at 0x7... | [
{
"content": "\"\"\"Threading module, used to launch games while monitoring them.\"\"\"\n\nimport io\nimport os\nimport sys\nimport fcntl\nimport shlex\nimport subprocess\nimport contextlib\nfrom textwrap import dedent\n\nfrom gi.repository import GLib\n\nfrom lutris import settings\nfrom lutris import runtime\... | [
{
"content": "\"\"\"Threading module, used to launch games while monitoring them.\"\"\"\n\nimport io\nimport os\nimport sys\nimport fcntl\nimport shlex\nimport subprocess\nimport contextlib\nfrom textwrap import dedent\n\nfrom gi.repository import GLib\n\nfrom lutris import settings\nfrom lutris import runtime\... | diff --git a/lutris/command.py b/lutris/command.py
index bba04808c9..24ad8a9bfa 100644
--- a/lutris/command.py
+++ b/lutris/command.py
@@ -61,7 +61,7 @@ def __init__(
self._stdout = io.StringIO()
- self._title = title if title else command
+ self._title = title if title else command[0]
... |
pymedusa__Medusa-6525 | Medusa not working with pythonw on Windows
Hi,
Today I upgraded to the new 0.3.0 and also upgraded to Python 3.7.2 (from 2.7), but now Meduse won't work using `pythonw` anymore. When I launch via pythonw I see the pythonw process appear and almost immedately shutdown again. Since it's pythonw there is no output, and... | [
{
"content": "# Copyright (c) 2003-2005 Jimmy Retzlaff, 2008 Konstantin Yegupov\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limit... | [
{
"content": "# Copyright (c) 2003-2005 Jimmy Retzlaff, 2008 Konstantin Yegupov\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limit... | diff --git a/lib/unrar2/windows.py b/lib/unrar2/windows.py
index 8a06a2ed8d..b4de3b2ce7 100644
--- a/lib/unrar2/windows.py
+++ b/lib/unrar2/windows.py
@@ -34,7 +34,7 @@
from .rar_exceptions import *
-if sys.version_info > (3,3):
+if sys.version_info > (3,3) and sys.stderr is not None:
import faulthandler
... |
pandas-dev__pandas-12013 | Msgpack - ValueError: buffer source array is read-only
I get the Value error when processing data using pandas. I followed the following steps:
1. convert to msgpack format with compress flag
2. subsequently read file into a dataframe
3. push to sql table with to_sql
On the third step i get ValueError: buffer source... | [
{
"content": "\"\"\"\n\nprovide a generic structure to support window functions,\nsimilar to how we have a Groupby object\n\n\n\"\"\"\nfrom __future__ import division\n\nimport warnings\nimport numpy as np\nfrom functools import wraps\nfrom collections import defaultdict\n\nimport pandas as pd\nfrom pandas.lib ... | [
{
"content": "\"\"\"\n\nprovide a generic structure to support window functions,\nsimilar to how we have a Groupby object\n\n\n\"\"\"\nfrom __future__ import division\n\nimport warnings\nimport numpy as np\nfrom functools import wraps\nfrom collections import defaultdict\n\nimport pandas as pd\nfrom pandas.lib ... | diff --git a/doc/source/whatsnew/v0.18.0.txt b/doc/source/whatsnew/v0.18.0.txt
index 4ce2ce5b69cb4..3496e9eea834c 100644
--- a/doc/source/whatsnew/v0.18.0.txt
+++ b/doc/source/whatsnew/v0.18.0.txt
@@ -463,6 +463,7 @@ Bug Fixes
- Bug in ``pd.read_clipboard`` and ``pd.to_clipboard`` functions not supporting Unicode; upg... |
encode__uvicorn-1099 | PackageInfo: Invalid constraint (click (>=7.*)) found in uvicorn-0.14.0 dependencies, skipping
### Checklist
<!-- Please make sure you check all these items before submitting your bug report. -->
- [X] The bug is reproducible against the latest release and/or `master`.
- [X] There are no similar issues or pull 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 path = os.path.join(package, \"__init__.py\")\n init_py = open(... | [
{
"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 path = os.path.join(package, \"__init__.py\")\n init_py = open(... | diff --git a/setup.py b/setup.py
index 1763c7764..c34317bb5 100755
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ def get_packages(package):
minimal_requirements = [
"asgiref>=3.4.0",
- "click>=7.*",
+ "click>=7.0",
"h11>=0.8",
"typing-extensions;" + env_marker_below_38,
]
|
open-telemetry__opentelemetry-python-3650 | Non-executable files with shebangs in the repository
**Describe your environment**
(Nothing relevant to describe)
**Steps to reproduce**
```
$ rg -l '^#!' | xargs ls -l
-rwxr-xr-x. 1 ben ben 1420 Jul 5 2023 docs/examples/django/manage.py
-rw-r--r--. 1 ben ben 1300 Jul 5 2023 docs/examples/opencensus-e... | [
{
"content": "#!/usr/bin/env python3\n#\n# Copyright The OpenTelemetry 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... | [
{
"content": "# Copyright The OpenTelemetry 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... | diff --git a/docs/examples/opencensus-exporter-tracer/collector.py b/docs/examples/opencensus-exporter-tracer/collector.py
index 5c98cc4ce9f..cd33c89617b 100644
--- a/docs/examples/opencensus-exporter-tracer/collector.py
+++ b/docs/examples/opencensus-exporter-tracer/collector.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3... |
dotkom__onlineweb4-1931 | SSO base template should extend the base template
## What kind of an issue is this?
- [x] Bug report
## What is the expected behaviour?
The template for the SSO app should extend the base template so we don't have to maintain multiple base templates.
## What is the current behaviour?
It's a custom te... | [
{
"content": "# -*- encoding: utf-8 -*-\n\nimport logging\n\nfrom django.contrib.auth.decorators import login_required\nfrom django.shortcuts import render\nfrom oauth2_provider.views.base import AuthorizationView as DefaultAuthorizationView # flake8: noqa\nfrom oauth2_provider.views.base import RevokeTokenVie... | [
{
"content": "# -*- encoding: utf-8 -*-\n\nimport logging\n\nfrom django.contrib.auth.decorators import login_required\nfrom django.shortcuts import render\nfrom oauth2_provider.views.base import AuthorizationView as DefaultAuthorizationView # flake8: noqa\nfrom oauth2_provider.views.base import RevokeTokenVie... | diff --git a/apps/sso/views.py b/apps/sso/views.py
index 74494925b..b7d7fdf55 100644
--- a/apps/sso/views.py
+++ b/apps/sso/views.py
@@ -18,7 +18,7 @@ def index(request):
context = {}
- return render(request, 'sso/index.html', context)
+ return render(request, 'sso/authorize.html', context)
class Au... |
dotkom__onlineweb4-1281 | Separate requirements in develop, testing and production
We should separate requirements for various environments. What sparked this was requiring some postgresql magic to install all requirements (`psycopg2`), and e.g. moonshine does not want postgres just for tests to pass (or run, for that matter).
Requirements tha... | [
{
"content": "# -*- coding: utf8 -*-\nimport os\nimport sys\n\nimport wiki\nfrom django.contrib.messages import constants as messages\n\n# Directory that contains this file.\nPROJECT_SETTINGS_DIRECTORY = os.path.dirname(globals()['__file__'])\n# Root directory. Contains manage.py\nPROJECT_ROOT_DIRECTORY = os.pa... | [
{
"content": "# -*- coding: utf8 -*-\nimport os\nimport sys\n\nimport wiki\nfrom django.contrib.messages import constants as messages\n\n# Directory that contains this file.\nPROJECT_SETTINGS_DIRECTORY = os.path.dirname(globals()['__file__'])\n# Root directory. Contains manage.py\nPROJECT_ROOT_DIRECTORY = os.pa... | diff --git a/onlineweb4/settings/base.py b/onlineweb4/settings/base.py
index 565de0a3c..f7b3961b5 100644
--- a/onlineweb4/settings/base.py
+++ b/onlineweb4/settings/base.py
@@ -219,7 +219,6 @@
'compressor',
'pdfdocument',
'watson',
- 'gunicorn',
'markdown_deux',
'djangoformsetjs',
'reve... |
apache__airflow-22886 | Databricks SQL fails on Python 3.10
### Apache Airflow Provider(s)
databricks
### Versions of Apache Airflow Providers
The databricks SQL does not work on Python 3.10 due to "from collections import Iterable" in the `databricks-sql-connector`
* https://pypi.org/project/databricks-sql-connector/
Details of this... | [
{
"content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th... | [
{
"content": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (th... | diff --git a/airflow/providers/databricks/provider.yaml b/airflow/providers/databricks/provider.yaml
index 3aba329e4d89d..4afbc0c5357db 100644
--- a/airflow/providers/databricks/provider.yaml
+++ b/airflow/providers/databricks/provider.yaml
@@ -37,9 +37,6 @@ versions:
additional-dependencies:
- apache-airflow>=2.1.... |
zestedesavoir__zds-site-2605 | [Bêta v1.8] Les flux rss ne fonctionnent plus => erreur 500
En direct de la beta, il est impossible d'avoir les flux rss en cliquant sur les liens correspondant. On se prend une erreur 500.
C'est donc une regression, puisque ça marche en prod.
| [
{
"content": "# coding: utf-8\n\nimport os\n\nfrom django.utils.translation import gettext_lazy as _\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(__file__))\n\nDEBUG = True\nTEMPLATE_DEBUG = DEBUG\n# INTERNAL_IPS = ('127.0.0.1',) # debug... | [
{
"content": "# coding: utf-8\n\nimport os\n\nfrom django.utils.translation import gettext_lazy as _\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(__file__))\n\nDEBUG = True\nTEMPLATE_DEBUG = DEBUG\n# INTERNAL_IPS = ('127.0.0.1',) # debug... | diff --git a/zds/settings.py b/zds/settings.py
index 3d94cba83f..d0d2f33de1 100644
--- a/zds/settings.py
+++ b/zds/settings.py
@@ -176,6 +176,8 @@
# 'django.contrib.admindocs',
)
+SITE_ID = 1
+
THUMBNAIL_ALIASES = {
'': {
'avatar': {'size': (60, 60), 'crop': True},
|
Gallopsled__pwntools-1811 | List comprehension in __all__ prevents Pylance from working
Thanks for contributing to Pwntools! Ideas from the community help make Pwntools an amazing tool for everybody.
If you've got an idea for a new feature, please provide information about:
* What the feature does
According to https://github.com/microsof... | [
{
"content": "# Get all the modules from pwnlib\nimport collections\nimport logging\nimport math\nimport operator\nimport os\nimport platform\nimport re\nimport requests\nimport socks\nimport signal\nimport string\nimport struct\nimport subprocess\nimport sys\nimport tempfile\nimport threading\nimport time\n\nf... | [
{
"content": "# Get all the modules from pwnlib\nimport collections\nimport logging\nimport math\nimport operator\nimport os\nimport platform\nimport re\nimport requests\nimport socks\nimport signal\nimport string\nimport struct\nimport subprocess\nimport sys\nimport tempfile\nimport threading\nimport time\n\nf... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ba2970645..4929c0906 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -68,6 +68,7 @@ The table below shows which release corresponds to each branch, and what date th
- [#1758][1758] Remove eval from cli
- [#1780][1780] Re-add Python2 to the official Dockerfile
- [#1941][... |
searx__searx-1477 | New release?
Hi,
I'm the Debian maintainer of searx and we are still shipping version 0.14.0 of searx because there has not been a more recent release since February.
Unfortunately, we see a number of services that do not work anymore with 0.14.0 but which are fixed in git. Would it be possible to make a release ... | [
{
"content": "# -*- coding: utf-8 -*-\n'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed i... | [
{
"content": "# -*- coding: utf-8 -*-\n'''\nsearx is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nsearx is distributed i... | diff --git a/AUTHORS.rst b/AUTHORS.rst
index 346f324d5d..674bfd758a 100644
--- a/AUTHORS.rst
+++ b/AUTHORS.rst
@@ -83,3 +83,18 @@ generally made searx better:
- Joseph Nuthalapati @josephkiranbabu
- @maiki
- Richard Didier @zeph33
+- Michael Vieria @Themimitoof
+- Richard Nespithal @rndevfx
+- Stanislas @angristan
+... |
UTNkar__moore-554 | Fix cookies for Utnarm
Utnarm recently switched to utnarm.se instead of utnarm.utn.se. This lead to that you can’t sign in to utnarm.se. Per default, moore uses utn.se as cookie domain and since utnarm.se is a different top level domain the cookies can’t be used.
We need to dynamically add utnarm.se as a cookie dom... | [
{
"content": "\"\"\"\nDjango settings for the production environment of Project Moore.\n\nFor more information regarding running in production see,\nSee https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/set... | [
{
"content": "\"\"\"\nDjango settings for the production environment of Project Moore.\n\nFor more information regarding running in production see,\nSee https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/set... | diff --git a/src/moore/settings/production.py b/src/moore/settings/production.py
index 9fca8dec..4dd269e0 100644
--- a/src/moore/settings/production.py
+++ b/src/moore/settings/production.py
@@ -106,8 +106,6 @@
CSRF_COOKIE_SECURE = True
-SESSION_COOKIE_DOMAIN = '.utn.se'
-
SESSION_COOKIE_SECURE = True
MELOS_UR... |
chainer__chainer-1568 | Inconsistency between cupy.dstack and numpy.dstack
```
In [10]: import cupy, numpy
In [11]: a = cupy.arange(24).reshape(2, 3, 4)
In [12]: numpy.dstack((a.get(),))
Out[12]:
array([[[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
[ 8, 9, 10, 11]],
[[12, 13, 14, 15],
[16, 17, 18, 19],
[20, 21... | [
{
"content": "import numpy\nimport six\n\nimport cupy\n\n\ndef column_stack(tup):\n \"\"\"Stacks 1-D and 2-D arrays as columns into a 2-D array.\n\n A 1-D array is first converted to a 2-D column array. Then, the 2-D arrays\n are concatenated along the second axis.\n\n Args:\n tup (sequence o... | [
{
"content": "import numpy\nimport six\n\nimport cupy\n\n\ndef column_stack(tup):\n \"\"\"Stacks 1-D and 2-D arrays as columns into a 2-D array.\n\n A 1-D array is first converted to a 2-D column array. Then, the 2-D arrays\n are concatenated along the second axis.\n\n Args:\n tup (sequence o... | diff --git a/cupy/manipulation/join.py b/cupy/manipulation/join.py
index 14165a8ff2f0..6e077d78221b 100644
--- a/cupy/manipulation/join.py
+++ b/cupy/manipulation/join.py
@@ -100,7 +100,7 @@ def dstack(tup):
.. seealso:: :func:`numpy.dstack`
"""
- return concatenate(cupy.atleast_3d(*tup), 2)
+ return ... |
talonhub__community-740 | auto_insert is documented to call auto_format
I understand if you want to override `auto_insert` too because you're adjusting the cursor position afterwards, but the general intention is for `auto_format` to do text formatting
I think the dictation `auto_insert()` implementation should potentially first `text = auto... | [
{
"content": "# Descended from https://github.com/dwiel/talon_community/blob/master/misc/dictation.py\nfrom talon import Module, Context, ui, actions, clip, app, grammar\nfrom typing import Optional, Tuple, Literal, Callable\nimport re\n\nmod = Module()\n\nsetting_context_sensitive_dictation = mod.setting(\n ... | [
{
"content": "# Descended from https://github.com/dwiel/talon_community/blob/master/misc/dictation.py\nfrom talon import Module, Context, ui, actions, clip, app, grammar\nfrom typing import Optional, Tuple, Literal, Callable\nimport re\n\nmod = Module()\n\nsetting_context_sensitive_dictation = mod.setting(\n ... | diff --git a/code/dictation.py b/code/dictation.py
index c0229af1ac..d25fb9c506 100644
--- a/code/dictation.py
+++ b/code/dictation.py
@@ -398,4 +398,5 @@ def dictation_peek_right() -> Optional[str]:
@dictation_ctx.action_class("main")
class main_action:
- def auto_insert(text): actions.user.dictation_insert(tex... |
mlflow__mlflow-4368 | Make mlflow compatible with protobuf 3.6.1
## What changes are proposed in this pull request?
Make mlflow compatible with protobuf 3.6.1:
for protobuf ==3.6.1
Add EnumTypeWrapper.__getattr__ to access values
## How is this patch tested?
N/A
## Release Notes
### Is this a user-facing change?
- [x] No... | [
{
"content": "import os\nimport logging\n\nfrom importlib.machinery import SourceFileLoader\nfrom setuptools import setup, find_packages\n\n_MLFLOW_SKINNY_ENV_VAR = \"MLFLOW_SKINNY\"\n\nversion = (\n SourceFileLoader(\"mlflow.version\", os.path.join(\"mlflow\", \"version.py\")).load_module().VERSION\n)\n\n\n... | [
{
"content": "import os\nimport logging\n\nfrom importlib.machinery import SourceFileLoader\nfrom setuptools import setup, find_packages\n\n_MLFLOW_SKINNY_ENV_VAR = \"MLFLOW_SKINNY\"\n\nversion = (\n SourceFileLoader(\"mlflow.version\", os.path.join(\"mlflow\", \"version.py\")).load_module().VERSION\n)\n\n\n... | diff --git a/setup.py b/setup.py
index 1a98478b5e3d4..186d2f67fbf30 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ def package_files(directory):
"entrypoints",
"gitpython>=2.1.0",
"pyyaml",
- "protobuf>=3.6.0",
+ "protobuf>=3.7.0",
"pytz",
"requests>=2.17.3",
"packaging",
|
google__turbinia-616 | Add retries to tox
Tox fails when trying to check links within our docs if the link is temporarily down/unresponsive. Adding retries to sphinx config should take care of that.
| [
{
"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------... | [
{
"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# https://www.sphinx-doc.org/en/master/usage/configuration.html\n\n# -- Path setup -------------------------------------------... | diff --git a/docs/conf.py b/docs/conf.py
index 68dbdd555..a0c2084bb 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -76,6 +76,8 @@
]
}
+# Adding retries to linkchecks before declaring a link broken
+linkcheck_retries = 3
# Output file base name for HTML help builder.
htmlhelp_basename = 'turbiniadoc'
|
getmoto__moto-1992 | Replace pyaml dependency with PyYAML
There is a dependency on pyaml in setup.py:
https://github.com/spulec/moto/blob/master/setup.py#L18
I think that this is intended to be PyYAML (which pyaml depends on), and I do not see any usages of pyaml itself in this codebase.
pyaml uses WTFPL (https://github.com/mk-fg/... | [
{
"content": "#!/usr/bin/env python\nfrom __future__ import unicode_literals\nimport setuptools\nfrom setuptools import setup, find_packages\nimport sys\n\n\ninstall_requires = [\n \"Jinja2>=2.7.3\",\n \"boto>=2.36.0\",\n \"boto3>=1.6.16\",\n \"botocore>=1.12.13\",\n \"cryptography>=2.3.0\",\n ... | [
{
"content": "#!/usr/bin/env python\nfrom __future__ import unicode_literals\nimport setuptools\nfrom setuptools import setup, find_packages\nimport sys\n\n\ninstall_requires = [\n \"Jinja2>=2.7.3\",\n \"boto>=2.36.0\",\n \"boto3>=1.6.16\",\n \"botocore>=1.12.13\",\n \"cryptography>=2.3.0\",\n ... | diff --git a/setup.py b/setup.py
index a1b8c5daecbe..0598d7a10aa7 100755
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@
"xmltodict",
"six>1.9",
"werkzeug",
- "pyaml",
+ "PyYAML",
"pytz",
"python-dateutil<3.0.0,>=2.1",
"python-jose<3.0.0",
|
Nitrate__Nitrate-527 | Remove dependency mock
Use `unittest.mock` instead.
| [
{
"content": "# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n pkg_version = f.read().strip()\n\n\ndef get_long_description():\n with open('README.rst', 'r') as f:\n return f.read()\n\n\ninstall_requires = [\n 'beautifulsoup4 >= 4.... | [
{
"content": "# -*- coding: utf-8 -*-\n\nfrom setuptools import setup, find_packages\n\n\nwith open('VERSION.txt', 'r') as f:\n pkg_version = f.read().strip()\n\n\ndef get_long_description():\n with open('README.rst', 'r') as f:\n return f.read()\n\n\ninstall_requires = [\n 'beautifulsoup4 >= 4.... | diff --git a/setup.py b/setup.py
index 80906912..f0b2be6b 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,6 @@ def get_long_description():
'coverage',
'factory_boy',
'flake8',
- 'mock',
'pytest',
'pytest-cov',
'pytest-django',
diff --git a/src/tests/core/te... |
flask-admin__flask-admin-1068 | Tests failing due to new Pillow 3.0.0
Tests are currently failing when a tiff file (https://github.com/flask-admin/flask-admin/blob/master/flask_admin/tests/data/copyleft.jpg) is uploaded:
```
======================================================================
FAIL: flask_admin.tests.test_form_upload.test_image_upl... | [
{
"content": "# Fix for older setuptools\nimport re\nimport os\n\nfrom setuptools import setup, find_packages\n\n\ndef fpath(name):\n return os.path.join(os.path.dirname(__file__), name)\n\n\ndef read(fname):\n return open(fpath(fname)).read()\n\n\ndef desc():\n info = read('README.rst')\n try:\n ... | [
{
"content": "# Fix for older setuptools\nimport re\nimport os\n\nfrom setuptools import setup, find_packages\n\n\ndef fpath(name):\n return os.path.join(os.path.dirname(__file__), name)\n\n\ndef read(fname):\n return open(fpath(fname)).read()\n\n\ndef desc():\n info = read('README.rst')\n try:\n ... | diff --git a/examples/forms/requirements.txt b/examples/forms/requirements.txt
index 1d4552c1d..3c503e3c4 100644
--- a/examples/forms/requirements.txt
+++ b/examples/forms/requirements.txt
@@ -1,4 +1,4 @@
Flask
Flask-Admin
Flask-SQLAlchemy
-pillow
\ No newline at end of file
+pillow==2.9.0
diff --git a/requirements-... |
google-research__t5x-475 | Seg Fault after saving checkpoints
Hi,
I am getting a seg fault sometimes after the model has saved the checkpoint. It is not every checkpoint and seems to be random which checkpoints it crashes after. I am not sure if it is related to issue #340
For example, I am running `prompt_tuning/scripts/sst2-demo-xxl.sh`... | [
{
"content": "# Copyright 2022 The T5X 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 app... | [
{
"content": "# Copyright 2022 The T5X 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 app... | diff --git a/setup.py b/setup.py
index d9dbe74ea..02f838b6a 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@
'seqio-nightly',
't5',
'tensorflow',
- 'tensorstore',
+ 'tensorstore >= 0.1.20',
],
extras_require={
'gcp': [
|
pallets__werkzeug-2320 | ProxyMiddleware encodes characters allowed in path
We have a dollar sign in URL and proxy middleware converts it to `%24`. Unfortunately, for backend server url with `$` and url with `%24` are two different urls. It could be fixed by extending safe characters in middleware as it done in [url_fix](https://github.com/pal... | [
{
"content": "\"\"\"Functions for working with URLs.\n\nContains implementations of functions from :mod:`urllib.parse` that\nhandle bytes and strings.\n\"\"\"\nimport codecs\nimport os\nimport re\nimport typing as t\n\nfrom ._internal import _check_str_tuple\nfrom ._internal import _decode_idna\nfrom ._internal... | [
{
"content": "\"\"\"Functions for working with URLs.\n\nContains implementations of functions from :mod:`urllib.parse` that\nhandle bytes and strings.\n\"\"\"\nimport codecs\nimport os\nimport re\nimport typing as t\n\nfrom ._internal import _check_str_tuple\nfrom ._internal import _decode_idna\nfrom ._internal... | diff --git a/CHANGES.rst b/CHANGES.rst
index 88bee32ea..661c3d38a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -63,6 +63,8 @@ Unreleased
a list, to custom URL converters. :issue:`2249`
- ``run_simple`` shows instructions for dealing with "address already
in use" errors, including extra instructions for ma... |
wright-group__WrightTools-640 | CITATION text file not distributed
| [
{
"content": "#! /usr/bin/env python3\n\nimport os\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(fname):\n return open(os.path.join(here, fname)).read()\n\n\nextra_files = {\n \"WrightTools\": [\n \"datasets\",\n \"datasets/... | [
{
"content": "#! /usr/bin/env python3\n\nimport os\nfrom setuptools import setup, find_packages\n\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\n\ndef read(fname):\n return open(os.path.join(here, fname)).read()\n\n\nextra_files = {\n \"WrightTools\": [\n \"datasets\",\n \"datasets/... | diff --git a/setup.py b/setup.py
index d79eb6dfa..fa23eb776 100755
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,7 @@ def read(fname):
"datasets/*/*",
"datasets/*/*/*",
"datasets/*/*/*/*",
+ "CITATION",
"VERSION",
"WT5_VERSION",
]
|
typeddjango__django-stubs-1782 | Make mypy a soft dependency
Given that there are several popular alternatives to mypy (e.g. pyright and pytype), mypy should be an optional dependency, installable with e.g. `django-stubs[mypy]`.
I haven't tested it myself yet, but if `django-stubs` doesn't work with these "alternative" typecheckers, then I'd sugge... | [
{
"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/setup.py b/setup.py
index b5067b3fe..5973d2e63 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,6 @@ def find_stub_files(name: str) -> List[str]:
readme = f.read()
dependencies = [
- "mypy>=1.0.0",
"django",
"django-stubs-ext>=4.2.5",
"tomli; python_version < '3.11'",
|
optuna__optuna-4965 | Use `__future__.annotations` everywhere in the Optuna code base
### Motivation
Optuna drops Python 3.6 from v3.1, so we can use `__future__.annotations`, which simplifies the code base. See [PEP 563](https://peps.python.org/pep-0563/), [PEP584](https://peps.python.org/pep-0584/), [PEP 585](https://peps.python.org/pe... | [
{
"content": "from __future__ import annotations\n\nfrom typing import NamedTuple\nfrom typing import Sequence\n\nimport numpy as np\n\nfrom optuna._experimental import experimental_func\nfrom optuna._hypervolume import WFG\nfrom optuna.logging import get_logger\nfrom optuna.samplers._base import _CONSTRAINTS_K... | [
{
"content": "from __future__ import annotations\n\nfrom collections.abc import Sequence\nfrom typing import NamedTuple\n\nimport numpy as np\n\nfrom optuna._experimental import experimental_func\nfrom optuna._hypervolume import WFG\nfrom optuna.logging import get_logger\nfrom optuna.samplers._base import _CONS... | diff --git a/optuna/visualization/_hypervolume_history.py b/optuna/visualization/_hypervolume_history.py
index c1fff4b877..39e6c23e53 100644
--- a/optuna/visualization/_hypervolume_history.py
+++ b/optuna/visualization/_hypervolume_history.py
@@ -1,7 +1,7 @@
from __future__ import annotations
+from collections.abc i... |
ansible__ansible-modules-core-3859 | Bug in regex checker for azure_rm_virtualnetwork
##### ISSUE TYPE
- Feature Idea
##### COMPONENT NAME
azure_rm_virtualnetwork
##### ANSIBLE VERSION
2.2.0
##### CONFIGURATION
N/A
##### OS / ENVIRONMENT
Ubuntu 14.04
##### SUMMARY
azure_rm_virtualnetwork contains code to check for the validity of the "name" parameter... | [
{
"content": "#!/usr/bin/python\n#\n# Copyright (c) 2016 Matt Davis, <mdavis@ansible.com>\n# Chris Houseknecht, <house@redhat.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License a... | [
{
"content": "#!/usr/bin/python\n#\n# Copyright (c) 2016 Matt Davis, <mdavis@ansible.com>\n# Chris Houseknecht, <house@redhat.com>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License a... | diff --git a/cloud/azure/azure_rm_virtualnetwork.py b/cloud/azure/azure_rm_virtualnetwork.py
index 9f1e7e61f23..d7bbdd00d85 100644
--- a/cloud/azure/azure_rm_virtualnetwork.py
+++ b/cloud/azure/azure_rm_virtualnetwork.py
@@ -145,7 +145,7 @@
pass
-NAME_PATTERN = re.compile(r"^[a-zA-Z0-9_]{1,61}[a-z0-9_]$")
+NAM... |
optuna__optuna-1882 | Remove the document for `with_traceback` method of Optuna's exception classes
Currently, Optuna's exception classes have the documentations of `with_traceback` method, which is inherited from `Exception`. I don't think it is informative for readers and it can be removed from the reference.
.register('testuser', 'testpassword')\nN = 80\nx = np.linspace(0, 4*np... | [
{
"content": "# The plot server must be running\n# The server must run with --multi-user for this example to work\n# Go to http://localhost:5006/bokeh to view this plot\n\nimport time\n\nimport numpy as np\n\nfrom bokeh.plotting import *\nfrom bokeh.session import Session\nfrom bokeh import embed\nSession().reg... | diff --git a/examples/embed/README.md b/examples/embed/README.md
index f4e77c448c9..9b98f24661e 100644
--- a/examples/embed/README.md
+++ b/examples/embed/README.md
@@ -2,7 +2,11 @@ To try these example you first have to start the bokeh-server, ie.,
bokeh-server --backend=memory
-and then run the examples:
+So... |
mozilla__bugbug-3941 | [model:accessibility] Add the model to `http_service` and `data_pipeline`
Depends on merging: #3775
| [
{
"content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport logging\nimport os\nfrom datetime import timedelta\nfrom funct... | [
{
"content": "# -*- coding: utf-8 -*-\n# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport logging\nimport os\nfrom datetime import timedelta\nfrom funct... | diff --git a/http_service/bugbug_http/models.py b/http_service/bugbug_http/models.py
index 6fb1247b65..3615050925 100644
--- a/http_service/bugbug_http/models.py
+++ b/http_service/bugbug_http/models.py
@@ -34,6 +34,7 @@
"spambug",
"testlabelselect",
"testgroupselect",
+ "accessibility",
]
DEFAULT... |
getmoto__moto-698 | Unable to create a key with a trailing slash using OrdinaryCallingFormat
When using OrdinaryCallingFormat, it's not possible to create a key ending with a slash (e.g. when mimicking directory creation), since this is stripped off when parsing the key name. I can't comment on S3, but this is at least different behaviour... | [
{
"content": "from __future__ import unicode_literals\nfrom six.moves.urllib.parse import urlparse\n\n\ndef bucket_name_from_url(url):\n pth = urlparse(url).path.lstrip(\"/\")\n\n l = pth.lstrip(\"/\").split(\"/\")\n if len(l) == 0 or l[0] == \"\":\n return None\n return l[0]\n\n\ndef parse_k... | [
{
"content": "from __future__ import unicode_literals\nfrom six.moves.urllib.parse import urlparse\n\n\ndef bucket_name_from_url(url):\n pth = urlparse(url).path.lstrip(\"/\")\n\n l = pth.lstrip(\"/\").split(\"/\")\n if len(l) == 0 or l[0] == \"\":\n return None\n return l[0]\n\n\ndef parse_k... | diff --git a/moto/s3bucket_path/utils.py b/moto/s3bucket_path/utils.py
index aa7dc12f0961..e10e64fb6492 100644
--- a/moto/s3bucket_path/utils.py
+++ b/moto/s3bucket_path/utils.py
@@ -12,7 +12,7 @@ def bucket_name_from_url(url):
def parse_key_name(path):
- return "/".join(path.rstrip("/").split("/")[2:])
+ re... |
pyca__cryptography-7106 | adding custom attribute that have octetstring parameter
looks like I still can't put an octetstring attribute even if I used _tag in addattribute function that will be added in version 37 because _ASN1Type doesn't have octetstring(tag 04) in it.
(PS: why it needs some whitelist for allowed tag types?)
attribute I... | [
{
"content": "# 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\nimport binascii\nimport re\nimport sys\nimport typing\nimport warnings\n\nfrom cryptography import utils\nfrom cr... | [
{
"content": "# 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\nimport binascii\nimport re\nimport sys\nimport typing\nimport warnings\n\nfrom cryptography import utils\nfrom cr... | diff --git a/src/cryptography/x509/name.py b/src/cryptography/x509/name.py
index 8b7e4ab430e4..4b32115781d1 100644
--- a/src/cryptography/x509/name.py
+++ b/src/cryptography/x509/name.py
@@ -17,6 +17,7 @@
class _ASN1Type(utils.Enum):
BitString = 3
+ OctetString = 4
UTF8String = 12
NumericString = 1... |
liqd__a4-meinberlin-1740 | 2 link limit on nav items
affects the footer, need more than 2 items
| [
{
"content": "from django.db import models\nfrom modelcluster.fields import ParentalKey\nfrom modelcluster.models import ClusterableModel\nfrom wagtail.admin import edit_handlers\nfrom wagtail.core.models import Orderable\nfrom wagtail.snippets.models import register_snippet\n\n\nclass MenuItem(models.Model):\n... | [
{
"content": "from django.db import models\nfrom modelcluster.fields import ParentalKey\nfrom modelcluster.models import ClusterableModel\nfrom wagtail.admin import edit_handlers\nfrom wagtail.core.models import Orderable\nfrom wagtail.snippets.models import register_snippet\n\n\nclass MenuItem(models.Model):\n... | diff --git a/meinberlin/apps/cms/models/navigation_menues.py b/meinberlin/apps/cms/models/navigation_menues.py
index 87eec0169b..d8b2ad88ff 100644
--- a/meinberlin/apps/cms/models/navigation_menues.py
+++ b/meinberlin/apps/cms/models/navigation_menues.py
@@ -32,7 +32,7 @@ def __str__(self):
panels = [
e... |
pytorch__rl-1536 | [BUG] TruncatedNormal crashing when computing entropy
## Describe the bug
Calling `.entropy()` on a `TruncatedNormal` distribution causes the code to crash.
## To Reproduce
First crash happened using a PPO agent with entropy bonus turned on and actor parametrized with a `TruncatedNormal`.
A simple snippet to ... | [
{
"content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\n\n# from https://github.com/toshas/torch_truncnorm\n\nimport math\nfrom numbers import Number\n\nimport torch\nfr... | [
{
"content": "# Copyright (c) Meta Platforms, Inc. and affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\n\n# from https://github.com/toshas/torch_truncnorm\n\nimport math\nfrom numbers import Number\n\nimport torch\nfr... | diff --git a/test/test_distributions.py b/test/test_distributions.py
index c804dcf7e53..30bb0288dd4 100644
--- a/test/test_distributions.py
+++ b/test/test_distributions.py
@@ -30,40 +30,46 @@
@pytest.mark.skipif(torch.__version__ < "2.0", reason="torch 2.0 is required")
@pytest.mark.parametrize("device", get_defau... |
conda__conda-build-3082 | Build variants does not work with source repo revision variations
With a `meta.yaml` that contains:
```
source:
svn_url: an_url
svn_rev: {{ version }}
```
and a `conda_build_config.yaml` with:
```
version:
- 1
- 2
```
Both packages are built from the same sources of the first version, the repo is on... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport contextlib\nimport json\nimport logging\nimport multiprocessing\nimport os\nimport platform\nimport re\nimport subprocess\nimport sys\nimport warnings\nfrom glob import glob\nfrom os.path import join, normpath\n\n# noqa her... | [
{
"content": "from __future__ import absolute_import, division, print_function\n\nimport contextlib\nimport json\nimport logging\nimport multiprocessing\nimport os\nimport platform\nimport re\nimport subprocess\nimport sys\nimport warnings\nfrom glob import glob\nfrom os.path import join, normpath\n\n# noqa her... | diff --git a/conda_build/environ.py b/conda_build/environ.py
index e67982bfd6..9afe7a026f 100644
--- a/conda_build/environ.py
+++ b/conda_build/environ.py
@@ -154,7 +154,6 @@ def verify_git_repo(git_exe, git_dir, git_url, git_commits_since_tag, debug=Fals
return OK
-@memoized
def get_git_info(git_exe, repo, d... |
nltk__nltk-3156 | Class 'CharTokenizer' is missing attribute '_string'
I think the class `CharTokenizer` is missing the attribute `_string=""`
https://github.com/nltk/nltk/blob/fc53edbf6f0763971afca5855386a2a382da37ac/nltk/tokenize/simple.py#L68-L77
Without this attribute, when trying to use the class, I get the following error:
... | [
{
"content": "# Natural Language Toolkit: Simple Tokenizers\n#\n# Copyright (C) 2001-2023 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# Steven Bird <stevenbird1@gmail.com>\n# URL: <https://www.nltk.org>\n# For license information, see LICENSE.TXT\n\nr\"\"\"\nSimple Tokenizers\n\nThese toke... | [
{
"content": "# Natural Language Toolkit: Simple Tokenizers\n#\n# Copyright (C) 2001-2023 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# Steven Bird <stevenbird1@gmail.com>\n# URL: <https://www.nltk.org>\n# For license information, see LICENSE.TXT\n\nr\"\"\"\nSimple Tokenizers\n\nThese toke... | diff --git a/nltk/test/unit/test_tokenize.py b/nltk/test/unit/test_tokenize.py
index 7688f52397..662b4562b2 100644
--- a/nltk/test/unit/test_tokenize.py
+++ b/nltk/test/unit/test_tokenize.py
@@ -16,6 +16,7 @@
sent_tokenize,
word_tokenize,
)
+from nltk.tokenize.simple import CharTokenizer
def load_stanfo... |
wemake-services__wemake-python-styleguide-200 | Feature: allow magic numbers in async functions constructors
We check that some magic numbers can be used in function constructors like so:
```python
def some_function(price, delta=0.1):
return price * delta
```
But, we only allow regular functions, not `async` ones: https://github.com/wemake-services/we... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom typing import Optional\n\nfrom wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST\nfrom wemake_python_styleguide.violations.best_practices import (\n MagicNumberViolation,\n)\nfrom wemake_python_styleguide.visitors.base import BaseNodeV... | [
{
"content": "# -*- coding: utf-8 -*-\n\nimport ast\nfrom typing import Optional\n\nfrom wemake_python_styleguide.constants import MAGIC_NUMBERS_WHITELIST\nfrom wemake_python_styleguide.violations.best_practices import (\n MagicNumberViolation,\n)\nfrom wemake_python_styleguide.visitors.base import BaseNodeV... | diff --git a/tests/test_visitors/test_ast/test_general/test_magic_numbers.py b/tests/test_visitors/test_ast/test_general/test_magic_numbers.py
index 0b1128a40..98d860c81 100644
--- a/tests/test_visitors/test_ast/test_general/test_magic_numbers.py
+++ b/tests/test_visitors/test_ast/test_general/test_magic_numbers.py
@@ ... |
learningequality__kolibri-8895 | Reports - Missing answered question data after upgrade from 0.14.7 to 0.15
## Observed behavior
This issue is a follow-up of https://github.com/learningequality/kolibri/pull/8818
When I'm logged in as a Coach and I go to the reports immediately after I've upgraded Kolibri from 0.14.7 to 0.15 and I attempt to go throu... | [
{
"content": "import logging\nfrom datetime import timedelta\nfrom itertools import groupby\nfrom random import randint\n\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.db.models import OuterRef\nfrom django.db.models import Q\nfrom django.db.models import S... | [
{
"content": "import logging\nfrom datetime import timedelta\nfrom itertools import groupby\nfrom random import randint\n\nfrom django.core.exceptions import PermissionDenied\nfrom django.db import transaction\nfrom django.db.models import OuterRef\nfrom django.db.models import Q\nfrom django.db.models import S... | diff --git a/kolibri/core/logger/api.py b/kolibri/core/logger/api.py
index e5b55a5c8fa..a2f040fac14 100644
--- a/kolibri/core/logger/api.py
+++ b/kolibri/core/logger/api.py
@@ -918,6 +918,7 @@ class AttemptLogViewSet(ReadOnlyValuesViewset):
ordering = ("end_timestamp",)
values = (
+ "id",
"i... |
pypa__pipenv-3424 | NameError: name 'unicode' is not defined
### Issue description
```
[hadoop@ip-192-168-0-84 sales-forecast]$ pipenv install --python 3
Virtualenv already exists!
Removing existing virtualenv...
Creating a virtualenv for this project...
Pipfile: /home/hadoop/sales-forecast/Pipfile
Using /usr/bin/python3.4 (3.4.8... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport codecs\nimport os\nimport sys\nfrom shutil import rmtree\n\nfrom setuptools import find_packages, setup, Command\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith codecs.open(os.path.join(here, \"README.md\"), encoding=\"utf-8\") as... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport codecs\nimport os\nimport sys\nfrom shutil import rmtree\n\nfrom setuptools import find_packages, setup, Command\n\nhere = os.path.abspath(os.path.dirname(__file__))\n\nwith codecs.open(os.path.join(here, \"README.md\"), encoding=\"utf-8\") as... | diff --git a/setup.py b/setup.py
index 069a5252ff..4c848c4794 100644
--- a/setup.py
+++ b/setup.py
@@ -27,8 +27,7 @@
"setuptools>=36.2.1",
"virtualenv-clone>=0.2.5",
"virtualenv",
- 'enum34; python_version<"3"',
- 'typing; python_version<"3.5"'
+ 'enum34; python_version<"3"'
]
|
bokeh__bokeh-8067 | Add an option to disable column titles in DataTable
# READ AND FOLLOW THESE INSTRUCTIONS CAREFULLY
This issue is being reported for bokeh version 0.12.6.
DataTable widgets do not include an option to hide column titles. It would be nice to have that option.
Coincidentally, the `row_headers` property is poorl... | [
{
"content": "''' Various kinds of data table (data grid) widgets.\n\n'''\nfrom __future__ import absolute_import\n\nfrom ...core.enums import DateFormat, FontStyle, NumeralLanguage, TextAlign, RoundingFunction\nfrom ...core.has_props import abstract\nfrom ...core.properties import Bool, Color, Either, Enum, Fl... | [
{
"content": "''' Various kinds of data table (data grid) widgets.\n\n'''\nfrom __future__ import absolute_import\n\nfrom ...core.enums import DateFormat, FontStyle, NumeralLanguage, TextAlign, RoundingFunction\nfrom ...core.has_props import abstract\nfrom ...core.properties import Bool, Color, Either, Enum, Fl... | diff --git a/bokeh/models/widgets/tables.py b/bokeh/models/widgets/tables.py
index c13e80236d2..dffeb9baac2 100644
--- a/bokeh/models/widgets/tables.py
+++ b/bokeh/models/widgets/tables.py
@@ -571,4 +571,8 @@ class DataTable(TableWidget):
in the viewport.
""")
+ header_row = Bool(True, help="""
+ Whet... |
ocf__ocfweb-48 | Have next 7 days in hours sidebar
This means all our normal hours are visible on a normal week.
| [
{
"content": "from datetime import date\nfrom datetime import timedelta\n\nfrom django.shortcuts import render_to_response\nfrom django.template import RequestContext\nfrom django.utils import timezone\nfrom ocflib.lab.hours import get_hours\nfrom ocflib.lab.staff_hours import get_staff_hours_soonest_first\n\nf... | [
{
"content": "from datetime import date\nfrom datetime import timedelta\n\nfrom django.shortcuts import render_to_response\nfrom django.template import RequestContext\nfrom django.utils import timezone\nfrom ocflib.lab.hours import get_hours\nfrom ocflib.lab.staff_hours import get_staff_hours_soonest_first\n\nf... | diff --git a/Makefile b/Makefile
index 5098a575a..e1b0d8d9d 100644
--- a/Makefile
+++ b/Makefile
@@ -32,11 +32,11 @@ gunicorn: venv
scss: venv
$(PYTHON) setup.py build_sass
-watch-scss: scss
+watch-scss: scss venv
while :; do \
find ocfweb/static -type f -name '*.scss' | \
inotifywait --fromfile - -e modi... |
Lightning-Universe__lightning-bolts-319 | docs: Add Bolts logo
## 🚀 Feature
Not a strong opinion, but I would like to suggest a change to the logo image located at the top left in https://pytorch-lightning-bolts.readthedocs.io/en/. Currently, both `pytorch-lightning` and `pytorch-lightning-bolts` docs use the same logo image, and I personally think that make... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/master/config\n\n# -- Path setup ------------------------------... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Configuration file for the Sphinx documentation builder.\n#\n# This file does only contain a selection of the most common options. For a\n# full list see the documentation:\n# http://www.sphinx-doc.org/en/master/config\n\n# -- Path setup ------------------------------... | diff --git a/README.md b/README.md
index 33e2c43a5e..fd7a57d447 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<div align="center">
-
+ to permit the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/aio-libs/aiohttp/releases">aiohttp's releases</a... | [
{
"content": "from gettext import gettext as _\nimport hashlib\n\nfrom django.db import transaction\nfrom drf_chunked_upload.serializers import ChunkedUploadSerializer\nfrom rest_framework import serializers\nfrom rest_framework.validators import UniqueValidator\n\nfrom pulpcore.app import models, files\nfrom p... | [
{
"content": "from gettext import gettext as _\nimport hashlib\n\nfrom django.db import transaction\nfrom drf_chunked_upload.serializers import ChunkedUploadSerializer\nfrom rest_framework import serializers\nfrom rest_framework.validators import UniqueValidator\n\nfrom pulpcore.app import models, files\nfrom p... | diff --git a/pulpcore/app/serializers/content.py b/pulpcore/app/serializers/content.py
index c92f386f6d..69588fce10 100644
--- a/pulpcore/app/serializers/content.py
+++ b/pulpcore/app/serializers/content.py
@@ -99,6 +99,7 @@ class ArtifactSerializer(base.ModelSerializer):
file = serializers.FileField(
h... |
pypa__setuptools-4007 | Extra directories exposed by editable wheel for `setuptools` project itself
I noticed in `main` (5169a9b1f) that some extra directories of the `setuptools` project ended up exposed by the editable wheel. Specifically `launcher` and `newsfragments`. This is a quick reproducer:
```bash
git clone --depth 1 https://git... | [
{
"content": "\"\"\"Automatic discovery of Python modules and packages (for inclusion in the\ndistribution) and other config values.\n\nFor the purposes of this module, the following nomenclature is used:\n\n- \"src-layout\": a directory representing a Python project that contains a \"src\"\n folder. Everythin... | [
{
"content": "\"\"\"Automatic discovery of Python modules and packages (for inclusion in the\ndistribution) and other config values.\n\nFor the purposes of this module, the following nomenclature is used:\n\n- \"src-layout\": a directory representing a Python project that contains a \"src\"\n folder. Everythin... | diff --git a/newsfragments/4007.misc.rst b/newsfragments/4007.misc.rst
new file mode 100644
index 0000000000..5d57bf9d47
--- /dev/null
+++ b/newsfragments/4007.misc.rst
@@ -0,0 +1 @@
+Ignore ``newsfragments`` directories in the source tree when performing automatic discovery of packages.
diff --git a/setup.cfg b/setup.... |
freedomofpress__securedrop-6492 | Initial messages containing non-ascii characters fail if codename filtering is enabled.
## Description
Codename filtering was introduced in 2.3.0, allowing admins to block initial submissions containing only the user's codename, as they should not be shared with journalists. The filter uses the `compare_digest()` fu... | [
{
"content": "import json\nimport re\nimport subprocess\nimport typing\nfrom hmac import compare_digest\n\nimport werkzeug\nfrom flask import current_app, flash, redirect, render_template, url_for\nfrom flask.sessions import SessionMixin\nfrom flask_babel import gettext\nfrom markupsafe import Markup, escape\nf... | [
{
"content": "import json\nimport re\nimport subprocess\nimport typing\nfrom hmac import compare_digest\n\nimport werkzeug\nfrom flask import current_app, flash, redirect, render_template, url_for\nfrom flask.sessions import SessionMixin\nfrom flask_babel import gettext\nfrom markupsafe import Markup, escape\nf... | diff --git a/securedrop/source_app/utils.py b/securedrop/source_app/utils.py
index 5dbcb5d675..589f416c91 100644
--- a/securedrop/source_app/utils.py
+++ b/securedrop/source_app/utils.py
@@ -23,7 +23,7 @@ def codename_detected(message: str, codename: str) -> bool:
"""
message = message.strip()
- return c... |
automl__auto-sklearn-1361 | Check if test requirement `flaky` can be removed
We currently have a test dependancy [flaky](https://pypi.org/project/flaky/) used to annotate a test `KernelPCAComponentTest::test_default_configuration_classify()`. This is the only place it's used.
| [
{
"content": "# -*- encoding: utf-8 -*-\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\n\n# Check if Auto-sklearn *could* run on the given system\nif os.name != 'posix':\n raise ValueError(\n 'Detected unsupported operating system: %s. Please check '\n 'the compability in... | [
{
"content": "# -*- encoding: utf-8 -*-\nimport os\nimport sys\nfrom setuptools import setup, find_packages\n\n\n# Check if Auto-sklearn *could* run on the given system\nif os.name != 'posix':\n raise ValueError(\n 'Detected unsupported operating system: %s. Please check '\n 'the compability in... | diff --git a/Dockerfile b/Dockerfile
index d9f73b2c83..e2a74c04f6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -32,7 +32,7 @@ ADD . /auto-sklearn/
# Upgrade pip then install dependencies
RUN pip3 install --upgrade pip
-RUN pip3 install pytest==4.6.* pep8 codecov pytest-cov flake8 flaky openml
+RUN pip3 install pytes... |
python__python-docs-es-1712 | Translate 'library/base64.po'
This needs to reach 100% translated.
The rendered version of this file will be available at https://docs.python.org/es/3.10/library/base64.html once translated.
Meanwhile, the English version is shown.
Current stats for `library/base64.po`:
* Fuzzy: 4
* Percent translated: 90.9%
* Entri... | [
{
"content": "import os\nimport re\nimport sys\nfrom typing import Dict, Tuple\n\nimport polib\n\nVERBOSE = False\nDEBUG = False\nSKIP_TRANSLATED_ENTRIES = True\n\ntry:\n from deep_translator import GoogleTranslator\nexcept ImportError:\n print(\"Error: This util script needs `deep_translator` to be insta... | [
{
"content": "import os\nimport re\nimport sys\nfrom typing import Dict, Tuple\n\nimport polib\n\nVERBOSE = False\nDEBUG = False\nSKIP_TRANSLATED_ENTRIES = True\n\ntry:\n from deep_translator import GoogleTranslator\nexcept ImportError:\n print(\"Error: This util script needs `deep_translator` to be insta... | diff --git a/library/base64.po b/library/base64.po
index 1a27805120..f3ee62a0e7 100644
--- a/library/base64.po
+++ b/library/base64.po
@@ -13,12 +13,12 @@ msgstr ""
"POT-Creation-Date: 2021-10-16 21:42+0200\n"
"PO-Revision-Date: 2020-06-29 21:32+0200\n"
"Last-Translator: Cristián Maureira-Fredes <cmaureirafredes@gma... |
holoviz__holoviews-5924 | Unpin matplotlib 3.8
In https://github.com/holoviz/holoviews/pull/5895 I pinned matplotlib 3.8, this should be removed before the next release.
| [
{
"content": "#!/usr/bin/env python\n\nimport json\nimport os\nimport sys\nimport shutil\n\nfrom setuptools import setup, find_packages\n\nimport pyct.build\n\nsetup_args = {}\ninstall_requires = [\n \"param >=1.12.0,<3.0\",\n \"numpy >=1.0\",\n \"pyviz_comms >=0.7.4\",\n \"panel >=1.0\",\n \"col... | [
{
"content": "#!/usr/bin/env python\n\nimport json\nimport os\nimport sys\nimport shutil\n\nfrom setuptools import setup, find_packages\n\nimport pyct.build\n\nsetup_args = {}\ninstall_requires = [\n \"param >=1.12.0,<3.0\",\n \"numpy >=1.0\",\n \"pyviz_comms >=0.7.4\",\n \"panel >=1.0\",\n \"col... | diff --git a/examples/gallery/demos/bokeh/bachelors_degrees_by_gender.ipynb b/examples/gallery/demos/bokeh/bachelors_degrees_by_gender.ipynb
index 7a682ea46c..b1463b1a63 100644
--- a/examples/gallery/demos/bokeh/bachelors_degrees_by_gender.ipynb
+++ b/examples/gallery/demos/bokeh/bachelors_degrees_by_gender.ipynb
@@ -2... |
bokeh__bokeh-8651 | grid_axis_alignment_no_toolbar is broken in Windows (32-bit)
`examples/integration/layout/grid_axis_alignment_no_toolbar`:

All axes should be in 0 to 10, 10^3, 10^6, 10^9 ranges. All major browsers are affe... | [
{
"content": "from __future__ import absolute_import\n\nimport numpy as np\n\nfrom bokeh.plotting import figure, save\nfrom bokeh.layouts import gridplot\n\ncoeffs = [10**0, 10**3, 10**6, 10**9]\nV = np.arange(10)\n\nfigs = []\n\nfor ycoeff in coeffs:\n row = []\n for xcoeff in coeffs:\n fig = figu... | [
{
"content": "from __future__ import absolute_import\n\nimport numpy as np\n\nfrom bokeh.plotting import figure, save\nfrom bokeh.layouts import gridplot\n\ncoeffs = [10**0, 10**3, 10**6, 10**9]\nV = np.arange(10, dtype=\"int64\")\n\nfigs = []\n\nfor ycoeff in coeffs:\n row = []\n for xcoeff in coeffs:\n ... | diff --git a/examples/integration/layout/grid_axis_alignment_no_toolbar.py b/examples/integration/layout/grid_axis_alignment_no_toolbar.py
index 3bc06696e11..05cefe38274 100644
--- a/examples/integration/layout/grid_axis_alignment_no_toolbar.py
+++ b/examples/integration/layout/grid_axis_alignment_no_toolbar.py
@@ -6,7... |
fidals__shopelectro-209 | Move CI to our server
Трэвис на беспланом серве билдит не очень.
Сейчас у нас один travis ci идёт ~20 мин. Учитывая, что мы будем оперировать задачами с оценкой по 15-30 мин, это слишком долго.
Кроме того, Трэвис часто отваливается по ресурсам, что плодит нам в ci рандомные ошибки. А это очень дорого, конечно же.
... | [
{
"content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/... | [
{
"content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/... | diff --git a/.drone.yml b/.drone.yml
index 7244fa27..3b79a3cc 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,7 +1,83 @@
-# @todo #178 Напиши конфиг для Drone CI
+# @todo #208 Определи оптимальное количество параллельных тестов
pipeline:
- build:
- image: alpine
+ pip-install:
+ image: python
commands:
-... |
rucio__rucio-2062 | Documentation build fails
Motivation
----------
Currently the documentation builds fail with
```
Running Sphinx v1.6.5
making output directory...
loading translations [en]... done
Traceback (most recent call last):
File "/home/docs/checkouts/readthedocs.org/user_builds/rucio/envs/latest/local/lib/python2... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Rucio documentation build configuration file, created by\n# sphinx-quickstart on Fri Oct 27 14:25:40 2017.\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... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Rucio documentation build configuration file, created by\n# sphinx-quickstart on Fri Oct 27 14:25:40 2017.\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... | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 60e19bdfaf..99bdb9c1fc 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -20,7 +20,7 @@
import sys
from mock import Mock as MagicMock
-sys.path.insert(len(sys.path) - 1, os.path.abspath('.'))
+sys.path.insert(len(sys.path), os.path.abspath('../../... |
pyro-ppl__pyro-2345 | Switch from pillow to pillow-simd
This attempts to fix some `pillow`-`torchvision` breakage blocking #2239 by switching to the alternative torchvision-recommended library `pillow-simd`.
| [
{
"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport subprocess\nimport sys\n\nfrom setuptools import find_packages, setup\n\nPROJECT_PATH = os.path.dirname(os.path.abspath(__file__))\nVERSION = \"\"\"\n# This file is auto-generated with the... | [
{
"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport subprocess\nimport sys\n\nfrom setuptools import find_packages, setup\n\nPROJECT_PATH = os.path.dirname(os.path.abspath(__file__))\nVERSION = \"\"\"\n# This file is auto-generated with the... | diff --git a/docs/requirements.txt b/docs/requirements.txt
index 84dc77d139..c941f0e148 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -5,6 +5,5 @@ graphviz>=0.8
numpy>=1.7
observations>=0.1.4
opt_einsum>=2.3.2
-pillow-simd
pyro-api>=0.1.1
tqdm>=4.36
diff --git a/setup.py b/setup.py
index f87b52... |
napalm-automation__napalm-1681 | IOS-XR get_lldp_neighbor_details does not support 'N/A' capabilities
### Description of Issue/Question
The constants LLDP_CAPAB_TRANFORM_TABLE does not include 'N/A' of system capabilities. No checks for this value either.
```
<SystemCapabilities>
N/A
</SystemCapabilities>
```
*Note*: Please check htt... | [
{
"content": "\"\"\"Constants to be used across NAPALM drivers.\"\"\"\n\nCONFIG_LOCK = True # must be changed soon!\nTIMEOUT = 60 # seconds\n\nINTERFACE_NULL_SPEED = -1\n\nACTION_TYPE_METHODS = (\"ping\", \"traceroute\")\n\nBGP_NEIGHBOR_NULL_COUNTER = -1\n\nSNMP_AUTHORIZATION_MODE_MAP = {\"read-only\": \"ro\"... | [
{
"content": "\"\"\"Constants to be used across NAPALM drivers.\"\"\"\n\nCONFIG_LOCK = True # must be changed soon!\nTIMEOUT = 60 # seconds\n\nINTERFACE_NULL_SPEED = -1\n\nACTION_TYPE_METHODS = (\"ping\", \"traceroute\")\n\nBGP_NEIGHBOR_NULL_COUNTER = -1\n\nSNMP_AUTHORIZATION_MODE_MAP = {\"read-only\": \"ro\"... | diff --git a/napalm/base/constants.py b/napalm/base/constants.py
index 75f492b1a..d505081ab 100644
--- a/napalm/base/constants.py
+++ b/napalm/base/constants.py
@@ -69,6 +69,7 @@
}
LLDP_CAPAB_TRANFORM_TABLE = {
"o": "other",
+ "n/a": "other",
"p": "repeater",
"b": "bridge",
"w": "wlan-access-po... |
Cog-Creators__Red-DiscordBot-1170 | [V3] Error in command repl
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
So I first tried to use the core repl function on V3 for the first time. I set a very basic value and got an error
### Steps to reproduce
1. `=repl`
2. `level = 1`
._
-->
**Describe the bu... | [
{
"content": "# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n... | [
{
"content": "# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n... | diff --git a/core/controllers/base.py b/core/controllers/base.py
index 5933f3c52c5a2..abb25ce29a0ce 100755
--- a/core/controllers/base.py
+++ b/core/controllers/base.py
@@ -513,7 +513,7 @@ def handle_exception(self, exception, unused_debug_mode):
class Error404Handler(BaseHandler):
"""Handles 404 errors."""
- ... |
nautobot__nautobot-3981 | 2.0: Tag string representation is incorrect
### Environment
* Nautobot version (Docker tag too if applicable): `next`, e13883b7b8a4f44bca0c40d8074dcf8f82e544e6
### Steps to Reproduce
1. Create a Tag and associate it to any model
2. View the legacy-UI list view or detail view of that model
<!-- What did you exp... | [
{
"content": "from django.contrib.contenttypes.models import ContentType\nfrom django.db import models\nfrom taggit.models import GenericUUIDTaggedItemBase\n\nfrom nautobot.core.choices import ColorChoices\nfrom nautobot.core.models import BaseManager, BaseModel\nfrom nautobot.core.models.fields import ColorFie... | [
{
"content": "from django.contrib.contenttypes.models import ContentType\nfrom django.db import models\nfrom taggit.models import GenericUUIDTaggedItemBase\n\nfrom nautobot.core.choices import ColorChoices\nfrom nautobot.core.models import BaseManager, BaseModel\nfrom nautobot.core.models.fields import ColorFie... | diff --git a/changes/3980.fixed b/changes/3980.fixed
new file mode 100644
index 00000000000..14e85a78fd9
--- /dev/null
+++ b/changes/3980.fixed
@@ -0,0 +1 @@
+Fixed a regression in the display of Tag records in the UI.
diff --git a/nautobot/extras/models/tags.py b/nautobot/extras/models/tags.py
index 93145e33722..160f3... |
python__python-docs-es-1787 | Translate 'using/unix.po'
This needs to reach 100% translated.
The rendered version of this file will be available at https://docs.python.org/es/3.10/using/unix.html once translated.
Meanwhile, the English version is shown.
Current stats for `using/unix.po`:
* Fuzzy: 1
* Percent translated: 88.9%
* Entries: 40 / 45
... | [
{
"content": "import os\nimport re\nimport sys\nfrom typing import Dict, Tuple\n\nimport polib\n\nVERBOSE = False\nDEBUG = False\nSKIP_TRANSLATED_ENTRIES = True\n\ntry:\n from deep_translator import GoogleTranslator\nexcept ImportError:\n print(\"Error: This util script needs `deep_translator` to be insta... | [
{
"content": "import os\nimport re\nimport sys\nfrom typing import Dict, Tuple\n\nimport polib\n\nVERBOSE = False\nDEBUG = False\nSKIP_TRANSLATED_ENTRIES = True\n\ntry:\n from deep_translator import GoogleTranslator\nexcept ImportError:\n print(\"Error: This util script needs `deep_translator` to be insta... | diff --git a/scripts/translate.py b/scripts/translate.py
index 26c8d5f80d..a8c9ab5f2c 100644
--- a/scripts/translate.py
+++ b/scripts/translate.py
@@ -44,6 +44,7 @@
":RFC:`[^`]+`",
":rfc:`[^`]+`",
":doc:`[^`]+`",
+ ":source:`[^`]+`",
":manpage:`[^`]+`",
":sup:`[^`]+`",
"``[^`]+``",
diff... |
python__python-docs-es-1762 | Translate 'library/os.po'
This needs to reach 100% translated.
The rendered version of this file will be available at https://docs.python.org/es/3.10/library/os.html once translated.
Meanwhile, the English version is shown.
Current stats for `library/os.po`:
* Fuzzy: 27
* Percent translated: 94.8%
* Entries: 804 / 8... | [
{
"content": "import os\nimport re\nimport sys\nfrom typing import Dict, Tuple\n\nimport polib\n\nVERBOSE = False\nDEBUG = False\nSKIP_TRANSLATED_ENTRIES = True\n\ntry:\n from deep_translator import GoogleTranslator\nexcept ImportError:\n print(\"Error: This util script needs `deep_translator` to be insta... | [
{
"content": "import os\nimport re\nimport sys\nfrom typing import Dict, Tuple\n\nimport polib\n\nVERBOSE = False\nDEBUG = False\nSKIP_TRANSLATED_ENTRIES = True\n\ntry:\n from deep_translator import GoogleTranslator\nexcept ImportError:\n print(\"Error: This util script needs `deep_translator` to be insta... | diff --git a/dictionaries/library_os.txt b/dictionaries/library_os.txt
index 08f036ea71..97081ad219 100644
--- a/dictionaries/library_os.txt
+++ b/dictionaries/library_os.txt
@@ -1,43 +1,42 @@
-inodo
-nanosegundos
-urandom
-umask
-syscall
-quantum
-glibc
-errno
-pty
-Desestablece
-TerminateProcess
-fork
+configurarlos
... |
qtile__qtile-2450 | Widgets missing from docs
Some widgets seem to have disappeared from the [official docs](http://docs.qtile.org/en/latest/manual/ref/widgets.html) (specifically `Mpris2` and `KeyboardKbdd`).
Given that these are two widgets that I've done some work on, it may be linked to that (but not immediately sure how).
I can... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Qtile documentation build configuration file, created by\n# sphinx-quickstart on Sat Feb 11 15:20:21 2012.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n#... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Qtile documentation build configuration file, created by\n# sphinx-quickstart on Sat Feb 11 15:20:21 2012.\n#\n# This file is execfile()d with the current directory set to its containing dir.\n#\n# Note that not all possible configuration values are present in this\n#... | diff --git a/docs/conf.py b/docs/conf.py
index aaaa5d23bf..bc52457694 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -33,6 +33,10 @@ def __dir__(self):
'cffi',
'dateutil',
'dateutil.parser',
+ 'dbus_next',
+ 'dbus_next.aio',
+ 'dbus_next.service',
+ 'dbus_next.constants',
'iwlib',
... |
wemake-services__wemake-python-styleguide-1630 | Allow async magic __call__
# Thesis
`__call__` method should be asyncable.
```python
import asyncio
import os
class RequestHandler(object):
async def __call__(self, reader, writer):
ipc_input = (await reader.readline()).decode('utf8').strip()
writer.write('You sent: "{0}"\n'.format(ip... | [
{
"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/.github/workflows/test.yml b/.github/workflows/test.yml
index 5f9abc0dc..9a6577b3b 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -18,6 +18,8 @@ jobs:
- name: Install poetry
run: |
+ pip install -U pip
+
curl -sSL \
"https://raw.githubus... |
open-telemetry__opentelemetry-python-1145 | ReadTheDocs configuration issue
The RTD documentation is not updated with my changes in #1096 https://opentelemetry-python.readthedocs.io/en/latest/sdk/resources.html
However, it works fine locally.
**Steps to reproduce**
Reproduced in all builds on RTD. For example, see logs here: https://readthedocs.org/projec... | [
{
"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# http://www.sphinx-doc.org/en/master/config\n\n# -- Path setup --------------------------------------------------------------... | [
{
"content": "# Configuration file for the Sphinx documentation builder.\n#\n# This file only contains a selection of the most common options. For a full\n# list see the documentation:\n# http://www.sphinx-doc.org/en/master/config\n\n# -- Path setup --------------------------------------------------------------... | diff --git a/docs-requirements.txt b/docs-requirements.txt
index e98a0d35dfb..a3168862770 100644
--- a/docs-requirements.txt
+++ b/docs-requirements.txt
@@ -2,6 +2,11 @@ sphinx~=2.4
sphinx-rtd-theme~=0.4
sphinx-autodoc-typehints~=1.10.2
+# Need to install the api/sdk in the venv for autodoc. Modifying sys.path
+# d... |
HybirdCorp__creme_crm-431 | [WIP] fix python3.9.12 3.9.13 ci issue
| [
{
"content": "__version__ = '2.4-alpha1'\n\n# App registry hooking ---------------------------------------------------------\n\ntry:\n from django.apps.config import AppConfig\n from django.apps.registry import Apps\nexcept ImportError:\n # This error may appear with old versions of setuptools during i... | [
{
"content": "__version__ = '2.4-alpha1'\n\n\ndef get_version():\n return __version__\n\n\n# App registry hooking ---------------------------------------------------------\n\ntry:\n from django.apps.config import AppConfig\n from django.apps.registry import Apps\nexcept ImportError:\n # This error m... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index e1450abb5f..e63a241f5f 100755
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -7,6 +7,9 @@ parameters:
instance_directory:
type: string
default: 'creme_project'
+ pycache_prefix:
+ type: string
+ default: 'creme-crm-cache-v1'
... |
kornia__kornia-2476 | Next release?
## 🚀 Feature
Hi, when will the next kornia release on conda or pypi be?
## Motivation
Last conda release was in April, and new features have landed since then, but are unavailable in wheels.
| [
{
"content": "# NOTE: kornia filters and geometry must go first since are the core of the library\n# and by changing the import order you might get into a circular dependencies issue.\nfrom . import filters\nfrom . import geometry\nfrom . import grad_estimator\n\n# import the other modules for convenience\nfrom... | [
{
"content": "# NOTE: kornia filters and geometry must go first since are the core of the library\n# and by changing the import order you might get into a circular dependencies issue.\nfrom . import filters\nfrom . import geometry\nfrom . import grad_estimator\n\n# import the other modules for convenience\nfrom... | diff --git a/kornia/__init__.py b/kornia/__init__.py
index b9f6844940..3499c3d694 100644
--- a/kornia/__init__.py
+++ b/kornia/__init__.py
@@ -13,4 +13,4 @@
from kornia.utils import eye_like, vec_like, create_meshgrid, image_to_tensor, tensor_to_image
# Version variable
-__version__ = "0.6.13-dev"
+__version__ = "0... |
imAsparky__django-cookiecutter-251 | [BUG]: Initial commit message is bounded by "". Remove the quotation marks
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and c... | [
{
"content": "#!/usr/bin/env python\n\"\"\"django-cookiecutter post project generation jobs.\"\"\"\nimport os\nimport subprocess # nosec\nfrom shutil import rmtree\n\nPROJECT_DIRECTORY = os.path.realpath(os.path.curdir)\n\nREMOTE_REPO = \"git@github.com:{{cookiecutter.github_username}}/\\\n{{cookiecutter.git_p... | [
{
"content": "#!/usr/bin/env python\n\"\"\"django-cookiecutter post project generation jobs.\"\"\"\nimport os\nimport subprocess # nosec\nfrom shutil import rmtree\n\nPROJECT_DIRECTORY = os.path.realpath(os.path.curdir)\n\nREMOTE_REPO = \"git@github.com:{{cookiecutter.github_username}}/\\\n{{cookiecutter.git_p... | diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py
index fb39b27c..debd7c1e 100644
--- a/hooks/post_gen_project.py
+++ b/hooks/post_gen_project.py
@@ -154,7 +154,7 @@ def git_add_and_commit_initial():
"git",
"commit",
"-m",
- '"chore(git): Initial Commit"',
+ "ch... |
microsoft__ptvsd-1923 | test_flask_breakpoint_multiproc fails with run=attach_by_socket
Python 3.7, Win32.
Logs are unclear - needs investigation.
| [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport runpy\nimport sys\n\n# ptvsd.__main_... | [
{
"content": "# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport runpy\nimport sys\n\n# ptvsd.__main_... | diff --git a/src/ptvsd/server/cli.py b/src/ptvsd/server/cli.py
index 339820624..499833382 100644
--- a/src/ptvsd/server/cli.py
+++ b/src/ptvsd/server/cli.py
@@ -337,7 +337,7 @@ def attach_to_pid():
def main():
- original_argv = sys.argv
+ original_argv = list(sys.argv)
try:
sys.argv[1:] = parse... |
mitmproxy__mitmproxy-1864 | Missing documentation about unit testing inline scripts
At the company I work on we are developing some inline scripts to use internally.
We are struggling to create test for our scripts because the only code we found to test scripts are the ones at [/mitmproxy/mitmproxy/blob/v0.17/test/mitmproxy/test_examples.py](/mi... | [
{
"content": "from mitmproxy import controller\nfrom mitmproxy import http\nfrom mitmproxy import tcp\nfrom mitmproxy import websocket\n\nEvents = frozenset([\n \"clientconnect\",\n \"clientdisconnect\",\n \"serverconnect\",\n \"serverdisconnect\",\n\n \"tcp_start\",\n \"tcp_message\",\n \"... | [
{
"content": "from mitmproxy import controller\nfrom mitmproxy import http\nfrom mitmproxy import tcp\nfrom mitmproxy import websocket\n\nEvents = frozenset([\n \"clientconnect\",\n \"clientdisconnect\",\n \"serverconnect\",\n \"serverdisconnect\",\n\n \"tcp_start\",\n \"tcp_message\",\n \"... | diff --git a/docs/scripting/overview.rst b/docs/scripting/overview.rst
index 7df5532df5..84f2135e59 100644
--- a/docs/scripting/overview.rst
+++ b/docs/scripting/overview.rst
@@ -131,6 +131,23 @@ purposes. You can use it as follows:
:language: python
+Testing
+-------
+
+Mitmproxy includes a number of helpers f... |
cloudtools__troposphere-835 | Add Tags to AWS::EC2::NatGateway
[AWS::EC2::NatGateway](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-natgateway.html)
Use the Tags property to specify resource tags for a NAT gateway.
| [
{
"content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty\nfrom .validators import (\n boolean, exactly_one, integer, integer_range,\n network_port, positive_integer\n)\n\ntry:\n ... | [
{
"content": "# Copyright (c) 2012-2013, Mark Peek <mark@peek.org>\n# All rights reserved.\n#\n# See LICENSE file for full license.\n\nfrom . import AWSHelperFn, AWSObject, AWSProperty\nfrom .validators import (\n boolean, exactly_one, integer, integer_range,\n network_port, positive_integer\n)\n\ntry:\n ... | diff --git a/troposphere/ec2.py b/troposphere/ec2.py
index c4de721d1..746e414df 100644
--- a/troposphere/ec2.py
+++ b/troposphere/ec2.py
@@ -102,6 +102,7 @@ class NatGateway(AWSObject):
props = {
'AllocationId': (basestring, True),
'SubnetId': (basestring, True),
+ 'Tags': (lis... |
pypa__setuptools-2584 | Add mechanism for side-by-side comparison of setup.py and its equivalent setup.cfg
We have many documentation examples that are purely declarative and are either documented as `setup.py` or `setup.cfg`. It would be really awesome if, for each of these, we had the option to have either both versions side-by-side or, eve... | [
{
"content": "extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']\n\nmaster_doc = \"index\"\n\nlink_files = {\n '../CHANGES.rst': dict(\n using=dict(\n BB='https://bitbucket.org',\n GH='https://github.com',\n ),\n replace=[\n dict... | [
{
"content": "extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']\n\nmaster_doc = \"index\"\n\nlink_files = {\n '../CHANGES.rst': dict(\n using=dict(\n BB='https://bitbucket.org',\n GH='https://github.com',\n ),\n replace=[\n dict... | diff --git a/changelog.d/2584.doc.rst b/changelog.d/2584.doc.rst
new file mode 100644
index 0000000000..3474049963
--- /dev/null
+++ b/changelog.d/2584.doc.rst
@@ -0,0 +1 @@
+Added ``sphinx-inline-tabs`` extension to allow for comparison of ``setup.py`` and its equivalent ``setup.cfg`` -- by :user:`amy-lei`
\ No newlin... |
OpenMined__PySyft-155 | Set up CI for automated testing and style checks
Now that our codebase is growing (hooray!), we should set up CI for automated testing and style checks (PEP8, PEP257).
Choices include [CircleCI](https://circleci.com) and [TravisCI](https://travis-ci.org). These can be integrated into our repo such that every pull r... | [
{
"content": "import os\nfrom setuptools import setup,find_packages\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice, because now 1) we have a top level\n# README file and 2) it's easier to type in the README file than to put a raw\n# string in below ...\ndef read(fnam... | [
{
"content": "import os\nfrom setuptools import setup,find_packages\n\n# Utility function to read the README file.\n# Used for the long_description. It's nice, because now 1) we have a top level\n# README file and 2) it's easier to type in the README file than to put a raw\n# string in below ...\ndef read(fnam... | diff --git a/.circleci/config.yml b/.circleci/config.yml
old mode 100644
new mode 100755
index 2463e5be82e..48ff5d9bcb4
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -21,12 +21,16 @@ jobs:
- run:
name: Run tests
command: |
- docker run -it pysyft pytest tests/test_tens... |
localstack__localstack-1075 | Update code climate and badge
https://codeclimate.com/github/atlassian/localstack is the old repo, is there a new code climate check for the new repo? The README is pointing to this old code climate project.
| [
{
"content": "import os\nimport localstack_client.config\n\n# LocalStack version\nVERSION = '0.8.9'\n\n# default AWS region\nif 'DEFAULT_REGION' not in os.environ:\n os.environ['DEFAULT_REGION'] = 'us-east-1'\nDEFAULT_REGION = os.environ['DEFAULT_REGION']\n\n# constant to represent the \"local\" region, i.e.... | [
{
"content": "import os\nimport localstack_client.config\n\n# LocalStack version\nVERSION = '0.8.10'\n\n# default AWS region\nif 'DEFAULT_REGION' not in os.environ:\n os.environ['DEFAULT_REGION'] = 'us-east-1'\nDEFAULT_REGION = os.environ['DEFAULT_REGION']\n\n# constant to represent the \"local\" region, i.e... | diff --git a/README.md b/README.md
index 0ed9bde568b1e..8ed764360f628 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-[](https://travis-ci.org/localstack/localstack) [
test_requirements = [
- "pytest",
+ "pytest>=2.9.0",
"pretend",
"iso8601",
"pyasn1_modules",
|
django-wiki__django-wiki-447 | Ordered list doesn't render properly
I am running django-wiki on Mac OS X 10.10.4 with a django 1.8 project and PostgreSQL database.
Here's what pip reports from my virtualenv:
```
-e git://github.com/django-wiki/django-wiki.git@23705786796424a3b36be77c1e78d7316f89bb00#egg=wiki-master
```
I can display an ordered l... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import unicode_literals\n# -*- coding: utf-8 -*-\nfrom django.conf import settings as django_settings\nfrom django.core.urlresolvers import reverse_lazy\nfrom django.utils.translation import ugettext_lazy as _\n\n# Should urls be case sensiti... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import unicode_literals\n# -*- coding: utf-8 -*-\nfrom django.conf import settings as django_settings\nfrom django.core.urlresolvers import reverse_lazy\nfrom django.utils.translation import ugettext_lazy as _\n\n# Should urls be case sensiti... | diff --git a/wiki/conf/settings.py b/wiki/conf/settings.py
index 125a08c3c..93f9f9873 100644
--- a/wiki/conf/settings.py
+++ b/wiki/conf/settings.py
@@ -25,6 +25,7 @@
'attr_list',
'extra',
'codehilite',
+ 'sane_lists',
],
'safe_mode': 'replace',
'extension_configs': {
|
wagtail__wagtail-10050 | Django Unittest issues with `StructValue.__init__()`
<!--
Found a bug? Please fill out the sections below. 👍
-->
### Issue Summary
Recently we've bumped packages in our project and some tests which are using `setUpTestData` in test suite has started failing.
Below I'll give more context.
In our project we `... | [
{
"content": "import collections\n\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.forms.utils import ErrorList\nfrom django.template.loader import render_to_string\nfrom django.utils.functional import cached_property\nfrom django.utils.html import format_html, format_... | [
{
"content": "import collections\n\nfrom django import forms\nfrom django.core.exceptions import ValidationError\nfrom django.forms.utils import ErrorList\nfrom django.template.loader import render_to_string\nfrom django.utils.functional import cached_property\nfrom django.utils.html import format_html, format_... | diff --git a/wagtail/blocks/struct_block.py b/wagtail/blocks/struct_block.py
index 9fe188e3bdf4..2a5824ef1413 100644
--- a/wagtail/blocks/struct_block.py
+++ b/wagtail/blocks/struct_block.py
@@ -70,6 +70,9 @@ def bound_blocks(self):
]
)
+ def __reduce__(self):
+ return (self.__class__,... |
flask-admin__flask-admin-1769 | flask-admin doesn't work on Python 2.7
Running flask-admin version `1.5.2` on Python `2.7` fails with
```
File "/usr/local/lib/python2.7/site-packages/flask_admin/contrib/sqla/form.py", line 2, in <module>
from enum import Enum
ImportError: No module named enum
```
Does flask-admin supports Python 2.7 ?
T... | [
{
"content": "# Fix for older setuptools\nimport re\nimport os\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\ndef fpath(name):\n return os.path.join(os.path.dirname(__file__), name)\n\n\ndef read(fname):\n return open(fpath(fname)).read()\n\n\ndef desc():\n info = read('README.rst')\n ... | [
{
"content": "# Fix for older setuptools\nimport re\nimport os\nimport sys\n\nfrom setuptools import setup, find_packages\n\n\ndef fpath(name):\n return os.path.join(os.path.dirname(__file__), name)\n\n\ndef read(fname):\n return open(fpath(fname)).read()\n\n\ndef desc():\n info = read('README.rst')\n ... | diff --git a/setup.py b/setup.py
index ea00a6f2d..2bec77fec 100644
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,11 @@ def grep(attrname):
'wtforms'
]
+if sys.version_info[0:2] < (3, 4):
+ # required for python < 3.4
+ install_requires.append('enum34>=1.1.6')
+
+
setup(
name='Flask-Admin',
version... |
saleor__saleor-5259 | Customer shouldn't be able to query draft order.
Customer shouldn't be able to query draft order, by id and by token.
| [
{
"content": "import graphene\nimport graphene_django_optimizer as gql_optimizer\n\nfrom ...order import OrderStatus, models\nfrom ...order.events import OrderEvents\nfrom ...order.models import OrderEvent\nfrom ...order.utils import sum_order_totals\nfrom ..utils import filter_by_period, filter_by_query_param,... | [
{
"content": "import graphene\nimport graphene_django_optimizer as gql_optimizer\n\nfrom ...order import OrderStatus, models\nfrom ...order.events import OrderEvents\nfrom ...order.models import OrderEvent\nfrom ...order.utils import sum_order_totals\nfrom ..utils import filter_by_period, filter_by_query_param,... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 21401312eb2..a367e6d2e81 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -67,6 +67,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Return `null` when querying `me` as an anonymous user - #5231 by @maarcingebala
- Added `PLAYGROUND_... |
django-oscar__django-oscar-3365 | Support for Django 3.0
Hi,
Just a low life dev wondering if you have an expected time frame for Django 3.0 support to be released ?
I saw #3303 got merged into master a couple month ago.
Anything I can do to help the delivery process ?
Should I copy master if I want to use Django 3.0 for the time being ?
... | [
{
"content": "# Use 'alpha', 'beta', 'rc' or 'final' as the 4th element to indicate release type.\nVERSION = (2, 0, 1, 'final')\n\n\ndef get_short_version():\n return '%s.%s' % (VERSION[0], VERSION[1])\n\n\ndef get_version():\n version = '%s.%s' % (VERSION[0], VERSION[1])\n # Append 3rd digit if > 0\n ... | [
{
"content": "# Use 'alpha', 'beta', 'rc' or 'final' as the 4th element to indicate release type.\nVERSION = (2, 1, 0, 'beta')\n\n\ndef get_short_version():\n return '%s.%s' % (VERSION[0], VERSION[1])\n\n\ndef get_version():\n version = '%s.%s' % (VERSION[0], VERSION[1])\n # Append 3rd digit if > 0\n ... | diff --git a/docs/source/howto/how_to_configure_surcharges.rst b/docs/source/howto/how_to_configure_surcharges.rst
index daf68631a9b..6d708371cce 100644
--- a/docs/source/howto/how_to_configure_surcharges.rst
+++ b/docs/source/howto/how_to_configure_surcharges.rst
@@ -1,3 +1,5 @@
+.. _how_to_surcharges:
+
============... |
doccano__doccano-1209 | ModuleNotFoundError: No module named 'auto_labeling_pipeline'
How to reproduce the behaviour
---------
<!-- Before submitting an issue, make sure to check the docs and closed issues and FAQ to see if any of the solutions work for you. https://github.com/doccano/doccano/wiki/Frequently-Asked-Questions -->
<!-- Incl... | [
{
"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 15a723b0ec..de5f683cf3 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,8 @@
'python-jose>=3.2.0',
'seqeval>=1.2.2',
'social-auth-app-django>=4.0.0',
- 'whitenoise>=5.2.0'
+ 'whitenoise>=5.2.0',
+ 'auto-labeling-pipeline>=0.1.12'
]
setup(
|
sktime__sktime-170 | Documentation needs to be fixed
Single comment line on `sktime.utils.validation.forecasting` needs to be fixed. Check the image below.
Instead of `<<<<<<< HEAD:sktime/utils/validation/forecasting.py` we should see `Returns`.
:\n \"\"\"Validate input data.\n\n Parameters\n -------... | [
{
"content": "import numpy as np\nimport pandas as pd\nfrom sklearn.utils.validation import check_is_fitted\n\n__author__ = \"Markus Löning\"\n__all__ = [\"validate_y\", \"validate_X\", \"validate_y_X\", \"validate_fh\"]\n\n\ndef validate_y_X(y, X):\n \"\"\"Validate input data.\n\n Parameters\n -------... | diff --git a/sktime/utils/validation/forecasting.py b/sktime/utils/validation/forecasting.py
index 19846e22115..34814f1f118 100644
--- a/sktime/utils/validation/forecasting.py
+++ b/sktime/utils/validation/forecasting.py
@@ -14,7 +14,6 @@ def validate_y_X(y, X):
y : pandas Series or numpy ndarray
X : pandas D... |
docker__docker-py-1156 | Requests v2.11.0 causes breakage
This is a known issue within requests and looks like it will be fixed in v2.11.1. Documenting for the benefit of anyone else who runs into this :).
After a recent pip upgrade I found that docker-py was passing along an error from requests:
File "/usr/local/lib/python2.7/dist-packages/... | [
{
"content": "#!/usr/bin/env python\nimport os\nimport sys\n\nfrom setuptools import setup\n\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nrequirements = [\n 'requests >= 2.5.2',\n 'six >= 1.4.0',\n 'websocket-client >= 0.32.0',\n]\n\nif sys.platform == 'win32':\n r... | [
{
"content": "#!/usr/bin/env python\nimport os\nimport sys\n\nfrom setuptools import setup\n\n\nROOT_DIR = os.path.dirname(__file__)\nSOURCE_DIR = os.path.join(ROOT_DIR)\n\nrequirements = [\n 'requests >= 2.5.2, < 2.11',\n 'six >= 1.4.0',\n 'websocket-client >= 0.32.0',\n]\n\nif sys.platform == 'win32'... | diff --git a/setup.py b/setup.py
index ac58b1f94..85a449942 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@
SOURCE_DIR = os.path.join(ROOT_DIR)
requirements = [
- 'requests >= 2.5.2',
+ 'requests >= 2.5.2, < 2.11',
'six >= 1.4.0',
'websocket-client >= 0.32.0',
]
|
jupyterhub__jupyterhub-882 | jupyterhub update-db fails
When I run it, I get:
```
FileNotFoundError: [Errno 2] No such file or directory: '/home/yuvipanda/code/jupyterhub-kubernetes-spawner/lib/python3.5/site-packages/jupyterhub/alembic.ini'
```
I didn't capture the full stack trace though.
| [
{
"content": "#!/usr/bin/env python3\n# coding: utf-8\n\n# Copyright (c) Juptyer Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n#-----------------------------------------------------------------------------\n# Minimal Python version sanity check (from IPython)\n#---------------... | [
{
"content": "#!/usr/bin/env python3\n# coding: utf-8\n\n# Copyright (c) Juptyer Development Team.\n# Distributed under the terms of the Modified BSD License.\n\n#-----------------------------------------------------------------------------\n# Minimal Python version sanity check (from IPython)\n#---------------... | diff --git a/setup.py b/setup.py
index 68e529ed52..4ffb77536a 100755
--- a/setup.py
+++ b/setup.py
@@ -66,6 +66,7 @@ def get_package_data():
"""
package_data = {}
package_data['jupyterhub'] = [
+ 'alembic.ini',
'alembic/*',
'alembic/versions/*',
]
|
paperless-ngx__paperless-ngx-1091 | [BUG] Constant moderate CPU usage when idle (aka. paperless is contributing to global warming)
### Description
paperless ngx relies on redis to move data between the processes. The problem is that somehow something somewhere is not configured correctly, resulting on a permanent 1-3% CPU usage (see below)
It may see... | [
{
"content": "import datetime\nimport json\nimport math\nimport multiprocessing\nimport os\nimport re\nfrom typing import Final\nfrom typing import Optional\nfrom typing import Set\nfrom urllib.parse import urlparse\n\nfrom concurrent_log_handler.queue import setup_logging_queues\nfrom django.utils.translation ... | [
{
"content": "import datetime\nimport json\nimport math\nimport multiprocessing\nimport os\nimport re\nfrom typing import Final\nfrom typing import Optional\nfrom typing import Set\nfrom urllib.parse import urlparse\n\nfrom concurrent_log_handler.queue import setup_logging_queues\nfrom django.utils.translation ... | diff --git a/src/paperless/settings.py b/src/paperless/settings.py
index c512b1d47c2..9a5d9453d77 100644
--- a/src/paperless/settings.py
+++ b/src/paperless/settings.py
@@ -458,6 +458,7 @@ def default_task_workers() -> int:
Q_CLUSTER = {
"name": "paperless",
+ "guard_cycle": 5,
"catch_up": False,
"... |
tensorflow__addons-1770 | Enable multiprocessing when testing with GPU and support distributed strategies in the tests.
**Describe the feature and the current behavior/state.**
Here I'm not going to discuss the bazel case as it's much more complicated to handle, and we currently advertize using pytest anyway to run the tests. We can of cours... | [
{
"content": "from tensorflow_addons.utils.test_utils import ( # noqa: F401\n maybe_run_functions_eagerly,\n pytest_make_parametrize_id,\n data_format,\n set_seeds,\n pytest_addoption,\n set_global_variables,\n pytest_configure,\n device,\n pytest_generate_tests,\n)\n\n# fixtures pre... | [
{
"content": "from tensorflow_addons.utils.test_utils import ( # noqa: F401\n maybe_run_functions_eagerly,\n pytest_make_parametrize_id,\n data_format,\n set_seeds,\n pytest_addoption,\n set_global_variables,\n pytest_configure,\n device,\n pytest_generate_tests,\n pytest_collecti... | diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e3d04ddb67..9e0836d26e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -428,6 +428,8 @@ the test twice, on CPU and on GPU, or only on GPU. Here is how to do it.
```python
import pytest
+import tensorflow as tf
+from tensorflow_addons.utils import test_utils... |
PaddlePaddle__models-3094 | PaddleCV/Research/astar2019/reader.py中的bug
[PaddleCV/Research/astar2019/reader.py](https://github.com/PaddlePaddle/models/blob/develop/PaddleCV/Research/astar2019/reader.py)中第74行有一处bug,代码如下
```
@property
def apply_distort(self): # line 74: 按功能,此处应该是 def apply_expand(self):
return self._apply_ex... | [
{
"content": "# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0... | [
{
"content": "# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0... | diff --git a/PaddleCV/Research/astar2019/reader.py b/PaddleCV/Research/astar2019/reader.py
index 8024bf067f..39efa44aa0 100644
--- a/PaddleCV/Research/astar2019/reader.py
+++ b/PaddleCV/Research/astar2019/reader.py
@@ -71,7 +71,7 @@ def ap_version(self):
return self._ap_version
@property
- def apply_... |
adamchainz__django-perf-rec-469 | overwrite MODE can result in invalid snapshot files
### Python Version
3.9
### Django Version
3.2
### Package Version
4.20.0
### Description
If the new snapshot data are smaller than the previous ones, then `overwrite` mode can result in the file contents containing trailing data left over from the... | [
{
"content": "from __future__ import annotations\n\nimport errno\nimport os\nfrom typing import Any\n\nimport yaml\nfrom django.core.files import locks\n\nfrom django_perf_rec.types import PerformanceRecord\n\n\nclass KVFile:\n def __init__(self, file_name: str) -> None:\n self.file_name = file_name\n... | [
{
"content": "from __future__ import annotations\n\nimport errno\nimport os\nfrom typing import Any\n\nimport yaml\nfrom django.core.files import locks\n\nfrom django_perf_rec.types import PerformanceRecord\n\n\nclass KVFile:\n def __init__(self, file_name: str) -> None:\n self.file_name = file_name\n... | diff --git a/HISTORY.rst b/HISTORY.rst
index 331d0a69..a3ebf194 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,10 @@
History
=======
+* Fix 'overwrite' mode to prevent file corruption.
+
+ Thanks to Peter Law for the report in `Issue #468 <https://github.com/adamchainz/django-perf-rec/issues/468>`__.
+
4.2... |
spyder-ide__spyder-6089 | Spyder not starting in macOS because pyopengl is present
I updated python and spyder using "conda update spyder" and "conda update python" respectively on MacOSX. Is this a python error or a spyder error?
Please find attached the conda list output listing the versions.
Thanks for your support.
--------
Tr... | [
{
"content": "# -*- coding: utf-8 -*-\r\n\r\n# Std imports\r\nimport os\r\nimport os.path as osp\r\nimport random\r\nimport socket\r\nimport sys\r\nimport time\r\n\r\n# To prevent a race condition with ZMQ\r\n# See issue 5324\r\nimport zmq\r\n\r\n# This import is needed to fix errors with OpenGL when installed ... | [
{
"content": "# -*- coding: utf-8 -*-\r\n\r\n# Std imports\r\nimport os\r\nimport os.path as osp\r\nimport random\r\nimport socket\r\nimport sys\r\nimport time\r\n\r\n# To prevent a race condition with ZMQ\r\n# See issue 5324\r\nimport zmq\r\n\r\n# This import is needed to fix errors with OpenGL when installed ... | diff --git a/spyder/app/start.py b/spyder/app/start.py
index 8d0a33f8156..542afde3420 100644
--- a/spyder/app/start.py
+++ b/spyder/app/start.py
@@ -16,8 +16,7 @@
# See issue 3332
try:
from OpenGL import GL
-except ImportError:
- # pyopengl is not present when installed using conda
+except:
pass
... |
ros__ros_comm-683 | unregister() method to message_filter.Subscriber on python
Do you have plan to implement this?
Or there is other way to achieve this?
| [
{
"content": "# Copyright (c) 2009, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain the above copyright\n# ... | [
{
"content": "# Copyright (c) 2009, Willow Garage, Inc.\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n#\n# * Redistributions of source code must retain the above copyright\n# ... | diff --git a/utilities/message_filters/src/message_filters/__init__.py b/utilities/message_filters/src/message_filters/__init__.py
index dc7d7cf105..ae6b929ee1 100644
--- a/utilities/message_filters/src/message_filters/__init__.py
+++ b/utilities/message_filters/src/message_filters/__init__.py
@@ -76,6 +76,9 @@ def cal... |
Flexget__Flexget-2652 | Dependencies on non pure Python modules
Hi,
Sorry for [x-posting](https://discuss.flexget.com/t/dependencies-on-non-pure-python-modules/5086). This is kind of a development issue so it might fit here better than in the forum. Feel free to just close this and reply on Discourse.
When upgrading Flexget I stumbled u... | [
{
"content": "import logging\nimport webbrowser\nfrom functools import partial, wraps\nfrom pathlib import Path\nfrom typing import List, Optional\n\nfrom loguru import logger\n\nfrom flexget import __version__\n\nlogger = logger.bind(name='tray_icon')\n\ntry:\n # If we are running outside of a graphical env... | [
{
"content": "import logging\nimport webbrowser\nfrom functools import partial, wraps\nfrom pathlib import Path\nfrom typing import List, Optional\n\nfrom loguru import logger\n\nfrom flexget import __version__\n\nlogger = logger.bind(name='tray_icon')\n\ntry:\n # If we are running outside of a graphical env... | diff --git a/flexget/tray_icon.py b/flexget/tray_icon.py
index 36cb008561..c669515fbc 100644
--- a/flexget/tray_icon.py
+++ b/flexget/tray_icon.py
@@ -17,7 +17,7 @@
_import_success = True
except Exception as e:
- logger.debug('Could not import pystray: {}', e)
+ logger.debug('Could not load tray icon: {}'... |
vaexio__vaex-2186 | [FEATURE-REQUEST]: Expose `vaex.DataFrame` for type hinting
I would like to add type annotations to my code. Currently I can do `from vaex.dataframe import DataFrame`, but it would be nice if the DataFrame was exposed at the top level so I could just do `import vaex` and then `df: vaex.DataFrame = ...`
I like being... | [
{
"content": "\"\"\"\nVaex is a library for dealing with larger than memory DataFrames (out of core).\n\nThe most important class (datastructure) in vaex is the :class:`.DataFrame`. A DataFrame is obtained by either opening\nthe example dataset:\n\n>>> import vaex\n>>> df = vaex.example()\n\nOr using :func:`ope... | [
{
"content": "\"\"\"\nVaex is a library for dealing with larger than memory DataFrames (out of core).\n\nThe most important class (datastructure) in vaex is the :class:`.DataFrame`. A DataFrame is obtained by either opening\nthe example dataset:\n\n>>> import vaex\n>>> df = vaex.example()\n\nOr using :func:`ope... | diff --git a/packages/vaex-core/vaex/__init__.py b/packages/vaex-core/vaex/__init__.py
index f7a91b5fc6..50bbb0b921 100644
--- a/packages/vaex-core/vaex/__init__.py
+++ b/packages/vaex-core/vaex/__init__.py
@@ -56,6 +56,9 @@
from . import agg
import vaex.datasets
+# Re-export these so users can type hint with eg va... |
Textualize__textual-2755 | A lone `Static` results in a `TooManyMatches` error when using `query_one`
I've not dived into this beyond knocking up this example to isolate what I saw (about to head out of the door but wanted to record this as a reminder). With 0.27.0 (perhaps before too, just noting the version here for the record), this code:
... | [
{
"content": "from __future__ import annotations\n\nfrom textual.widgets import Static\n\n\nclass Tooltip(Static):\n DEFAULT_CSS = \"\"\"\n Tooltip {\n layer: _tooltips;\n margin: 1 2;\n padding: 1 2;\n background: $panel;\n width: auto;\n height: auto;\n c... | [
{
"content": "from __future__ import annotations\n\nfrom textual.widgets import Static\n\n\nclass Tooltip(Static, inherit_css=False):\n DEFAULT_CSS = \"\"\"\n Tooltip {\n layer: _tooltips;\n margin: 1 2;\n padding: 1 2;\n background: $panel;\n width: auto;\n heigh... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 23739959d7..ce7c782824 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fixed setting `TreeNode.label` on an existing `Tree` node not immediately https://github.com/Textualize/textual... |
openfun__marsha-2411 | 🐛(backend) licence not saved during creation video resource
## Bug Report
**Problematic Behavior**
When we create a video and set a licence, the licence is not saved.
[error-licence-2023-09-12 143121.webm](https://github.com/openfun/marsha/assets/25994652/60514ad8-07cd-4390-97c9-21eb3525ecc6)
| [
{
"content": "\"\"\"Marsha forms module.\"\"\"\nfrom django.core.exceptions import ValidationError\nfrom django.forms import CharField, ModelForm\n\nfrom . import models\nfrom .defaults import INITIALIZED\n\n\nclass DocumentForm(ModelForm):\n \"\"\"Form to create or update documents.\"\"\"\n\n class Meta:... | [
{
"content": "\"\"\"Marsha forms module.\"\"\"\nfrom django.core.exceptions import ValidationError\nfrom django.forms import CharField, ModelForm\n\nfrom . import models\nfrom .defaults import INITIALIZED\n\n\nclass DocumentForm(ModelForm):\n \"\"\"Form to create or update documents.\"\"\"\n\n class Meta:... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index d6c580de24..3705a01655 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,10 @@ Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
+### Fixed
+
+- Save license when a video is created
+
## [4.4.0] - 2023-09-08
### Added
diff --git a/src/backend... |
dbt-labs__dbt-core-2537 | Python 3.6.2 doesn't work with dbt 0.17.0
### Describe the bug
Running dbt on python <= 3.6.2 results in an error that `name 'TimestampSnapshotConfig' is not defined`. 3.6.3 is unaffected.
### Steps To Reproduce
Install python 3.6.2
Install dbt
Try to use dbt
### Expected behavior
dbt should run, not crash, ... | [
{
"content": "#!/usr/bin/env python\nimport os\nimport sys\n\nfrom setuptools import setup\ntry:\n from setuptools import find_namespace_packages\nexcept ImportError:\n # the user has a downlevel version of setuptools.\n print('Error: dbt requires setuptools v40.1.0 or higher.')\n print('Please upgr... | [
{
"content": "#!/usr/bin/env python\nimport os\nimport sys\n\nfrom setuptools import setup\ntry:\n from setuptools import find_namespace_packages\nexcept ImportError:\n # the user has a downlevel version of setuptools.\n print('Error: dbt requires setuptools v40.1.0 or higher.')\n print('Please upgr... | diff --git a/core/setup.py b/core/setup.py
index b63daad5d0a..82fc31ae8ba 100644
--- a/core/setup.py
+++ b/core/setup.py
@@ -86,5 +86,5 @@ def read(fname):
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
- python_requires=">=3.6.2",
+ python_requires=">=... |
cowrie__cowrie-1063 | Can't enter using "oracle" or "tomcat" users
Hello.
I'm using stock userdb.txt file, where "oracle" and "tomcat" users are defined with any password. When using these users, the ssh client gives me an error of "Permission denied (publickey,password)" after entering three times any password.
The ugly thing is that i... | [
{
"content": "# Copyright (c) 2015 Michel Oosterhof <michel@oosterhof.net>\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# 1. Redistributions of source code must retain the ab... | [
{
"content": "# Copyright (c) 2015 Michel Oosterhof <michel@oosterhof.net>\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# 1. Redistributions of source code must retain the ab... | diff --git a/src/cowrie/shell/pwd.py b/src/cowrie/shell/pwd.py
index 394a95899c..c3a3842a74 100644
--- a/src/cowrie/shell/pwd.py
+++ b/src/cowrie/shell/pwd.py
@@ -117,7 +117,7 @@ def setpwentry(self, name):
"""
# ensure consistent uid and gid
- seed_id = crc32(name)
+ seed_id = crc32(n... |
strawberry-graphql__strawberry-2528 | Additional type hints for strawberry.field - so that it can be used with async reolvers
If I use strawberry.field as explained in the documentation for async resolvers I get the following warning from pylance.
```python
import asyncio
import strawberry
async def resolve_hello(root) -> str:
await asyncio.s... | [
{
"content": "import builtins\nimport dataclasses\nimport inspect\nimport sys\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Awaitable,\n Callable,\n Dict,\n List,\n Mapping,\n Optional,\n Sequence,\n Type,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import... | [
{
"content": "import builtins\nimport dataclasses\nimport inspect\nimport sys\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Awaitable,\n Callable,\n Dict,\n List,\n Mapping,\n Optional,\n Sequence,\n Type,\n TypeVar,\n Union,\n overload,\n)\nfrom typing_extensions import... | diff --git a/RELEASE.md b/RELEASE.md
new file mode 100644
index 0000000000..9a29a22c51
--- /dev/null
+++ b/RELEASE.md
@@ -0,0 +1,20 @@
+Release type: patch
+
+This release updates the typing for the resolver argument in
+`strawberry.field`i to support async resolvers.
+This means that now you won't get any type
+error ... |
inventree__InvenTree-1525 | [BUG] no attribute MPN
# System
Version: 0.2.2 pre
Commit-Date: 2021-04-27
Commit-Hash: 4d2e23f
Plattform: Win H2 - WSL2 Debian Buster
Deployment Method: runserver
# Steps to reproduce
- open supplier part
- add price break (button)
- enter data (does not matter, in my case: number 1, price 1)
-> results... | [
{
"content": "\"\"\"\nCompany database model definitions\n\"\"\"\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport os\n\nimport math\n\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.core.validators import MinValueValidator\nfrom django.core.exceptions import Va... | [
{
"content": "\"\"\"\nCompany database model definitions\n\"\"\"\n\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport os\n\nimport math\n\nfrom django.utils.translation import ugettext_lazy as _\nfrom django.core.validators import MinValueValidator\nfrom django.core.exceptions import Va... | diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py
index 3ea50b162219..c743bf44343c 100644
--- a/InvenTree/company/models.py
+++ b/InvenTree/company/models.py
@@ -675,4 +675,4 @@ class Meta:
db_table = 'part_supplierpricebreak'
def __str__(self):
- return f'{self.part.MPN} - {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.