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 ⌀ |
|---|---|---|---|---|
nautobot__nautobot-4976 | Install issue 2.0.1 -> collect static fails to create directories
<!--
NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED.
This form is only for reporting reproducible bugs. If you need assistance
with Nautobot installation, or if you have a general question, please start a
discu... | [
{
"content": "\"\"\"\nUtilities and primitives for the `nautobot-server` CLI command.\n\"\"\"\n\nimport os\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.core.management.utils import get_random_secret_key\nfrom jinja2 import BaseLoader, Environment\n\nfrom nautobot.core.runner import ru... | [
{
"content": "\"\"\"\nUtilities and primitives for the `nautobot-server` CLI command.\n\"\"\"\n\nimport os\n\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.core.management.utils import get_random_secret_key\nfrom jinja2 import BaseLoader, Environment\n\nfrom nautobot.core.runner import ru... | diff --git a/changes/4620.fixed b/changes/4620.fixed
new file mode 100644
index 00000000000..64b538019a3
--- /dev/null
+++ b/changes/4620.fixed
@@ -0,0 +1 @@
+Ensure UI build directory is created on init of nautobot-server.
\ No newline at end of file
diff --git a/nautobot/core/cli/__init__.py b/nautobot/core/cli/__ini... |
learningequality__kolibri-1529 | <Enhancement> A pop up on the screen when a learner masters an exercise would be great.
## Summary
<Enhancement> A pop up on the screen when a learner masters an exercise would be great.
Presently the learner is not aware if he/she has mastered the topic, since the point addition happens very subtly.
Hence a Pop... | [
{
"content": "from functools import reduce\nfrom random import sample\n\nfrom django.core.cache import cache\nfrom django.db.models import Q\nfrom django.db.models.aggregates import Count\nfrom kolibri.content import models, serializers\nfrom kolibri.content.content_db_router import get_active_content_database\... | [
{
"content": "from functools import reduce\nfrom random import sample\n\nfrom django.core.cache import cache\nfrom django.db.models import Q\nfrom django.db.models.aggregates import Count\nfrom kolibri.content import models, serializers\nfrom kolibri.content.content_db_router import get_active_content_database\... | diff --git a/kolibri/content/api.py b/kolibri/content/api.py
index a10cbecfc32..0af096a7b92 100644
--- a/kolibri/content/api.py
+++ b/kolibri/content/api.py
@@ -222,7 +222,7 @@ def next_content(self, request, **kwargs):
next_item = models.ContentNode.objects.filter(tree_id=this_item.tree_id, lft__gt=this_item.... |
kivy__kivy-3064 | SDL2: resizing re-add sdl input provider ?
If i resize a SDL2 window, here is the log:
```
[INFO ] [Window ] auto add sdl input provider
[INFO ] [Window ] auto add sdl input provider
[INFO ] [Window ] auto add sdl input provider
[INFO ] [Window ] auto add sdl input provider
[INFO ] [Windo... | [
{
"content": "# found a way to include it more easily.\n'''\nSDL2 Window\n===========\n\nWindowing provider directly based on our own wrapped version of SDL.\n\nTODO:\n - fix keys\n - support scrolling\n - clean code\n - manage correctly all sdl events\n\n'''\n\n__all__ = ('WindowSDL2', )\n\nfrom os... | [
{
"content": "# found a way to include it more easily.\n'''\nSDL2 Window\n===========\n\nWindowing provider directly based on our own wrapped version of SDL.\n\nTODO:\n - fix keys\n - support scrolling\n - clean code\n - manage correctly all sdl events\n\n'''\n\n__all__ = ('WindowSDL2', )\n\nfrom os... | diff --git a/kivy/core/window/window_sdl2.py b/kivy/core/window/window_sdl2.py
index cfcbe44faf..2ac0590116 100644
--- a/kivy/core/window/window_sdl2.py
+++ b/kivy/core/window/window_sdl2.py
@@ -157,8 +157,11 @@ def create_window(self, *largs):
super(WindowSDL, self).create_window()
+ if self.initia... |
ivy-llc__ivy-16201 | cosh
| [
{
"content": "# local\r\nimport ivy\r\nimport ivy.functional.frontends.paddle as paddle_frontend\r\nfrom ivy.functional.frontends.paddle.func_wrapper import (\r\n _to_ivy_array,\r\n)\r\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\r\n\r\n\r\nclass Tensor:\r\n def __init__(se... | [
{
"content": "# local\r\nimport ivy\r\nimport ivy.functional.frontends.paddle as paddle_frontend\r\nfrom ivy.functional.frontends.paddle.func_wrapper import (\r\n _to_ivy_array,\r\n)\r\nfrom ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes\r\n\r\n\r\nclass Tensor:\r\n def __init__(se... | diff --git a/ivy/functional/frontends/paddle/tensor/tensor.py b/ivy/functional/frontends/paddle/tensor/tensor.py
index d9e9da905bb6e..44b89e41a3aa8 100644
--- a/ivy/functional/frontends/paddle/tensor/tensor.py
+++ b/ivy/functional/frontends/paddle/tensor/tensor.py
@@ -110,6 +110,10 @@ def asinh(self, name=None):
d... |
mathesar-foundation__mathesar-1975 | Show banner throughout application when "live demo mode" is turned on.
We should show a banner at the top of the screen on all pages that explains that Mathesar is in live demo mode and that each session has its own copy of demo data and that data will be deleted regularly.
Assigning this to @mathemancer to make sur... | [
{
"content": "from django.conf import settings\n\nfrom mathesar.utils.frontend import get_manifest_data\n\n\ndef frontend_settings(request):\n frontend_settings = {\n 'development_mode': settings.MATHESAR_MODE == 'DEVELOPMENT',\n 'manifest_data': get_manifest_data()\n }\n # Only include d... | [
{
"content": "from django.conf import settings\n\nfrom mathesar.utils.frontend import get_manifest_data\n\n\ndef frontend_settings(request):\n frontend_settings = {\n 'development_mode': settings.MATHESAR_MODE == 'DEVELOPMENT',\n 'manifest_data': get_manifest_data(),\n 'live_demo_mode': ... | diff --git a/config/context_processors.py b/config/context_processors.py
index a72030fd6b..05df04fb3c 100644
--- a/config/context_processors.py
+++ b/config/context_processors.py
@@ -6,7 +6,8 @@
def frontend_settings(request):
frontend_settings = {
'development_mode': settings.MATHESAR_MODE == 'DEVELOPME... |
Cog-Creators__Red-DiscordBot-3447 | No username in modlog entries
# Command bugs
#### Command name
hackban, reason
#### What cog is this command from?
Mod, ModLog
#### What were you expecting to happen?
ModLog entry should show a nickname and/or username.
#### What actually happened?
For users that aren't in the server, the ModL... | [
{
"content": "from __future__ import annotations\n\nimport asyncio\nimport logging\nfrom datetime import datetime, timedelta\nfrom typing import List, Union, Optional, cast, TYPE_CHECKING\n\nimport discord\n\nfrom redbot.core import Config\n\nfrom .utils.common_filters import (\n filter_invites,\n filter_... | [
{
"content": "from __future__ import annotations\n\nimport asyncio\nimport logging\nfrom datetime import datetime, timedelta\nfrom typing import List, Union, Optional, cast, TYPE_CHECKING\n\nimport discord\n\nfrom redbot.core import Config\n\nfrom .utils.common_filters import (\n filter_invites,\n filter_... | diff --git a/redbot/core/modlog.py b/redbot/core/modlog.py
index 70020349775..6c3158f98ba 100644
--- a/redbot/core/modlog.py
+++ b/redbot/core/modlog.py
@@ -324,9 +324,7 @@ async def message_content(self, embed: bool = True):
if embed:
emb = discord.Embed(title=title, description=reason)
-
- ... |
networkx__networkx-3347 | Missing edge label attribute in GEXFWriter
According to the [GEXF specification ](https://gephi.org/gexf/1.2draft/gexf-12draft-primer.pdf):
> Each edge can have a optional XML-attribute label, which is a string.
The [specification 1.2draft](https://github.com/gephi/gexf/blob/81ba4e7ccdc25631f836fc5caa4ed64ba53003... | [
{
"content": "\"\"\"Read and write graphs in GEXF format.\n\nGEXF (Graph Exchange XML Format) is a language for describing complex\nnetwork structures, their associated data and dynamics.\n\nThis implementation does not support mixed graphs (directed and\nundirected edges together).\n\nFormat\n------\nGEXF is a... | [
{
"content": "\"\"\"Read and write graphs in GEXF format.\n\nGEXF (Graph Exchange XML Format) is a language for describing complex\nnetwork structures, their associated data and dynamics.\n\nThis implementation does not support mixed graphs (directed and\nundirected edges together).\n\nFormat\n------\nGEXF is a... | diff --git a/networkx/readwrite/gexf.py b/networkx/readwrite/gexf.py
index 3f5d5ed1c9a..b69c4ae72b9 100644
--- a/networkx/readwrite/gexf.py
+++ b/networkx/readwrite/gexf.py
@@ -400,6 +400,11 @@ def edge_key_data(G):
edges_element = Element("edges")
for u, v, key, edge_data in edge_key_data(G):
... |
Lightning-AI__pytorch-lightning-2482 | DDP breaks when `python` does not refer to the correct interpreter
<!--
### Common bugs:
1. Tensorboard not showing in Jupyter-notebook see [issue 79](https://github.com/PyTorchLightning/pytorch-lightning/issues/79).
2. PyTorch 1.1.0 vs 1.2.0 support [see FAQ](https://github.com/PyTorchLightning/pytorch-lightni... | [
{
"content": "\"\"\"\nLightning supports model training on a cluster managed by SLURM in the following cases:\n\n1. Training on a single cpu or single GPU.\n2. Train on multiple GPUs on the same node using DataParallel or DistributedDataParallel\n3. Training across multiple GPUs on multiple different nodes via ... | [
{
"content": "\"\"\"\nLightning supports model training on a cluster managed by SLURM in the following cases:\n\n1. Training on a single cpu or single GPU.\n2. Train on multiple GPUs on the same node using DataParallel or DistributedDataParallel\n3. Training across multiple GPUs on multiple different nodes via ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e77fd63661783..41bc8095b8d93 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Fixed
+- Fixed using the same DDP python interpreter and actually running ([#2482](https://g... |
bookwyrm-social__bookwyrm-1605 | Editing an author deletes author data not in form
**Describe the bug**
Editing an author saves the form data as an update. `isni` and `viaf_id` are not part of the form, so these values are deleted when the author details are edited.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'author page'
2. Cli... | [
{
"content": "\"\"\" using django model forms \"\"\"\nimport datetime\nfrom collections import defaultdict\n\nfrom django import forms\nfrom django.forms import ModelForm, PasswordInput, widgets, ChoiceField\nfrom django.forms.widgets import Textarea\nfrom django.utils import timezone\nfrom django.utils.transla... | [
{
"content": "\"\"\" using django model forms \"\"\"\nimport datetime\nfrom collections import defaultdict\n\nfrom django import forms\nfrom django.forms import ModelForm, PasswordInput, widgets, ChoiceField\nfrom django.forms.widgets import Textarea\nfrom django.utils import timezone\nfrom django.utils.transla... | diff --git a/bookwyrm/forms.py b/bookwyrm/forms.py
index 298f73da90..847ca05c0f 100644
--- a/bookwyrm/forms.py
+++ b/bookwyrm/forms.py
@@ -201,12 +201,18 @@ class Meta:
class AuthorForm(CustomForm):
class Meta:
model = models.Author
- exclude = [
- "remote_id",
- "origin_id",... |
huggingface__accelerate-50 | Mismatch between `accelerate config` cli and `default_config.yaml`
The generated `default_config.yaml` is mismatch with `accelerate config`.
Here are my cli outputs and `default_config.yaml`
cli outputs
```
In which compute environment are you running? ([0] This machine, [1] AWS (Amazon SageMaker)): 0
Which... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.or... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.or... | diff --git a/src/accelerate/commands/config/cluster.py b/src/accelerate/commands/config/cluster.py
index 56ba51f64f2..c8bf1bcd75b 100644
--- a/src/accelerate/commands/config/cluster.py
+++ b/src/accelerate/commands/config/cluster.py
@@ -46,7 +46,7 @@ def get_cluster_input():
main_process_ip = _ask_field(
... |
RedHatInsights__insights-core-3116 | Spec ansible_tower_settings should have been created as multi_output
Since this spec is using a glob type of spec it can collect multiple files. It needs to be defined as `multi_output=True` to work correctly. This spec was added in merged PR #3102.
| [
{
"content": "from insights.core.spec_factory import SpecSet, RegistryPoint\n\n\nclass Openshift(SpecSet):\n cluster_operators = RegistryPoint(raw=True)\n crds = RegistryPoint(raw=True)\n crs = RegistryPoint(raw=True, multi_output=True)\n machine_configs = RegistryPoint(raw=True)\n machines = Reg... | [
{
"content": "from insights.core.spec_factory import SpecSet, RegistryPoint\n\n\nclass Openshift(SpecSet):\n cluster_operators = RegistryPoint(raw=True)\n crds = RegistryPoint(raw=True)\n crs = RegistryPoint(raw=True, multi_output=True)\n machine_configs = RegistryPoint(raw=True)\n machines = Reg... | diff --git a/insights/specs/__init__.py b/insights/specs/__init__.py
index 9908103653..2e64530ba6 100644
--- a/insights/specs/__init__.py
+++ b/insights/specs/__init__.py
@@ -19,7 +19,7 @@ class Specs(SpecSet):
abrt_ccpp_conf = RegistryPoint(filterable=True)
abrt_status_bare = RegistryPoint()
alternative... |
mlflow__mlflow-6113 | [DOC-FIX] Mistake in the docs of mlflow.pytorch.autolog
### Willingness to contribute
Yes. I can contribute a documentation fix independently.
### URL(s) with the issue
https://www.mlflow.org/docs/latest/python_api/mlflow.pytorch.html#module-mlflow.pytorch
### Description of proposal (what needs changing)
... | [
{
"content": "\"\"\"\nThe ``mlflow.pytorch`` module provides an API for logging and loading PyTorch models. This module\nexports PyTorch models with the following flavors:\n\nPyTorch (native) format\n This is the main flavor that can be loaded back into PyTorch.\n:py:mod:`mlflow.pyfunc`\n Produced for use... | [
{
"content": "\"\"\"\nThe ``mlflow.pytorch`` module provides an API for logging and loading PyTorch models. This module\nexports PyTorch models with the following flavors:\n\nPyTorch (native) format\n This is the main flavor that can be loaded back into PyTorch.\n:py:mod:`mlflow.pyfunc`\n Produced for use... | diff --git a/mlflow/pytorch/__init__.py b/mlflow/pytorch/__init__.py
index defc873f7af8e..be609683fbb65 100644
--- a/mlflow/pytorch/__init__.py
+++ b/mlflow/pytorch/__init__.py
@@ -964,8 +964,10 @@ def forward(self, x):
def training_step(self, batch, batch_nb):
x, y = batch
- ... |
liqd__a4-meinberlin-1411 | Type Error in plans list
if a project connected to the plans list adds a module, but no phase dates, the date might become none and the whole list will not be shown
| [
{
"content": "import json\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.urls import reverse\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext\nfrom django.utils.translation import ugett... | [
{
"content": "import json\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.urls import reverse\nfrom django.utils import timezone\nfrom django.utils.translation import ugettext\nfrom django.utils.translation import ugett... | diff --git a/meinberlin/apps/plans/views.py b/meinberlin/apps/plans/views.py
index ee1b8bb340..a1cb06e7a7 100644
--- a/meinberlin/apps/plans/views.py
+++ b/meinberlin/apps/plans/views.py
@@ -54,7 +54,8 @@ def _get_status_string(self, projects):
phases = project.phases
if phases.active_phases()... |
encode__django-rest-framework-4021 | OPTIONS fetches and shows all possible foreign keys in choices field
I have an object with foreign keys and when I load a `OPTIONS` request for that object type, it shows me a truly insane JSON object with every possible value for the foreign key (there are millions!)
So, for example, I have this object:
```
class Op... | [
{
"content": "\"\"\"\nThe metadata API is used to allow customization of how `OPTIONS` requests\nare handled. We currently provide a single default implementation that returns\nsome fairly ad-hoc information about the view.\n\nFuture implementations might use JSON schema or other definitions in order\nto return... | [
{
"content": "\"\"\"\nThe metadata API is used to allow customization of how `OPTIONS` requests\nare handled. We currently provide a single default implementation that returns\nsome fairly ad-hoc information about the view.\n\nFuture implementations might use JSON schema or other definitions in order\nto return... | diff --git a/rest_framework/metadata.py b/rest_framework/metadata.py
index 6c4f176923..673aa962c3 100644
--- a/rest_framework/metadata.py
+++ b/rest_framework/metadata.py
@@ -137,7 +137,9 @@ def get_field_info(self, field):
elif getattr(field, 'fields', None):
field_info['children'] = self.get_ser... |
SciTools__cartopy-157 | Path <-> LineString vs Polygon conversion
Consider the following:
```
p = Path([[0, 0], [0, 2], [0, 0]])
print cpatch.path_to_geos(p)
```
In this case, the result should be a LineString, but the following should be a polygon:
```
p = Path([[0, 0], [0, 2], [2, 2], [2, 0], [0, 0]])
print cpatch.path_to_geos(p)
```
Up... | [
{
"content": "# (C) British Crown Copyright 2011 - 2012, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the Li... | [
{
"content": "# (C) British Crown Copyright 2011 - 2012, Met Office\n#\n# This file is part of cartopy.\n#\n# cartopy is free software: you can redistribute it and/or modify it under\n# the terms of the GNU Lesser General Public License as published by the\n# Free Software Foundation, either version 3 of the Li... | diff --git a/lib/cartopy/mpl_integration/patch.py b/lib/cartopy/mpl_integration/patch.py
index bd4f66d12..ecc291f66 100644
--- a/lib/cartopy/mpl_integration/patch.py
+++ b/lib/cartopy/mpl_integration/patch.py
@@ -202,7 +202,9 @@ def path_to_geos(path):
geom_collection = [MultiLineString(geom_collection)]
... |
cisagov__manage.get.gov-1094 | Check Domain availability via epp-Testing
### Issue Description
When adding the /availability endpoint we will need to send a CheckDomain request to epp to see if the domain is available. This epp function is already implemented in domain.py and is called available(). It just needs to be tested and updated if the te... | [
{
"content": "import logging\nfrom types import SimpleNamespace\n\ntry:\n from epplib import constants\nexcept ImportError:\n # allow epplibwrapper to load without epplib, for testing and development\n pass\n\nlogger = logging.getLogger(__name__)\n\nNAMESPACE = SimpleNamespace(\n EPP=\"urn:ietf:para... | [
{
"content": "import logging\nfrom types import SimpleNamespace\n\ntry:\n from epplib import constants\nexcept ImportError:\n # allow epplibwrapper to load without epplib, for testing and development\n pass\n\nlogger = logging.getLogger(__name__)\n\nNAMESPACE = SimpleNamespace(\n EPP=\"urn:ietf:para... | diff --git a/src/epplibwrapper/__init__.py b/src/epplibwrapper/__init__.py
index b306dbd0e..65de3ec05 100644
--- a/src/epplibwrapper/__init__.py
+++ b/src/epplibwrapper/__init__.py
@@ -45,6 +45,7 @@
from .client import CLIENT, commands
from .errors import RegistryError, ErrorCode
from epplib.models impor... |
conda__conda-2355 | BeeGFS hard-links
[BeeGFS](http://www.beegfs.com), a parallel cluster file system, [does not support](https://groups.google.com/forum/#!topic/fhgfs-user/cTJcqGZceVA) `hard-links` between files in differents directories.
Depending on the [configuration](https://groups.google.com/forum/#!topic/fhgfs-user/pvQSo0QWicw), e... | [
{
"content": "# (c) 2012-2014 Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n''' This module contains:\n * all low-level code for extracting, l... | [
{
"content": "# (c) 2012-2014 Continuum Analytics, Inc. / http://continuum.io\n# All Rights Reserved\n#\n# conda is distributed under the terms of the BSD 3-clause license.\n# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.\n''' This module contains:\n * all low-level code for extracting, l... | diff --git a/conda/install.py b/conda/install.py
index 54a054747af..980722d349b 100644
--- a/conda/install.py
+++ b/conda/install.py
@@ -515,7 +515,12 @@ def try_hard_link(pkgs_dir, prefix, dist):
if not isdir(prefix):
os.makedirs(prefix)
_link(src, dst, LINK_HARD)
- return True
+ ... |
google__flax-2557 | Support serialization for `jax.tree_util.Partial`
`jax.tree_util.Partial` is a PyTree-aware version of `functors.partial` whose leaves (args and keyword args) are arrays.
Therefore, I believe it makes sense to make it `serialization`-aware. This allows to use `Partial` inside of structures that we use for checkpoint... | [
{
"content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | [
{
"content": "# Copyright 2022 The Flax Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by ap... | diff --git a/flax/serialization.py b/flax/serialization.py
index 1d8404417..a7506763a 100644
--- a/flax/serialization.py
+++ b/flax/serialization.py
@@ -193,6 +193,20 @@ def _restore_namedtuple(xs, state_dict: Dict[str, Any]):
_namedtuple_state_dict,
_restore_... |
ibis-project__ibis-1917 | BUG: OmniSciDB/MapD aggregate with where param doesn't work
Similar error reported https://github.com/ibis-project/ibis/issues/1620
Solution:
Add `ops.NullLiteral: lambda *args: 'CAST(NULL AS FLOAT)'`
| [
{
"content": "import warnings\nfrom datetime import date, datetime\nfrom io import StringIO\n\nimport ibis\nimport ibis.common.exceptions as com\nimport ibis.common.geospatial as geo\nimport ibis.expr.datatypes as dt\nimport ibis.expr.operations as ops\nimport ibis.expr.rules as rlz\nimport ibis.expr.types as i... | [
{
"content": "import warnings\nfrom datetime import date, datetime\nfrom io import StringIO\n\nimport ibis\nimport ibis.common.exceptions as com\nimport ibis.common.geospatial as geo\nimport ibis.expr.datatypes as dt\nimport ibis.expr.operations as ops\nimport ibis.expr.rules as rlz\nimport ibis.expr.types as i... | diff --git a/ibis/mapd/operations.py b/ibis/mapd/operations.py
index 2ab284bcfb7b..30edbff68e1a 100644
--- a/ibis/mapd/operations.py
+++ b/ibis/mapd/operations.py
@@ -825,6 +825,7 @@ def formatter(translator, expr):
# GENERAL
_general_ops = {
ops.Literal: literal,
+ ops.NullLiteral: lambda *args: 'NULL',
... |
kornia__kornia-2049 | Crash for Resize augmentation on masks
### Describe the bug
The default `extra_args` added for operating on masks cause the underlying `torch.nn.functional.interpolate` to crash - bad combination of `interpolation` mode Resample.NEAREST and `align_corners=True`. Interpolate wants to not be set (None) when using near... | [
{
"content": "from typing import Any, Dict, Optional, Tuple, Union\n\nimport torch\n\nfrom kornia.augmentation import random_generator as rg\nfrom kornia.augmentation._2d.geometric.base import GeometricAugmentationBase2D\nfrom kornia.constants import Resample\nfrom kornia.core import Tensor\nfrom kornia.geometr... | [
{
"content": "from typing import Any, Dict, Optional, Tuple, Union\n\nimport torch\n\nfrom kornia.augmentation import random_generator as rg\nfrom kornia.augmentation._2d.geometric.base import GeometricAugmentationBase2D\nfrom kornia.constants import Resample\nfrom kornia.core import Tensor\nfrom kornia.geometr... | diff --git a/kornia/augmentation/_2d/geometric/resize.py b/kornia/augmentation/_2d/geometric/resize.py
index ce03db35d0..ddc1f39868 100644
--- a/kornia/augmentation/_2d/geometric/resize.py
+++ b/kornia/augmentation/_2d/geometric/resize.py
@@ -64,7 +64,9 @@ def apply_transform(
input[i : i + 1, :, y1:y2... |
bridgecrewio__checkov-3846 | Checkov action fails for certain modules due to what seems like datatype issue
Facing an issue when checkov runs this module `"terraform-aws-modules/eks/aws"`. Specifically for `metadata_options` and `remote_access`. Seems like the issue is in the code below where checkov is expecting a list but gets a dictionary so it... | [
{
"content": "import json\nimport logging\nfrom typing import Dict, List, Union, Any\n\nfrom checkov.common.util.type_forcers import convert_str_to_bool\nfrom checkov.common.util.parser_utils import eval_string, split_merge_args, string_to_native, to_string\n\n#\n# Functions defined in this file implement terra... | [
{
"content": "import json\nimport logging\nfrom typing import Dict, List, Union, Any\n\nfrom checkov.common.util.type_forcers import convert_str_to_bool\nfrom checkov.common.util.parser_utils import eval_string, split_merge_args, string_to_native, to_string\n\n#\n# Functions defined in this file implement terra... | diff --git a/checkov/terraform/parser_functions.py b/checkov/terraform/parser_functions.py
index a9558ecb43..4eec9e37d7 100644
--- a/checkov/terraform/parser_functions.py
+++ b/checkov/terraform/parser_functions.py
@@ -199,7 +199,8 @@ def process_dynamic_values(conf: Dict[str, List[Any]]) -> bool:
conf... |
spacetelescope__jwql-84 | Make dev conda environment more general
We should make our `dev` `conda` environment more generalized so that it can be used on the new test server.
| [
{
"content": "import numpy as np\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nVERSION = '0.4.0'\n\nAUTHORS = 'Matthew Bourque, Sara Ogaz, Joe Filippazzo, Bryan Hilbert, Misty Cracraft, Graham Kanarek'\nAUTHORS += 'Johannes Sahlmann, Lauren Chambers, Catherine Martlin'\n\nREQUIRES = ['a... | [
{
"content": "import numpy as np\nfrom setuptools import setup\nfrom setuptools import find_packages\n\nVERSION = '0.4.0'\n\nAUTHORS = 'Matthew Bourque, Sara Ogaz, Joe Filippazzo, Bryan Hilbert, Misty Cracraft, Graham Kanarek'\nAUTHORS += 'Johannes Sahlmann, Lauren Chambers, Catherine Martlin'\n\nREQUIRES = ['a... | diff --git a/Jenkinsfile b/Jenkinsfile
index 914003929..0ccae308a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -5,20 +5,17 @@ if (utils.scm_checkout()) return
bc0 = new BuildConfig()
bc0.nodetype = "linux-stable"
bc0.build_mode = "debug"
-bc0.build_cmds = ["conda install -q -y python=3.0",
- "conda... |
ckan__ckan-3047 | Migration 021 missing after pip install
### CKAN Version if known (or site URL)
CKAN 2.5.2
### Please describe the expected behaviour
After installation of CKAN, the files 021_postgres_downgrade.sql, 021_postgres_upgrade.sql, 021_postgresql_downgrade.sql, and 021_postgresql_upgrade.sql should be in the migration/vers... | [
{
"content": "# Avoid problem releasing to pypi from vagrant\nimport os\nif os.environ.get('USER', '') == 'vagrant':\n del os.link\n\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, fi... | [
{
"content": "# Avoid problem releasing to pypi from vagrant\nimport os\nif os.environ.get('USER', '') == 'vagrant':\n del os.link\n\ntry:\n from setuptools import setup, find_packages\nexcept ImportError:\n from ez_setup import use_setuptools\n use_setuptools()\n from setuptools import setup, fi... | diff --git a/MANIFEST.in b/MANIFEST.in
index da93fc3ad19..37e122f5903 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -17,4 +17,6 @@ include ckanext/datastore/set_permissions.sql
prune .git
include CHANGELOG.txt
include ckan/migration/migrate.cfg
+include ckan/migration/README
+recursive-include ckan/migration/version... |
cupy__cupy-3140 | Incorrect behavior with empty arrays for `linalg.qr` and `linalg.svd`
`qr` and `svd` routines raise `CUSOLVERError: CUSOLVER_STATUS_INVALID_VALUE` for zero-sized input arrays.
NumPy supports this kind of input for `qr`, `svd` since 1.16
https://github.com/numpy/numpy/blob/master/doc/release/1.16.0-notes.rst#linalglst... | [
{
"content": "import numpy\n\nimport cupy\nfrom cupy.cuda import cublas\nfrom cupy.cuda import cusolver\nfrom cupy.cuda import device\nfrom cupy.linalg import util\n\n\ndef _lu_factor(a_t, dtype):\n \"\"\"Compute pivoted LU decomposition.\n\n Decompose a given batch of square matrices. Inputs and outputs ... | [
{
"content": "import numpy\n\nimport cupy\nfrom cupy.cuda import cublas\nfrom cupy.cuda import cusolver\nfrom cupy.cuda import device\nfrom cupy.linalg import util\n\n\ndef _lu_factor(a_t, dtype):\n \"\"\"Compute pivoted LU decomposition.\n\n Decompose a given batch of square matrices. Inputs and outputs ... | diff --git a/cupy/linalg/decomposition.py b/cupy/linalg/decomposition.py
index 6529da9378e..71a45b4e707 100644
--- a/cupy/linalg/decomposition.py
+++ b/cupy/linalg/decomposition.py
@@ -357,7 +357,16 @@ def svd(a, full_matrices=True, compute_uv=True):
m, n = a.shape
x = a.transpose().astype(a_dtype, or... |
cowrie__cowrie-1095 | exceptions.IndexError: list index out of range
I have recently deployed cowrie on CentOS Linux 7.5 host and I have seen few of following exceptions occurring.
```
2018-08-13T09:46:46.286838+0300 [CowrieTelnetTransport,68,[redacted]] login attempt [root/] succeeded
2018-08-13T09:46:46.289616+0300 [CowrieTelnetTranspo... | [
{
"content": "# Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\n\"\"\"\nThis module contains code to run a command\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport os\nimport re\nimport stat\nimport sys\nimport time\n\nfrom twisted... | [
{
"content": "# Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com>\n# See the COPYRIGHT file for more information\n\n\"\"\"\nThis module contains code to run a command\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport os\nimport re\nimport stat\nimport sys\nimport time\n\nfrom twisted... | diff --git a/src/cowrie/shell/command.py b/src/cowrie/shell/command.py
index 428de58806..02f79c5345 100644
--- a/src/cowrie/shell/command.py
+++ b/src/cowrie/shell/command.py
@@ -43,6 +43,9 @@ def __init__(self, protocol, *args):
# MS-DOS style redirect handling, inside the command
# TODO: handle >>, ... |
ray-project__ray-5097 | [tune] PBT perturbing after first iteration KeyError
<!--
General questions should be asked on the mailing list ray-dev@googlegroups.com.
Questions about how to use Ray should be asked on
[StackOverflow](https://stackoverflow.com/questions/tagged/ray).
Before submitting an issue, please fill out the following for... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport copy\nimport itertools\nimport logging\nimport json\nimport math\nimport os\nimport random\nimport shutil\n\nfrom ray.tune.error import TuneError\nfrom ray.tune.result import TR... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport copy\nimport itertools\nimport logging\nimport json\nimport math\nimport os\nimport random\nimport shutil\n\nfrom ray.tune.error import TuneError\nfrom ray.tune.result import TR... | diff --git a/python/ray/tune/schedulers/pbt.py b/python/ray/tune/schedulers/pbt.py
index f8f7ce7dc8f8a..31259c41dd1f0 100644
--- a/python/ray/tune/schedulers/pbt.py
+++ b/python/ray/tune/schedulers/pbt.py
@@ -268,8 +268,8 @@ def _log_config_on_step(self, trial_state, new_state, trial,
"pbt_policy_" + trial... |
openfun__richie-1770 | Simple text input doesn't allow links to set target
## Feature Request
**Is your feature request related to a problem or unsupported use case? Please describe.**
When adding a simple text widget a course page, the only options available to create a link are the ones described in the image:
.
### Changed
+- CKEditor basic configuration should allow to include target on anchors
+ for course fields: assessment, format and p... |
nilearn__nilearn-1102 | colorbar in plot_connectome with different edge_cmap
Hi,
I am getting this error
```
> File "/Users/Ralf/anaconda/lib/python2.7/site-packages/nilearn/plotting/displays.py", line 659, in _show_colorbar
> bounds = np.linspace(norm.vmin, norm.vmax, our_cmap.N)
>
> AttributeError: 'str' object has no attribute 'N'
... | [
{
"content": "\"\"\"\nThe Slicer classes.\n\nThe main purpose of these classes is to have auto adjust of axes size to\nthe data with different layout of cuts.\n\"\"\"\n\nimport collections\nimport numbers\n\nimport numpy as np\nfrom scipy import sparse, stats\n\nfrom ..image import new_img_like\nfrom .. import ... | [
{
"content": "\"\"\"\nThe Slicer classes.\n\nThe main purpose of these classes is to have auto adjust of axes size to\nthe data with different layout of cuts.\n\"\"\"\n\nimport collections\nimport numbers\n\nimport numpy as np\nfrom scipy import sparse, stats\n\nfrom ..image import new_img_like\nfrom .. import ... | diff --git a/nilearn/plotting/displays.py b/nilearn/plotting/displays.py
index 165e4e0a27..43ffadd51a 100644
--- a/nilearn/plotting/displays.py
+++ b/nilearn/plotting/displays.py
@@ -650,7 +650,7 @@ def _show_colorbar(self, cmap, norm, threshold=None):
self._colorbar_margin['bottom']... |
easybuilders__easybuild-framework-2914 | Error "_set_blas_variables: blas_lib not set" in EasyBuild 3.9.1
I am getting the following error when I am trying to build LAMMPS with EasyBuild 3.9.1.
For an extended dry run, the following is included in the logs:
```
WARNING: ignoring error '_set_blas_variables: BLAS_LIB not set'
```
Using EasyBuild 3.8.1 t... | [
{
"content": "##\n# Copyright 2014-2019 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F... | [
{
"content": "##\n# Copyright 2014-2019 Ghent University\n#\n# This file is part of EasyBuild,\n# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n# with support of Ghent University (http://ugent.be/hpc),\n# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n# F... | diff --git a/easybuild/toolchains/linalg/libsci.py b/easybuild/toolchains/linalg/libsci.py
index 6a1dd8ef4c..6f003fc8f7 100644
--- a/easybuild/toolchains/linalg/libsci.py
+++ b/easybuild/toolchains/linalg/libsci.py
@@ -48,8 +48,8 @@ class LibSci(LinAlg):
# no need to specify libraries, compiler driver takes care... |
flask-admin__flask-admin-1385 | Missing translation
There is a missing translation with this string: `Please select model`.
Babel doesn't get it because it's not using gettext directly:
> `placeholder = gettext(field.loader.options.get('placeholder', 'Please select model'))`
| [
{
"content": "from flask import json\nfrom jinja2 import escape\nfrom wtforms.widgets import HTMLString, html_params\n\nfrom flask_admin._compat import as_unicode, text_type\nfrom flask_admin.babel import gettext\nfrom flask_admin.helpers import get_url\nfrom flask_admin.form import RenderTemplateWidget\n\n\ncl... | [
{
"content": "from flask import json\nfrom jinja2 import escape\nfrom wtforms.widgets import HTMLString, html_params\n\nfrom flask_admin._compat import as_unicode, text_type\nfrom flask_admin.babel import gettext\nfrom flask_admin.helpers import get_url\nfrom flask_admin.form import RenderTemplateWidget\n\n\ncl... | diff --git a/flask_admin/model/widgets.py b/flask_admin/model/widgets.py
index b664f8b8c..1ccb858bb 100644
--- a/flask_admin/model/widgets.py
+++ b/flask_admin/model/widgets.py
@@ -58,7 +58,7 @@ def __call__(self, field, **kwargs):
kwargs['value'] = data[0]
kwargs['data-json'] = json.d... |
googleapis__google-api-python-client-1824 | google-api-python-client 2.6.0, 2.7.0, 2.8.0, 2.9.0 cannot work with google-auth 1.18.0 and earlier
These versions of `google-api-python-client` requires `google-auth>=1.16.0,<2dev`. However, some of the code cannot work with `google-auth` 1.18.0 and earlier because`google.auth.load_credentials_from_file()` and `google... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | [
{
"content": "# Copyright 2014 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unles... | diff --git a/samples/compute/requirements.txt b/samples/compute/requirements.txt
index e9b14cef2e4..6bea631c16a 100644
--- a/samples/compute/requirements.txt
+++ b/samples/compute/requirements.txt
@@ -1,3 +1,3 @@
google-api-python-client==2.49.0
-google-auth==2.6.6
+google-auth==2.8.0
google-auth-httplib2==0.1.0
diff... |
scipy__scipy-3708 | Inconsistent exceptions raised by scipy.io.loadmat
Depending on whether loadmat is passed a non-existent filename with or without the ".mat" extension, the exception raised chages from IOError to FileNotFoundError. I believe an easy patch would be to simply change `scipy.io.matlab.mio._open_file` to re-raise rather th... | [
{
"content": "\"\"\"\nModule for reading and writing matlab (TM) .mat files\n\"\"\"\n# Authors: Travis Oliphant, Matthew Brett\n\nfrom __future__ import division, print_function, absolute_import\n\nimport numpy as np\n\nfrom scipy.lib.six import string_types\n\nfrom .miobase import get_matfile_version, docfille... | [
{
"content": "\"\"\"\nModule for reading and writing matlab (TM) .mat files\n\"\"\"\n# Authors: Travis Oliphant, Matthew Brett\n\nfrom __future__ import division, print_function, absolute_import\n\nimport numpy as np\n\nfrom scipy.lib.six import string_types\n\nfrom .miobase import get_matfile_version, docfille... | diff --git a/scipy/io/matlab/mio.py b/scipy/io/matlab/mio.py
index 9fcfba5fe62c..a5108b3c4475 100644
--- a/scipy/io/matlab/mio.py
+++ b/scipy/io/matlab/mio.py
@@ -24,8 +24,11 @@ def _open_file(file_like, appendmat):
except IOError as e:
if appendmat and not file_like.endswith('.mat'):
... |
networkx__networkx-2924 | For LFR Benchmark Graph Generation, the docs do not match the parameter requirements
A user reading the online or inline documentation will read the following potential raised errors when using the LFR benchmark graph generation function:
```
Raises
------
NetworkXError
If any of the parameters do ... | [
{
"content": "# generators.py - functions for generating graphs with community structure\n#\n# Copyright 2011 Ben Edwards <bedwards@cs.unm.edu>.\n# Copyright 2011 Aric Hagberg <hagberg@lanl.gov>\n# Copyright 2015 NetworkX developers.\n#\n# This file is part of NetworkX.\n#\n# NetworkX is distributed under a BSD... | [
{
"content": "# generators.py - functions for generating graphs with community structure\n#\n# Copyright 2011 Ben Edwards <bedwards@cs.unm.edu>.\n# Copyright 2011 Aric Hagberg <hagberg@lanl.gov>\n# Copyright 2015 NetworkX developers.\n#\n# This file is part of NetworkX.\n#\n# NetworkX is distributed under a BSD... | diff --git a/networkx/algorithms/community/community_generators.py b/networkx/algorithms/community/community_generators.py
index 15d8db58498..822c8ae5107 100644
--- a/networkx/algorithms/community/community_generators.py
+++ b/networkx/algorithms/community/community_generators.py
@@ -268,7 +268,7 @@ def LFR_benchmark_g... |
jupyterhub__jupyterhub-4503 | Jupyter 4.0.1 - Unable to access filesystem outside of home directory/notebook directory
<!-- Thank you for contributing. These HTML comments will not render in the issue, but you can delete them once you've read them if you prefer! -->
### Bug description
I've also posted to Discord. please forgive me as this is ... | [
{
"content": "\"\"\"\nIntegrate JupyterHub auth with Jupyter Server as a Server Extension\n\nInstead of earlier versions, implemented via subclassing jupyter-notebook's NotebookApp.\nThis code runs only in each user's Jupyter Server process.\n\nJupyter Server 2 provides two new APIs:\n\n- IdentityProvider, whic... | [
{
"content": "\"\"\"\nIntegrate JupyterHub auth with Jupyter Server as a Server Extension\n\nInstead of earlier versions, implemented via subclassing jupyter-notebook's NotebookApp.\nThis code runs only in each user's Jupyter Server process.\n\nJupyter Server 2 provides two new APIs:\n\n- IdentityProvider, whic... | diff --git a/jupyterhub/singleuser/extension.py b/jupyterhub/singleuser/extension.py
index 3859b6a97a..489bf1efed 100644
--- a/jupyterhub/singleuser/extension.py
+++ b/jupyterhub/singleuser/extension.py
@@ -483,6 +483,11 @@ def load_config_file(self):
cfg.answer_yes = True
self.config.FileContentsMana... |
hedyorg__hedy-1663 | [BUG] Achievements are stored double in the database
**Describe the bug**
For some unknown reason we store achievements double, resulting in duplicate values. The issue occurs when we achieve new achievements and within the same session achieve some new achievements. At the second point the first achievements are stor... | [
{
"content": "from utils import timems, times\nfrom datetime import date\nfrom . import dynamo\nimport functools\nimport operator\n\n\nstorage = dynamo.AwsDynamoStorage.from_env() or dynamo.MemoryStorage('dev_database.json')\n\nUSERS = dynamo.Table(storage, 'users', 'username', indexed_fields=[dynamo.Key('email... | [
{
"content": "from utils import timems, times\nfrom datetime import date\nfrom . import dynamo\nimport functools\nimport operator\n\n\nstorage = dynamo.AwsDynamoStorage.from_env() or dynamo.MemoryStorage('dev_database.json')\n\nUSERS = dynamo.Table(storage, 'users', 'username', indexed_fields=[dynamo.Key('email... | diff --git a/website/database.py b/website/database.py
index 28dab50e556..d5588b2cdd3 100644
--- a/website/database.py
+++ b/website/database.py
@@ -341,7 +341,6 @@ def add_achievement_to_username(self, username, achievement):
user_achievements['achieved'] = []
if achievement not in user_achieveme... |
scoutapp__scout_apm_python-329 | Metadata should have language / language_version fields
Standardizing metadata between the various agents - put a fixed `python` string in `language`, and the version (`3.4.1` or whatever) in `language_version`
Keep the existing fields for now. Need to ensure that the CoreAgent handles them nicely when missing.
| [
{
"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport datetime as dt\nimport logging\nimport sys\nfrom os import getpid\n\nfrom scout_apm.core.commands import ApplicationEvent\nfrom scout_apm.core.config import scout_config\nfrom scout_apm.cor... | [
{
"content": "# coding=utf-8\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport datetime as dt\nimport logging\nimport sys\nfrom os import getpid\n\nfrom scout_apm.core.commands import ApplicationEvent\nfrom scout_apm.core.config import scout_config\nfrom scout_apm.cor... | diff --git a/src/scout_apm/core/metadata.py b/src/scout_apm/core/metadata.py
index 7a6ace5e..0bd6ba29 100644
--- a/src/scout_apm/core/metadata.py
+++ b/src/scout_apm/core/metadata.py
@@ -29,6 +29,8 @@ def data(cls):
try:
data = {
"language": "python",
+ "language_ve... |
piskvorky__gensim-2331 | Unimportant 'Warning' in phrases.py
Upon 1st use of `PhrasesTransformation.__getitem__()`, there's a UserWarning issued "For a faster implementation, use the gensim.models.phrases.Phraser class". See:
https://github.com/RaRe-Technologies/gensim/blob/7fca36f3eb0df70e5f823e2fb4852193b4ad7393/gensim/models/phrases.py#L... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"Automatically detect common phrases -- multi-word expressions / word n-grams -- from a stream of sentences.\n\nInspired by:\n\n* `Mikolov, et. al: \"Distributed Repre... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\"\"\"Automatically detect common phrases -- multi-word expressions / word n-grams -- from a stream of sentences.\n\nInspired by:\n\n* `Mikolov, et. al: \"Distributed Repre... | diff --git a/gensim/models/phrases.py b/gensim/models/phrases.py
index cd27b737a6..d3f0a7e7ed 100644
--- a/gensim/models/phrases.py
+++ b/gensim/models/phrases.py
@@ -39,7 +39,6 @@
import sys
import os
import logging
-import warnings
from collections import defaultdict
import functools as ft
import itertools as i... |
pypi__warehouse-6564 | Add sitemap, link to in footer
WCAG 2.4.5:
> Multiple ways are available to find other web pages on the site - at least two of: a list of
related pages, table of contents, site map, site search, or list of all available web pages.
The quickest way for us to meet this criteria is to add a basic sitemap to PyPI an... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | [
{
"content": "# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, softw... | diff --git a/tests/unit/test_routes.py b/tests/unit/test_routes.py
index 8dc0c7aba96d..7813dbfd7947 100644
--- a/tests/unit/test_routes.py
+++ b/tests/unit/test_routes.py
@@ -327,6 +327,7 @@ def add_policy(name, filename):
]
assert config.add_template_view.calls == [
+ pretend.call("sitemap", "/sitem... |
python__mypy-16637 | Generate report (mypy.xml) fails when running mypy in parallel with another job
**Bug Report**
In `pyproject.toml` I've configured `mypy` and `coverage` to generate their reports in the same directory: `reports`. In Gitlab CI I'm running 2 jobs in parallel to run `mypy` and `coverage`. Sometimes the `mypy` jobs fail... | [
{
"content": "\"\"\"Utility functions with no non-trivial dependencies.\"\"\"\n\nfrom __future__ import annotations\n\nimport hashlib\nimport io\nimport os\nimport pathlib\nimport re\nimport shutil\nimport sys\nimport time\nfrom importlib import resources as importlib_resources\nfrom typing import IO, Callable,... | [
{
"content": "\"\"\"Utility functions with no non-trivial dependencies.\"\"\"\n\nfrom __future__ import annotations\n\nimport hashlib\nimport io\nimport os\nimport pathlib\nimport re\nimport shutil\nimport sys\nimport time\nfrom importlib import resources as importlib_resources\nfrom typing import IO, Callable,... | diff --git a/mypy/util.py b/mypy/util.py
index 7a13de427e8e..be8a22d08a27 100644
--- a/mypy/util.py
+++ b/mypy/util.py
@@ -314,10 +314,9 @@ def write_junit_xml(
) -> None:
xml = _generate_junit_contents(dt, serious, messages_by_file, version, platform)
- # checks for a directory structure in path and creates... |
zestedesavoir__zds-site-4218 | [beta][v23] Erreur 500 via opensearch
Bonjour,
**Lien incriminé** : https://beta.zestedesavoir.com/rechercher/opensearch.xml
**Problème** : j'ai une erreur 500 en allant sur cette url.
| [
{
"content": "# coding: utf-8\nimport operator\n\nfrom elasticsearch_dsl import Search\nfrom elasticsearch_dsl.query import Match, MultiMatch, FunctionScore, Term, Terms, Range\n\nfrom django.conf import settings\nfrom django.core.exceptions import PermissionDenied\nfrom django.contrib import messages\nfrom dja... | [
{
"content": "# coding: utf-8\nimport operator\n\nfrom elasticsearch_dsl import Search\nfrom elasticsearch_dsl.query import Match, MultiMatch, FunctionScore, Term, Terms, Range\n\nfrom django.conf import settings\nfrom django.core.exceptions import PermissionDenied\nfrom django.contrib import messages\nfrom dja... | diff --git a/doc/source/back-end-code/searchv2.rst b/doc/source/back-end-code/searchv2.rst
index 17dc39d87d..a31835f3f3 100644
--- a/doc/source/back-end-code/searchv2.rst
+++ b/doc/source/back-end-code/searchv2.rst
@@ -1,6 +1,6 @@
-===========================
-La recherche (``search2/``)
-===========================
+=... |
iterative__dvc-2225 | dvc add causing "ERROR: failed to download" after dvc remove and gc
Hi, I am using **dvc 0.50.1**
I found if I do **dvc add** after **dvc remove** and **dvc gc**. It leads to an error as the following:
```
$dvc add data.csv
$dvc remove data.csv.dvc
$rm data.csv.dvc
$dvc gc
$dvc add data.csv
ERROR: failed t... | [
{
"content": "from __future__ import unicode_literals\n\nfrom dvc.utils.compat import str, basestring, urlparse, fspath_py35, makedirs\n\nimport os\nimport json\nimport logging\nimport tempfile\nimport itertools\nfrom contextlib import contextmanager\nfrom operator import itemgetter\nfrom multiprocessing import... | [
{
"content": "from __future__ import unicode_literals\n\nfrom dvc.utils.compat import str, basestring, urlparse, fspath_py35, makedirs\n\nimport os\nimport json\nimport logging\nimport tempfile\nimport itertools\nfrom contextlib import contextmanager\nfrom operator import itemgetter\nfrom multiprocessing import... | diff --git a/dvc/remote/base.py b/dvc/remote/base.py
index 58cf479950..f7ede2e811 100644
--- a/dvc/remote/base.py
+++ b/dvc/remote/base.py
@@ -242,6 +242,17 @@ def get_checksum(self, path_info):
return None
checksum = self.state.get(path_info)
+
+ # If we have dir checksum in state db, bu... |
django-extensions__django-extensions-1786 | Add Python 3.11 support
This pull requests adds Python 3.11 to Github actions and classifiers. It mitigates the issue with `importlib_metatdata` as described in #1778.
Linting fails due to https://github.com/django-extensions/django-extensions/pull/1777
| [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nBased entirely on Django's own ``setup.py``.\n\"\"\"\nimport os\nimport sys\nimport setuptools\nfrom distutils.command.install import INSTALL_SCHEMES\nfrom distutils.command.install_data import install_data\nfrom setuptools import setup\n\n\nclass osx_install_data(... | [
{
"content": "# -*- coding: utf-8 -*-\n\"\"\"\nBased entirely on Django's own ``setup.py``.\n\"\"\"\nimport os\nimport sys\nimport setuptools\nfrom distutils.command.install import INSTALL_SCHEMES\nfrom distutils.command.install_data import install_data\nfrom setuptools import setup\n\n\nclass osx_install_data(... | diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml
index 3abc67892..91c17a562 100644
--- a/.github/workflows/pytest.yml
+++ b/.github/workflows/pytest.yml
@@ -18,6 +18,7 @@ jobs:
- 3.8
- 3.9
- "3.10"
+ - "3.11"
- "pypy3.9"
tox-django-ve... |
searxng__searxng-3135 | Custom Links in the Footer
<!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG -->
**Is your feature request related to a problem? Please describe.**
No.
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
**Describe the solution you'd li... | [
{
"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n# lint: pylint\n\"\"\"Implementation of the default settings.\n\n\"\"\"\n\nimport typing\nimport numbers\nimport errno\nimport os\nimport logging\nfrom base64 import b64decode\nfrom os.path import dirname, abspath\n\nfrom .sxng_locales import sxng_loca... | [
{
"content": "# SPDX-License-Identifier: AGPL-3.0-or-later\n# lint: pylint\n\"\"\"Implementation of the default settings.\n\n\"\"\"\n\nimport typing\nimport numbers\nimport errno\nimport os\nimport logging\nfrom base64 import b64decode\nfrom os.path import dirname, abspath\n\nfrom .sxng_locales import sxng_loca... | diff --git a/searx/searxng.msg b/searx/searxng.msg
index 17e49367c60..b3d33e1f2ab 100644
--- a/searx/searxng.msg
+++ b/searx/searxng.msg
@@ -11,6 +11,7 @@ __all__ = [
'CATEGORY_NAMES',
'CATEGORY_GROUPS',
'STYLE_NAMES',
+ 'BRAND_CUSTOM_LINKS',
]
CONSTANT_NAMES = {
@@ -51,3 +52,8 @@ STYLE_NAMES = {
... |
getnikola__nikola-3506 | Replace ghp-import2 by ghp-import?
c.f. comments by author of ghp-import2 @ionelmc from https://github.com/conda-forge/staged-recipes/pull/13605#issuecomment-757556835
> Hello everyone, ghp-import2 is basically ghp-import + proper packaging and a couple integration tests. Looks like ghp-import is maintained as of la... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2014-2021 Puneeth Chaganti and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including ... | [
{
"content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2014-2021 Puneeth Chaganti and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including ... | diff --git a/CHANGES.txt b/CHANGES.txt
index 6dcdf0f3a1..34cabab1df 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -18,6 +18,13 @@ Bugfixes
* Fix an ``UnboundLocalError`` crash in ``nikola deploy`` (Isssue
#3479)
+Other
+-----
+
+* For ``nikola github_deploy``, the ``ghp-import`` PyPI package is now
+ recommended... |
nltk__nltk-2225 | Minor typo in the docstring of common_contexts()
The parameter name is `words`, but the docstring uses `word`.

| [
{
"content": "# Natural Language Toolkit: Texts\n#\n# Copyright (C) 2001-2019 NLTK Project\n# Author: Steven Bird <stevenbird1@gmail.com>\n# Edward Loper <edloper@gmail.com>\n# URL: <http://nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"\"\nThis module brings together a variety of NLTK fu... | [
{
"content": "# Natural Language Toolkit: Texts\n#\n# Copyright (C) 2001-2019 NLTK Project\n# Author: Steven Bird <stevenbird1@gmail.com>\n# Edward Loper <edloper@gmail.com>\n# URL: <http://nltk.org/>\n# For license information, see LICENSE.TXT\n\n\"\"\"\nThis module brings together a variety of NLTK fu... | diff --git a/nltk/text.py b/nltk/text.py
index 0fa9c3cd9d..f7756b2c7c 100644
--- a/nltk/text.py
+++ b/nltk/text.py
@@ -483,8 +483,8 @@ def common_contexts(self, words, num=20):
Find contexts where the specified words appear; list
most frequent common contexts first.
- :param word: The word us... |
holoviz__panel-2611 | Change fast theme button color back to white
After upgrading to Panel 0.12.0 the fast theme button switched to the red color

I would propose switching it back to white because 1) It looks better 2) rece... | [
{
"content": "\"\"\"\nFunctionality for styling according to Fast.design\n\"\"\"\nimport pathlib\nimport param\n\nfrom bokeh.themes import Theme as _BkTheme\n\nfrom ..theme import DarkTheme, DefaultTheme\n\n_ROOT = pathlib.Path(__file__).parent / \"css\"\n\nCOLLAPSED_SVG_ICON = \"\"\"\n<svg style=\"stroke: var(... | [
{
"content": "\"\"\"\nFunctionality for styling according to Fast.design\n\"\"\"\nimport pathlib\nimport param\n\nfrom bokeh.themes import Theme as _BkTheme\n\nfrom ..theme import DarkTheme, DefaultTheme\n\n_ROOT = pathlib.Path(__file__).parent / \"css\"\n\nCOLLAPSED_SVG_ICON = \"\"\"\n<svg style=\"stroke: var(... | diff --git a/doc/_static/logo_stacked_currentColor.svg b/doc/_static/logo_stacked_currentColor.svg
new file mode 100644
index 0000000000..726b8e1814
--- /dev/null
+++ b/doc/_static/logo_stacked_currentColor.svg
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org... |
saleor__saleor-4824 | Users can create the same address multiple times
### Steps to reproduce the problem
1. Start checkout
1. Set a shipping address A
1. Set a billing address B
1. Place the order
1. Go to your account details
1. Edit the address B to have the same information than A
1. Checkout with A or B (or re-create it through ... | [
{
"content": "import os\nimport os.path\nimport random\n\nfrom django.conf import settings\nfrom django.core.files import File\n\nfrom ..checkout import AddressType\n\nAVATARS_PATH = os.path.join(\n settings.PROJECT_ROOT, \"saleor\", \"static\", \"images\", \"avatars\"\n)\n\n\ndef store_user_address(user, ad... | [
{
"content": "import os\nimport os.path\nimport random\n\nfrom django.conf import settings\nfrom django.core.files import File\n\nfrom ..checkout import AddressType\n\nAVATARS_PATH = os.path.join(\n settings.PROJECT_ROOT, \"saleor\", \"static\", \"images\", \"avatars\"\n)\n\n\ndef store_user_address(user, ad... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ebae483afd5..38d19db39e9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -92,6 +92,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Replace Pipenv with Poetry - #3894 by @michaljelonek
- `productVariant` nodes now require `manage_pr... |
rootpy__rootpy-489 | List index out of range
I'm in ipython, the latest released rootpy, and I get this when I try to access a TTree called `composed`.
``` ipython
In [9]: f.composed
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipyt... | [
{
"content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\n\"\"\"\nThis module handles creation of the user-data area\n\"\"\"\nfrom __future__ import absolute_import\n\nimport os\nimport sys\nimport tempfile\nimport atexit\nfrom os.path import expandus... | [
{
"content": "# Copyright 2012 the rootpy developers\n# distributed under the terms of the GNU General Public License\n\"\"\"\nThis module handles creation of the user-data area\n\"\"\"\nfrom __future__ import absolute_import\n\nimport os\nimport sys\nimport tempfile\nimport atexit\nfrom os.path import expandus... | diff --git a/rootpy/userdata.py b/rootpy/userdata.py
index ce038524..02641372 100644
--- a/rootpy/userdata.py
+++ b/rootpy/userdata.py
@@ -48,8 +48,14 @@ def ensure_directory(variable, default):
DATA_ROOT = CONFIG_ROOT = None
-if (os.getenv('ROOTPY_GRIDMODE') not in ('1', 'true') and
- not sys.argv[0].endsw... |
getsentry__sentry-5077 | extend auto-resolve timeframe to be more than 7 days (up to 90 days will be nice)
| [
{
"content": "from __future__ import absolute_import\n\nimport re\n\nfrom django import forms\nfrom django.contrib import messages\nfrom django.core.urlresolvers import reverse\nfrom django.http import HttpResponseRedirect\nfrom django.utils.safestring import mark_safe\nfrom django.utils.translation import uget... | [
{
"content": "from __future__ import absolute_import\n\nimport re\n\nfrom django import forms\nfrom django.contrib import messages\nfrom django.core.urlresolvers import reverse\nfrom django.http import HttpResponseRedirect\nfrom django.utils.safestring import mark_safe\nfrom django.utils.translation import uget... | diff --git a/src/sentry/web/frontend/project_settings.py b/src/sentry/web/frontend/project_settings.py
index d5b83e8975f1ba..88a17f42f35e52 100644
--- a/src/sentry/web/frontend/project_settings.py
+++ b/src/sentry/web/frontend/project_settings.py
@@ -50,7 +50,7 @@ class EditProjectForm(forms.ModelForm):
requir... |
ansible__ansible-modules-core-413 | Check mode for pip does not work in virtualenv
##### Issue Type:
Bug Report
##### Ansible Version:
ansible 1.8.1
configured module search path = None
##### Environment:
Fedora 20 and RHEL 7
##### Summary:
The check mode for the pip module when using a virtualenv always returns changed.
##### Steps To Reproduce:
... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Matt Wright <matt@nobien.net>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, ... | [
{
"content": "#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# (c) 2012, Matt Wright <matt@nobien.net>\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, ... | diff --git a/packaging/language/pip.py b/packaging/language/pip.py
index 17f52c00398..3ba93185a31 100644
--- a/packaging/language/pip.py
+++ b/packaging/language/pip.py
@@ -314,7 +314,7 @@ def main():
this_dir = os.path.join(this_dir, chdir)
if module.check_mode:
- if env or extra_args or require... |
bookwyrm-social__bookwyrm-2448 | Add review count to book search listing to concentrate reviews
Often when I'm searching for a book to e.g. mark as having started reading, or to figure out if any other wyrms have reviewed it, I'll have more than one search result.
\n\n\n@register.filter(name=\"book_description\")\ndef get_book_description(book):\n \"\"\"use the work's text if the book doesn't have it\"\"\"\n if book.description:\n return book.descripti... | [
{
"content": "\"\"\" template filters \"\"\"\nfrom django import template\nfrom bookwyrm import models\n\n\nregister = template.Library()\n\n\n@register.filter(name=\"review_count\")\ndef get_review_count(book):\n \"\"\"how many reviews?\"\"\"\n return models.Review.objects.filter(deleted=False, book=book... | diff --git a/bookwyrm/templates/search/book.html b/bookwyrm/templates/search/book.html
index ccb2f2ddb5..f44a55026f 100644
--- a/bookwyrm/templates/search/book.html
+++ b/bookwyrm/templates/search/book.html
@@ -1,5 +1,7 @@
{% extends 'search/layout.html' %}
{% load i18n %}
+{% load humanize %}
+{% load book_display_t... |
praw-dev__praw-1431 | KeyError on 400 request
**Describe the bug**
<!-- A clear and concise description of what the bug is. -->
While trying to check the value of `/api/validate_submission_field`, I gave invalid request data (a missing field). I got a KeyError instead of the expected error.
**To Reproduce**
Steps to reproduce the be... | [
{
"content": "\"\"\"Provide the Reddit class.\"\"\"\nimport configparser\nimport os\nimport re\nimport time\nfrom itertools import islice\nfrom logging import getLogger\nfrom typing import IO, Any, Dict, Generator, Iterable, Optional, Type, Union\nfrom warnings import warn\n\nfrom prawcore import (\n Authori... | [
{
"content": "\"\"\"Provide the Reddit class.\"\"\"\nimport configparser\nimport os\nimport re\nimport time\nfrom itertools import islice\nfrom logging import getLogger\nfrom typing import IO, Any, Dict, Generator, Iterable, Optional, Type, Union\nfrom warnings import warn\n\nfrom prawcore import (\n Authori... | diff --git a/CHANGES.rst b/CHANGES.rst
index a4854d80f..4549400ea 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -20,6 +20,8 @@ Unreleased
and ``welcome_message_text``. This change also removes the need for PRAW
to track current subreddit settings and send unmodified ones in the
update request.
+* Instances of ... |
python-poetry__poetry-1528 | Confusing output for install sub-command
- [x] I am on the [latest](https://github.com/sdispater/poetry/releases/latest) Poetry version.
- [x] I have searched the [issues](https://github.com/sdispater/poetry/issues) of this repo and believe that this is not a duplicate.
- [x] If an exception occurs when executing a c... | [
{
"content": "from typing import List\nfrom typing import Union\n\nfrom clikit.api.io import IO\nfrom clikit.io import NullIO\n\nfrom poetry.packages import Dependency\nfrom poetry.packages import Locker\nfrom poetry.packages import Package\nfrom poetry.puzzle import Solver\nfrom poetry.puzzle.operations import... | [
{
"content": "from typing import List\nfrom typing import Union\n\nfrom clikit.api.io import IO\nfrom clikit.io import NullIO\n\nfrom poetry.packages import Dependency\nfrom poetry.packages import Locker\nfrom poetry.packages import Package\nfrom poetry.puzzle import Solver\nfrom poetry.puzzle.operations import... | diff --git a/README.md b/README.md
index 8db69e27bae..87d0e698490 100644
--- a/README.md
+++ b/README.md
@@ -348,7 +348,7 @@ By default `poetry` will install your project's package everytime you run `insta
$ poetry install
Installing dependencies from lock file
-Nothing to install or update
+No dependencies to inst... |
google__turbinia-1372 | [FR]: Update GoogleCloudDisk evidence name
### What would this feature improve or what problem would it solve?
Logs will be easier to read because they will have clearer and more specific information about what is being processed. Also the UI, timeline and other places will also be clearer.
### What is the feature y... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | [
{
"content": "# -*- coding: utf-8 -*-\n# Copyright 2017 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# U... | diff --git a/turbinia/evidence.py b/turbinia/evidence.py
index 4b240c37b..87403b0fa 100644
--- a/turbinia/evidence.py
+++ b/turbinia/evidence.py
@@ -942,6 +942,13 @@ def __init__(
self.resource_id = self.disk_name
self.device_path = None
+ @property
+ def name(self):
+ if self._name:
+ return self... |
SCons__scons-3700 | CompilationDatabase tool emits paths into variant directories for source files when not using absolute paths.
**Describe the bug**
When using the CompilationDatabase tool with `COMPILATIONDB_USE_ABSPATH` == False, the `file` field appears to refer into the variant directory, not the source directory:
`"file": "buil... | [
{
"content": "\"\"\"\nImplements the ability for SCons to emit a compilation database for the MongoDB project. See\nhttp://clang.llvm.org/docs/JSONCompilationDatabase.html for details on what a compilation\ndatabase is, and why you might want one. The only user visible entry point here is\n'env.CompilationDatab... | [
{
"content": "\"\"\"\nImplements the ability for SCons to emit a compilation database for the MongoDB project. See\nhttp://clang.llvm.org/docs/JSONCompilationDatabase.html for details on what a compilation\ndatabase is, and why you might want one. The only user visible entry point here is\n'env.CompilationDatab... | diff --git a/CHANGES.txt b/CHANGES.txt
index 6fc1905839..4921fe6131 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -55,7 +55,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
tool.
- Add CompilationDatabase() builder in compilation_db tool. Contributed by MongoDB.
Setting COMPILATIONDB_USE_ABSPATH to T... |
Cloud-CV__EvalAI-1230 | Change message after the challenge creation
Currently, when a challenge is being created using the zip file feature, then the user is shown something like this:
<img width="1440" alt="screen shot 2017-09-06 at 6 10 21 pm" src="https://user-images.githubusercontent.com/2945708/30137037-8cb1bb64-932f-11e7-89dd-7cde192... | [
{
"content": "import csv\nimport logging\nimport random\nimport requests\nimport shutil\nimport string\nimport tempfile\nimport yaml\nimport zipfile\n\nfrom os.path import basename, isfile, join\n\nfrom django.core.files.base import ContentFile\nfrom django.db import transaction\nfrom django.http import HttpRes... | [
{
"content": "import csv\nimport logging\nimport random\nimport requests\nimport shutil\nimport string\nimport tempfile\nimport yaml\nimport zipfile\n\nfrom os.path import basename, isfile, join\n\nfrom django.core.files.base import ContentFile\nfrom django.db import transaction\nfrom django.http import HttpRes... | diff --git a/apps/challenges/views.py b/apps/challenges/views.py
index cb3a9dd875..a77f723b19 100644
--- a/apps/challenges/views.py
+++ b/apps/challenges/views.py
@@ -658,7 +658,8 @@ def create_challenge_using_zip_file(request, challenge_host_team_pk):
if zip_config:
zip_config.challenge = challen... |
voicepaw__so-vits-svc-fork-1159 | Problem with input file audio path format selection (gui.py)
SVC version: 3.14.1
Currently, format selection for the input audio path file doesn't allow for format selection and filter shows no audio files.
The problem is on line 352 of gui.py
I solved it by putting, on line 352:
`file_types=get_supported_fil... | [
{
"content": "from __future__ import annotations\n\nimport json\nimport multiprocessing\nimport os\nfrom copy import copy\nfrom logging import getLogger\nfrom pathlib import Path\n\nimport PySimpleGUI as sg\nimport sounddevice as sd\nimport soundfile as sf\nimport torch\nfrom pebble import ProcessFuture, Proces... | [
{
"content": "from __future__ import annotations\n\nimport json\nimport multiprocessing\nimport os\nfrom copy import copy\nfrom logging import getLogger\nfrom pathlib import Path\n\nimport PySimpleGUI as sg\nimport sounddevice as sd\nimport soundfile as sf\nimport torch\nfrom pebble import ProcessFuture, Proces... | diff --git a/src/so_vits_svc_fork/gui.py b/src/so_vits_svc_fork/gui.py
index 1d58b155..18f0e8b8 100644
--- a/src/so_vits_svc_fork/gui.py
+++ b/src/so_vits_svc_fork/gui.py
@@ -350,7 +350,9 @@ def main():
sg.FileBrowse(
initial_folder=".",
key="input_path_browse"... |
cornellius-gp__gpytorch-1233 | [Bug] RFFPredictionStrategy should allow for turning off predictive variances
See here: https://github.com/cornellius-gp/gpytorch/blob/3bffd226773777a652267ec187459e52f85757a0/gpytorch/models/exact_prediction_strategies.py#L650
`gpytorch.settings.skip_posterior_variances()` fails to work under this prediction strate... | [
{
"content": "#!/usr/bin/env python3\n\nimport functools\nimport string\n\nimport torch\n\nfrom .. import settings\nfrom ..lazy import (\n BatchRepeatLazyTensor,\n ConstantMulLazyTensor,\n InterpolatedLazyTensor,\n LazyEvaluatedKernelTensor,\n MatmulLazyTensor,\n NonLazyTensor,\n RootLazyTe... | [
{
"content": "#!/usr/bin/env python3\n\nimport functools\nimport string\n\nimport torch\n\nfrom .. import settings\nfrom ..lazy import (\n BatchRepeatLazyTensor,\n ConstantMulLazyTensor,\n InterpolatedLazyTensor,\n LazyEvaluatedKernelTensor,\n MatmulLazyTensor,\n NonLazyTensor,\n RootLazyTe... | diff --git a/gpytorch/models/exact_prediction_strategies.py b/gpytorch/models/exact_prediction_strategies.py
index feca25a43..571641a76 100644
--- a/gpytorch/models/exact_prediction_strategies.py
+++ b/gpytorch/models/exact_prediction_strategies.py
@@ -648,6 +648,9 @@ def exact_prediction(self, joint_mean, joint_covar)... |
svthalia__concrexit-2294 | Can't set registration information fields from admin (for non-member registrations)
### Describe the bug
It is not possible to manually set the event registration information fields from the admin. This is quite problematic when adding non-member's registrations
### How to reproduce
Steps to reproduce the behaviou... | [
{
"content": "import csv\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.admin import helpers\nfrom django.contrib.admin.views.decorators import staff_member_required\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.http import HttpRespon... | [
{
"content": "import csv\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.contrib.admin import helpers\nfrom django.contrib.admin.views.decorators import staff_member_required\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.http import HttpRespon... | diff --git a/website/events/admin/views.py b/website/events/admin/views.py
index 3f1687eba..4556a2d45 100644
--- a/website/events/admin/views.py
+++ b/website/events/admin/views.py
@@ -97,7 +97,9 @@ def form_valid(self, form):
values = form.field_values()
try:
services.update_registration... |
DataBiosphere__toil-626 | Mesos batch system doesn't favor bigger tasks
https://github.com/BD2KGenomics/toil/blob/d08fe8c43d0d18d4d4bdafb9c9c921fd937557bd/src/toil/batchSystems/mesos/batchSystem.py#L298
Sort is ineffective as it sorts by the property descriptor, not the value of the property.
Mesos batch system doesn't favor bigger tasks
http... | [
{
"content": "# Copyright (C) 2015 UCSC Computational Genomics Lab\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unl... | [
{
"content": "# Copyright (C) 2015 UCSC Computational Genomics Lab\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unl... | diff --git a/src/toil/batchSystems/mesos/batchSystem.py b/src/toil/batchSystems/mesos/batchSystem.py
index 198f14db85..95d565d7b6 100644
--- a/src/toil/batchSystems/mesos/batchSystem.py
+++ b/src/toil/batchSystems/mesos/batchSystem.py
@@ -295,7 +295,7 @@ def _sortJobsByResourceReq(self):
job_types = self.jobQu... |
microsoft__Qcodes-509 | bug
### Steps to reproduce
1. make parameter class that inherits from `Parameter` with `instrument=None`
2. have an attribute in this class called `self.instrument`
### Expected behaviour
this should work
### Actual behaviour
upon making a json snapshot, an error occurs. this happens because the instrument a... | [
{
"content": "import ctypes\nimport logging\nimport numpy as np\nimport os\n\nfrom qcodes.instrument.base import Instrument\nfrom qcodes.instrument.parameter import Parameter\nfrom qcodes.utils import validators\n\n# TODO(damazter) (C) logging\n\n# these items are important for generalizing this code to multipl... | [
{
"content": "import ctypes\nimport logging\nimport numpy as np\nimport os\n\nfrom qcodes.instrument.base import Instrument\nfrom qcodes.instrument.parameter import Parameter\nfrom qcodes.utils import validators\n\n# TODO(damazter) (C) logging\n\n# these items are important for generalizing this code to multipl... | diff --git a/qcodes/instrument_drivers/AlazarTech/ATS.py b/qcodes/instrument_drivers/AlazarTech/ATS.py
index c6a6dd90525..98ba18443e9 100644
--- a/qcodes/instrument_drivers/AlazarTech/ATS.py
+++ b/qcodes/instrument_drivers/AlazarTech/ATS.py
@@ -793,7 +793,8 @@ def __init__(self, name=None, label=None, unit=None, instru... |
spack__spack-13262 | Installation issue: Qt-5.13.1 fails to compile with gcc@9.2.0
**Summary**: I'm having trouble building new versions of qt on RHEL7 with gcc.
### Steps to reproduce the issue
```console
$ spack install gcc@9.2.0 # system gcc is 4.8.5
$ spack load gcc@9.2.0
$ spack compiler add
$ spack install qt+phonon+dbus % ... | [
{
"content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\nfrom spack.operating_systems.mac_os import macos_version\nimport os\nimpor... | [
{
"content": "# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other\n# Spack Project Developers. See the top-level COPYRIGHT file for details.\n#\n# SPDX-License-Identifier: (Apache-2.0 OR MIT)\n\nfrom spack import *\nfrom spack.operating_systems.mac_os import macos_version\nimport os\nimpor... | diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py
index 0405aa49027239..55e59cb7882efd 100644
--- a/var/spack/repos/builtin/packages/qt/package.py
+++ b/var/spack/repos/builtin/packages/qt/package.py
@@ -294,8 +294,6 @@ def patch(self):
@when('@5')
de... |
aio-libs__aiohttp-7672 | aiohttp raises SSLError when requesting URLs with FQDN
## Long story short
It seems that aiohttp doesn't work properly when requesting URLs with Fully Qualified Domain Name. This was fixed in urllib3, see https://github.com/urllib3/urllib3/pull/1255 It should probably by fixed also in aiohttp. May be related to http... | [
{
"content": "#!/usr/bin/env python3\n#\n# aiohttp documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 5 12:35:35 2014.\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 thi... | [
{
"content": "#!/usr/bin/env python3\n#\n# aiohttp documentation build configuration file, created by\n# sphinx-quickstart on Wed Mar 5 12:35:35 2014.\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 thi... | diff --git a/CHANGES.rst b/CHANGES.rst
index efa6052a7df..323b2e7ddf9 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -10,6 +10,116 @@
.. towncrier release notes start
+3.8.6 (2023-10-07)
+==================
+
+Security bugfixes
+-----------------
+
+- Upgraded the vendored copy of llhttp_ to v9.1.3 -- by :user:`Dre... |
ipython__ipython-7852 | Unknown error with no read permissions
If you do not have read permission on a notebook (e.g., it has `-rw-------` and you are not the owner) and you try to open it, rather than saying permission denied, you get an error that implies there's something wrong with the notebook format:
 IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport base64\nfrom contextlib import contextmanager\nimport errno\nimport io\nimport os\nimport shutil\n\nfrom tornad... | [
{
"content": "\"\"\"\nUtilities for file-based Contents/Checkpoints managers.\n\"\"\"\n\n# Copyright (c) IPython Development Team.\n# Distributed under the terms of the Modified BSD License.\n\nimport base64\nfrom contextlib import contextmanager\nimport errno\nimport io\nimport os\nimport shutil\n\nfrom tornad... | diff --git a/IPython/html/services/contents/fileio.py b/IPython/html/services/contents/fileio.py
index fcd78ad4d68..77c39c2f5f8 100644
--- a/IPython/html/services/contents/fileio.py
+++ b/IPython/html/services/contents/fileio.py
@@ -61,7 +61,7 @@ def perm_to_403(self, os_path=''):
"""context manager for turnin... |
googleapis__python-bigquery-87 | Packaging issue with GRPC and google-cloud-bigquery + optional packages?
We're apparently losing some needed dependencies when using the optional installs for google-cloud-bigquery
```
$ ~/.pyenv/versions/3.8.2/bin/virtualenv repro
$ source repro/bin/activate
$ pip freeze
```
(no results)
```
$ pip install -... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | [
{
"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl... | diff --git a/setup.py b/setup.py
index 7a1347616..f6afaa46e 100644
--- a/setup.py
+++ b/setup.py
@@ -40,6 +40,11 @@
extras = {
"bqstorage": [
"google-cloud-bigquery-storage >= 0.6.0, <2.0.0dev",
+ # Due to an issue in pip's dependency resolver, the `grpc` extra is not
+ # installed, even th... |
secdev__scapy-3616 | mistaken msglen in MQTTPublish message
### Brief description
I noticed that the StrLenField of value in MQTTPublish packets is defined as
```python
StrLenField("value", "",
length_from=lambda pkt: (pkt.underlayer.len -
pkt.length - 2)),
```
However... | [
{
"content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Santiago Hernandez Ramos <shramos@protonmail.com>\n# This program is published under GPLv2 license\n\n# scapy.contrib.description = Message Queuing Telemetry Transport (MQTT)\n# scapy.con... | [
{
"content": "# This file is part of Scapy\n# See http://www.secdev.org/projects/scapy for more information\n# Copyright (C) Santiago Hernandez Ramos <shramos@protonmail.com>\n# This program is published under GPLv2 license\n\n# scapy.contrib.description = Message Queuing Telemetry Transport (MQTT)\n# scapy.con... | diff --git a/scapy/contrib/mqtt.py b/scapy/contrib/mqtt.py
index 220aaa30bdd..b3af44d8538 100644
--- a/scapy/contrib/mqtt.py
+++ b/scapy/contrib/mqtt.py
@@ -192,8 +192,9 @@ class MQTTPublish(Packet):
lambda pkt: (pkt.underlayer.QOS == 1 or
pkt.underlayer.... |
ESMCI__cime-2272 | userdefined_laptop_template files need to be changed to work
It appears that the required format for `config_machines.xml` and maybe `config_compilers.xml` has been changed; this should be updated in the templates in `userdefined_laptop_template`. These should no longer have the outer `<config_machines>` (and maybe `<c... | [
{
"content": "\"\"\"\nCommon interface to XML files, this is an abstract class and is expected to\nbe used by other XML interface modules and not directly.\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\nimport xml.etree.ElementTree as ET\nfrom distutils.spawn import find_executable\nimport getpass, shut... | [
{
"content": "\"\"\"\nCommon interface to XML files, this is an abstract class and is expected to\nbe used by other XML interface modules and not directly.\n\"\"\"\nfrom CIME.XML.standard_module_setup import *\nimport xml.etree.ElementTree as ET\nfrom distutils.spawn import find_executable\nimport getpass, shut... | diff --git a/scripts/lib/CIME/XML/generic_xml.py b/scripts/lib/CIME/XML/generic_xml.py
index 963606f5156..afbcfae083f 100644
--- a/scripts/lib/CIME/XML/generic_xml.py
+++ b/scripts/lib/CIME/XML/generic_xml.py
@@ -96,7 +96,12 @@ def read(self, infile, schema=None):
def read_fd(self, fd):
if self.tree:
- ... |
Cloud-CV__EvalAI-1310 | Increase the data upload limit.
## Current Behaviour
By default django supports only 2.5 MB of the data to be uploaded on the web app. Refer [here](https://docs.djangoproject.com/en/1.10/ref/settings/#data-upload-max-memory-size) for more info.
## Effects
Due to the low upload limit the file in challenge creation ... | [
{
"content": "\"\"\"\nDjango settings for evalai project.\n\nGenerated by 'django-admin startproject' using Django 1.10.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/... | [
{
"content": "\"\"\"\nDjango settings for evalai project.\n\nGenerated by 'django-admin startproject' using Django 1.10.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.10/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/... | diff --git a/settings/common.py b/settings/common.py
index aa14ffaf7f..769eb4cc15 100755
--- a/settings/common.py
+++ b/settings/common.py
@@ -274,6 +274,11 @@
'SUBMISSION_QUEUE': 'submission_task_queue',
}
+# The maximum size in bytes for request body
+# https://docs.djangoproject.com/en/1.10/ref/settings/#dat... |
Parsl__parsl-463 | Improve datafuture representation
Here is an example: `<DataFuture at 0x7f305c0b1da0 state=finished returned /home/annawoodard/pnpfit/results/best-fit-cuB.root_file>`
I do not think we should append `_file` to the end of the filepath, it makes it confusing what the actual filepath is.
| [
{
"content": "\"\"\"This module implements DataFutures.\n\nWe have two basic types of futures:\n 1. DataFutures which represent data objects\n 2. AppFutures which represent the futures on App/Leaf tasks.\n\"\"\"\nimport os\nimport logging\nfrom concurrent.futures import Future\n\nfrom parsl.dataflow.futur... | [
{
"content": "\"\"\"This module implements DataFutures.\n\nWe have two basic types of futures:\n 1. DataFutures which represent data objects\n 2. AppFutures which represent the futures on App/Leaf tasks.\n\"\"\"\nimport os\nimport logging\nfrom concurrent.futures import Future\n\nfrom parsl.dataflow.futur... | diff --git a/parsl/app/futures.py b/parsl/app/futures.py
index 12e50ba689..70ae65d706 100644
--- a/parsl/app/futures.py
+++ b/parsl/app/futures.py
@@ -203,7 +203,7 @@ def __repr__(self):
self.__class__.__name__,
id(self),
_STATE_TO_D... |
cocotb__cocotb-1015 | XGMII interface issue in 8 byte width without interleaving
XGMII interface is 32 bit with 4 bit control or 2 words in a 64 bit word (and 8 bit control). Currently the XGMII monitor doesnt support if the XGMII_START is offset to the second 32:40 bit position. I have made an update which works for me locally.
... | [
{
"content": "# Copyright (c) 2013 Potential Ventures Ltd\n# All rights reserved.\n# \n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions of source code must retain the above copyright\n# ... | [
{
"content": "# Copyright (c) 2013 Potential Ventures Ltd\n# All rights reserved.\n# \n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n# * Redistributions of source code must retain the above copyright\n# ... | diff --git a/cocotb/monitors/xgmii.py b/cocotb/monitors/xgmii.py
index 2621e46e21..67e7850cf7 100644
--- a/cocotb/monitors/xgmii.py
+++ b/cocotb/monitors/xgmii.py
@@ -133,6 +133,15 @@ def _monitor_recv(self):
yield clk
ctrl, bytes = self._get_bytes()
+ elif self.by... |
Textualize__textual-2038 | Investigate an improvement to how the namespace of messages is calculated
Consider the following code, where there is a base class for two widgets that share a *lot* in common but have slightly different uses/APIs/reasons-to-exist. They both have a `value` in common and so will have a `Changed` message (consider this a... | [
{
"content": "\"\"\"\n\nA message pump is a class that processes messages.\n\nIt is a base class for the App, Screen, and Widgets.\n\n\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport inspect\nfrom asyncio import CancelledError, Queue, QueueEmpty, Task\nfrom contextlib import contextmanager\n... | [
{
"content": "\"\"\"\n\nA message pump is a class that processes messages.\n\nIt is a base class for the App, Screen, and Widgets.\n\n\"\"\"\nfrom __future__ import annotations\n\nimport asyncio\nimport inspect\nfrom asyncio import CancelledError, Queue, QueueEmpty, Task\nfrom contextlib import contextmanager\n... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66273dcfe3..49d764f65b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versionin... |
ray-project__ray-1666 | "This should be unreachable" error message hard to interpret
I've seen this when forgetting to call `ray.init()`, maybe it should say `..Unreachable...Did you call ray.init()?`
```
return func(*args, **kwargs)
File "/home/ubuntu/Dropbox/git0/tensorpack/tensorpack/train/base.py", line 253, in main_loop
s... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport copy\nimport hashlib\nimport inspect\nimport json\nimport traceback\n\nimport ray.cloudpickle as pickle\nimport ray.local_scheduler\nimport ray.signature as signature\nimport ra... | [
{
"content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport copy\nimport hashlib\nimport inspect\nimport json\nimport traceback\n\nimport ray.cloudpickle as pickle\nimport ray.local_scheduler\nimport ray.signature as signature\nimport ra... | diff --git a/python/ray/actor.py b/python/ray/actor.py
index cedd9c6f1ad09..4df9a45b26067 100644
--- a/python/ray/actor.py
+++ b/python/ray/actor.py
@@ -706,6 +706,10 @@ class ActorHandle(actor_handle_class):
@classmethod
def remote(cls, *args, **kwargs):
+ if ray.worker.global_worker.mod... |
archlinux__archinstall-666 | re_rank_mirrors bug
`re_rank_mirrors` from `archinstall/lib/mirrors.py` does not work. Since `SyncCommand` doesn't run command from shell, stdout redirection (`foo > bar`) doesn't work.
Also, using source file as destination file does not seem to work. File becomes empty.
| [
{
"content": "import urllib.error\nimport urllib.request\nfrom typing import Union\n\nfrom .general import *\nfrom .output import log\n\ndef sort_mirrorlist(raw_data :bytes, sort_order=[\"https\", \"http\"]) -> bytes:\n\t\"\"\"\n\tThis function can sort /etc/pacman.d/mirrorlist according to the\n\tmirror's URL ... | [
{
"content": "import urllib.error\nimport urllib.request\nfrom typing import Union\n\nfrom .general import *\nfrom .output import log\n\ndef sort_mirrorlist(raw_data :bytes, sort_order=[\"https\", \"http\"]) -> bytes:\n\t\"\"\"\n\tThis function can sort /etc/pacman.d/mirrorlist according to the\n\tmirror's URL ... | diff --git a/archinstall/lib/mirrors.py b/archinstall/lib/mirrors.py
index 1b62a61bac..2325282f3b 100644
--- a/archinstall/lib/mirrors.py
+++ b/archinstall/lib/mirrors.py
@@ -123,10 +123,17 @@ def use_mirrors(regions: dict, destination='/etc/pacman.d/mirrorlist'):
return True
-def re_rank_mirrors(top=10, *positio... |
pypa__pipenv-1031 | pipenv does not install gitlint
`gitlint` is not installed when using `--dev --deploy` flags.
Here's my `Pipfile`:
```
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
[requires]
python_version = '3.6'
[dev-packages]
django-debug-toolbar = "*"
"pep8-naming" = "*"
"flake8-... | [
{
"content": "# -*- coding: utf-8 -*-\nimport os\nimport hashlib\nimport tempfile\nimport sys\nimport shutil\nimport logging\n\nimport click\nimport crayons\nimport delegator\nimport pip\nimport parse\nimport requirements\nimport fuzzywuzzy.process\nimport requests\nimport six\nfrom time import time\n\nlogging.... | [
{
"content": "# -*- coding: utf-8 -*-\nimport os\nimport hashlib\nimport tempfile\nimport sys\nimport shutil\nimport logging\n\nimport click\nimport crayons\nimport delegator\nimport pip\nimport parse\nimport requirements\nimport fuzzywuzzy.process\nimport requests\nimport six\nfrom time import time\n\nlogging.... | diff --git a/pipenv/utils.py b/pipenv/utils.py
index fe9b1a72b3..cad2960e5d 100644
--- a/pipenv/utils.py
+++ b/pipenv/utils.py
@@ -771,7 +771,10 @@ def is_vcs(pipfile_entry):
if hasattr(pipfile_entry, 'keys'):
return any(key for key in pipfile_entry.keys() if key in VCS_LIST)
elif isinstance(pipfile_... |
pwr-Solaar__Solaar-1430 | Option monochrome indicator or autostart enable / disable
Hello and good day,
first and foremost thank you very much for this wonderful application.
As a GNOME Shell user I would like to see a monochrome indicator icon or alternatively an option to disable the autostart feature.
 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your... | [
{
"content": "# -*- python-mode -*-\n\n## Copyright (C) 2012-2013 Daniel Pavel\n##\n## This program is free software; you can redistribute it and/or modify\n## it under the terms of the GNU General Public License as published by\n## the Free Software Foundation; either version 2 of the License, or\n## (at your... | diff --git a/lib/solaar/ui/icons.py b/lib/solaar/ui/icons.py
index bf4157d9f4..d6dc03b8ae 100644
--- a/lib/solaar/ui/icons.py
+++ b/lib/solaar/ui/icons.py
@@ -91,6 +91,8 @@ def _init_icon_paths():
_log.debug('icon theme paths: %s', _default_theme.get_search_path())
if gtk.battery_icons_style == 'symboli... |
microsoft__ptvsd-759 | Create release version of ptvsd
Create a release version of ptvsd version 4.1.1
- [x] Change development status to production from alpha
- [x] Set version to 4.1.1
| [
{
"content": "#!/usr/bin/env python\n\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport os\nimport os.path\nimport subprocess\nimport sys\n\nfrom setuptools import setup\n\nimport versioneer\nimpo... | [
{
"content": "#!/usr/bin/env python\n\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License. See LICENSE in the project root\n# for license information.\n\nimport os\nimport os.path\nimport subprocess\nimport sys\n\nfrom setuptools import setup\n\nimport versioneer\nimpo... | diff --git a/setup.py b/setup.py
index 9db096544..ff81bc2e7 100644
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,7 @@ def iter_vendored_files():
url='https://aka.ms/ptvs',
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
classifiers=[
- 'Development Status :: 3 - Alpha',
+ ... |
spyder-ide__spyder-11533 | Crash when trying to run a Python file in a project from the explorer pane - Spyder 4.0.1
<!--- **PLEASE READ:** When submitting here, please ensure you've completed the following checklist and checked the boxes to confirm. Issue reports without it may be closed. Thanks! --->
### Issue Report Checklist
* [y] Sear... | [
{
"content": "# -*- coding: utf-8 -*-\r\n#\r\n# Copyright © Spyder Project Contributors\r\n# Licensed under the terms of the MIT License\r\n# (see spyder/__init__.py for details)\r\n\r\n\"\"\"Files and Directories Explorer Plugin\"\"\"\r\n\r\n# pylint: disable=C0103\r\n# pylint: disable=R0903\r\n# pylint: disab... | [
{
"content": "# -*- coding: utf-8 -*-\r\n#\r\n# Copyright © Spyder Project Contributors\r\n# Licensed under the terms of the MIT License\r\n# (see spyder/__init__.py for details)\r\n\r\n\"\"\"Files and Directories Explorer Plugin\"\"\"\r\n\r\n# pylint: disable=C0103\r\n# pylint: disable=R0903\r\n# pylint: disab... | diff --git a/spyder/plugins/explorer/plugin.py b/spyder/plugins/explorer/plugin.py
index 26788369013..e8a9aaf5927 100644
--- a/spyder/plugins/explorer/plugin.py
+++ b/spyder/plugins/explorer/plugin.py
@@ -97,7 +97,7 @@ def register_plugin(self):
treewidget.sig_run.connect(
lambda fname:
... |
ytdl-org__youtube-dl-2722 | Don't crash when website sends wrong charset information
Some (badly written) webpage might send wrong encoding information, for exemple with header Content-Type: text/html; charset=ISO-8859
This generates this traceback :
Traceback (most recent call last):
File "./bin/youtube-dl", line 6, in <module>
youtub... | [
{
"content": "import base64\nimport hashlib\nimport json\nimport os\nimport re\nimport socket\nimport sys\nimport netrc\nimport xml.etree.ElementTree\n\nfrom ..utils import (\n compat_http_client,\n compat_urllib_error,\n compat_urllib_parse_urlparse,\n compat_str,\n\n clean_html,\n compiled_r... | [
{
"content": "import base64\nimport hashlib\nimport json\nimport os\nimport re\nimport socket\nimport sys\nimport netrc\nimport xml.etree.ElementTree\n\nfrom ..utils import (\n compat_http_client,\n compat_urllib_error,\n compat_urllib_parse_urlparse,\n compat_str,\n\n clean_html,\n compiled_r... | diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index da419373497..9653d44eb33 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -251,7 +251,10 @@ def _download_webpage_handle(self, url_or_request, video_id, note=None, errnote=
with open(filena... |
Pyomo__pyomo-823 | Problems with setup.py when failures arise
I'm seeing the following error on Linux using Python 3.7. FWIW, the underlying error is that the PyUtilib master branch hasn't been installed, which is now required to install the Pyomo master branch:
> Traceback (most recent call last):
> File "/home/wehart/anaconda3/e... | [
{
"content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin... | [
{
"content": "# ___________________________________________________________________________\n#\n# Pyomo: Python Optimization Modeling Objects\n# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC\n# Under the terms of Contract DE-NA0003525 with National Technology and\n# Engineerin... | diff --git a/setup.py b/setup.py
index 25e51c03b76..116d9d6c1b9 100644
--- a/setup.py
+++ b/setup.py
@@ -194,7 +194,7 @@ def run_setup():
# environment is missing / has an incorrect Microsoft compiler.
# Since Cython is not strictly required, we will disable Cython and
# try re-running setup(), but only ... |
cornellius-gp__gpytorch-1562 | [Bug] CG convergence warning incorrectly triggered when max_iter <= 10
# 🐛 Bug
The linear conjugate gradient method can incorrectly flag a numerical error higher than the tolerance when `max_iter <= 10`.
## To reproduce
** Code snippet to reproduce **
```python
from gpytorch.utils import linear_cg
import t... | [
{
"content": "#!/usr/bin/env python3\n\nimport warnings\n\nimport torch\n\nfrom .. import settings\nfrom .deprecation import bool_compat\nfrom .warnings import NumericalWarning\n\n\ndef _default_preconditioner(x):\n return x.clone()\n\n\n@torch.jit.script\ndef _jit_linear_cg_updates(\n result, alpha, resi... | [
{
"content": "#!/usr/bin/env python3\n\nimport warnings\n\nimport torch\n\nfrom .. import settings\nfrom .deprecation import bool_compat\nfrom .warnings import NumericalWarning\n\n\ndef _default_preconditioner(x):\n return x.clone()\n\n\n@torch.jit.script\ndef _jit_linear_cg_updates(\n result, alpha, resi... | diff --git a/gpytorch/utils/linear_cg.py b/gpytorch/utils/linear_cg.py
index 33b37c4d2..e42f31c31 100644
--- a/gpytorch/utils/linear_cg.py
+++ b/gpytorch/utils/linear_cg.py
@@ -282,7 +282,11 @@ def linear_cg(
residual_norm.masked_fill_(rhs_is_zero, 0)
torch.lt(residual_norm, stop_updating_after, out=h... |
translate__pootle-6582 | Muted checks don't act muted in Pootle 2.8.0rc6
In Pootle 2.8.0rc5, after translating a string and triggering some warnings (namely, XML tag mismatch), I could mute that check and/or press Ctrl+Enter to navigate to the next string.
With rc6, even if I mute that check for that translation, Ctrl+Enter still flashes th... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport calenda... | [
{
"content": "# -*- coding: utf-8 -*-\n#\n# Copyright (C) Pootle contributors.\n#\n# This file is a part of the Pootle project. It is distributed under the GPL3\n# or later license. See the LICENSE file for a copy of the license and the\n# AUTHORS file for copyright and authorship information.\n\nimport calenda... | diff --git a/pootle/apps/pootle_store/views.py b/pootle/apps/pootle_store/views.py
index 226ebc1762d..c90a9b75df6 100644
--- a/pootle/apps/pootle_store/views.py
+++ b/pootle/apps/pootle_store/views.py
@@ -690,7 +690,9 @@ def get_context_data(self, *args, **kwargs):
result = dict(
checks=_g... |
apache__airflow-35167 | dry_run not optional in api for set task instances state
### Apache Airflow version
2.7.2
### What happened
Sent request without dry_run parameter to dags/{dag_id}/updateTaskInstancesState and got a 500 error.
### What you think should happen instead
I should be able to send a request to update task instances stat... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | [
{
"content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n... | diff --git a/airflow/api_connexion/schemas/task_instance_schema.py b/airflow/api_connexion/schemas/task_instance_schema.py
index 02dc1fb3f6fa6..c9084151d88ef 100644
--- a/airflow/api_connexion/schemas/task_instance_schema.py
+++ b/airflow/api_connexion/schemas/task_instance_schema.py
@@ -155,7 +155,7 @@ def validate_fo... |
liberapay__liberapay.com-1724 | Automatic renewal failure due to currency mismatch
Stripe error message: `The currency specified (gbp) does not match the currency on the source (eur). A payment can only be created for the same currency as the corresponding source. (request ID: req_PSmPQ85CKvW5kz)`.
SEPA Direct Debit failures
A European donor who trie... | [
{
"content": "from collections import defaultdict\nfrom datetime import date\n\nfrom pando import json\n\nfrom ..cron import logger\nfrom ..i18n.currencies import Money\nfrom ..website import website\nfrom ..utils import utcnow\nfrom .common import prepare_donation, prepare_payin\nfrom .stripe import charge\n\n... | [
{
"content": "from collections import defaultdict\nfrom datetime import date\n\nfrom pando import json\n\nfrom ..cron import logger\nfrom ..i18n.currencies import Money\nfrom ..website import website\nfrom ..utils import utcnow\nfrom .common import prepare_donation, prepare_payin\nfrom .stripe import charge\n\n... | diff --git a/liberapay/payin/cron.py b/liberapay/payin/cron.py
index 94085196cc..213e40c119 100644
--- a/liberapay/payin/cron.py
+++ b/liberapay/payin/cron.py
@@ -159,6 +159,7 @@ def execute_scheduled_payins():
WHERE r.participant = sp.payer
AND r.status = 'chargeable'
... |
holoviz__holoviews-3460 | datashader doesn't seem to support datetime index
When trying to do a `datashader` plot on a dask dataframe with datetime index, I get the following:
`TypeError: Column assignment doesn't support type Array`
Simple reproducible example:
```python
import pandas as pd
import numpy as np
from dask import datafra... | [
{
"content": "from __future__ import absolute_import, division\n\nfrom collections import Callable, Iterable\nimport warnings\n\nimport param\nimport numpy as np\nimport pandas as pd\nimport xarray as xr\nimport datashader as ds\nimport datashader.reductions as rd\nimport datashader.transfer_functions as tf\nim... | [
{
"content": "from __future__ import absolute_import, division\n\nfrom collections import Callable, Iterable\nimport warnings\n\nimport param\nimport numpy as np\nimport pandas as pd\nimport xarray as xr\nimport datashader as ds\nimport datashader.reductions as rd\nimport datashader.transfer_functions as tf\nim... | diff --git a/holoviews/operation/datashader.py b/holoviews/operation/datashader.py
index 34ef9e44e8..a988420b3a 100644
--- a/holoviews/operation/datashader.py
+++ b/holoviews/operation/datashader.py
@@ -329,8 +329,8 @@ def get_agg_data(cls, obj, category=None):
df = df.copy()
for d in (x, y):
- ... |
nilearn__nilearn-3390 | Error when using plot_connectome to plot negative connectivity (and setting edge_vmax < 0)
<!--Provide a brief description of the bug.-->
For `plotting.plot_connectome(...)`, I was interested in plotting a matrix with only negative edges. However, when you set the `edge_vmin` parameter to be less than zero, it raise... | [
{
"content": "\nimport numbers\nfrom nilearn._utils.docs import fill_doc\nimport numpy as np\n\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import Normalize\nfrom matplotlib.patches import FancyArrow\nfrom matplotlib.lines import Line2D\nfrom matplotlib.font_manager import FontProperties\nfrom mpl_t... | [
{
"content": "\nimport numbers\nfrom nilearn._utils.docs import fill_doc\nimport numpy as np\n\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import Normalize\nfrom matplotlib.patches import FancyArrow\nfrom matplotlib.lines import Line2D\nfrom matplotlib.font_manager import FontProperties\nfrom mpl_t... | diff --git a/doc/changes/latest.rst b/doc/changes/latest.rst
index 7262f546dd..a52627c2da 100644
--- a/doc/changes/latest.rst
+++ b/doc/changes/latest.rst
@@ -14,6 +14,7 @@ Fixes
-----
- Regressor names can now be invalid identifiers but will raise an error with :meth:`~glm.first_level.FirstLevelModel.compute_contr... |
nltk__nltk-3116 | Which Open English Wordnet version is useful?
Unlike the original Princeton WordNet, which has at least two widely used versions (3.0 and 3.1), it may not be relevant for NLTK to support all versions of the OEWN project, because these are not so widely used, and the most recent version tends to supersede all the preced... | [
{
"content": "# Natural Language Toolkit: Corpus Readers\n#\n# Copyright (C) 2001-2023 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# URL: <https://www.nltk.org/>\n# For license information, see LICENSE.TXT\n\n# TODO this docstring isn't up-to-date!\n\"\"\"\nNLTK corpus readers. The modules in thi... | [
{
"content": "# Natural Language Toolkit: Corpus Readers\n#\n# Copyright (C) 2001-2023 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# URL: <https://www.nltk.org/>\n# For license information, see LICENSE.TXT\n\n# TODO this docstring isn't up-to-date!\n\"\"\"\nNLTK corpus readers. The modules in thi... | diff --git a/nltk/corpus/__init__.py b/nltk/corpus/__init__.py
index 115a9ba1d6..689ec8255f 100644
--- a/nltk/corpus/__init__.py
+++ b/nltk/corpus/__init__.py
@@ -405,6 +405,12 @@
WordNetCorpusReader,
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
)
+# Latest Open English ... |
ipython__ipython-13377 | %rerun doesn't handle integer parsing errors
## Steps to reproduce
* Execute `%rerun -l one`
## Expected result
An error message is printed, explaining the usage of the `-l` option.
## Actual result
An uncaught `ValueError` with the traceback that's exposing the internals of the implementation and not being ... | [
{
"content": "\"\"\"Implementation of magic functions related to History.\n\"\"\"\n#-----------------------------------------------------------------------------\n# Copyright (c) 2012, IPython Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the fi... | [
{
"content": "\"\"\"Implementation of magic functions related to History.\n\"\"\"\n#-----------------------------------------------------------------------------\n# Copyright (c) 2012, IPython Development Team.\n#\n# Distributed under the terms of the Modified BSD License.\n#\n# The full license is in the fi... | diff --git a/IPython/core/magics/history.py b/IPython/core/magics/history.py
index 28f91fa5a82..ad58b33b0b3 100644
--- a/IPython/core/magics/history.py
+++ b/IPython/core/magics/history.py
@@ -299,7 +299,11 @@ def rerun(self, parameter_s=''):
"""
opts, args = self.parse_options(parameter_s, 'l:g:', mo... |
pypa__setuptools-1634 | pyproject.toml should be included in sdist by default
An issue came up at work recently where installing [python-daemon](https://pagure.io/python-daemon) with `pip` was hitting the `easy_install` path. I assumed it was because `python-daemon` didn't have a `pyproject.toml`, but it turns out they do - it's just not incl... | [
{
"content": "from distutils import log\nimport distutils.command.sdist as orig\nimport os\nimport sys\nimport io\nimport contextlib\n\nfrom setuptools.extern import six\n\nfrom .py36compat import sdist_add_defaults\n\nimport pkg_resources\n\n_default_revctrl = list\n\n\ndef walk_revctrl(dirname=''):\n \"\"\... | [
{
"content": "from distutils import log\nimport distutils.command.sdist as orig\nimport os\nimport sys\nimport io\nimport contextlib\n\nfrom setuptools.extern import six\n\nfrom .py36compat import sdist_add_defaults\n\nimport pkg_resources\n\n_default_revctrl = list\n\n\ndef walk_revctrl(dirname=''):\n \"\"\... | diff --git a/changelog.d/1634.change.rst b/changelog.d/1634.change.rst
new file mode 100644
index 0000000000..27d0a64afe
--- /dev/null
+++ b/changelog.d/1634.change.rst
@@ -0,0 +1 @@
+Include ``pyproject.toml`` in source distribution by default.
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
ind... |
cltk__cltk-1257 | Cannot pickle CLTK Doc containing certain data types from Spacy
**Is your feature request related to a problem? Please describe.**
I'm always frustrated when my program crashes and I lose all of the `Doc`s I generated.
**Describe the solution you'd like**
I would like to be able to serialize (or somehow save) `Doc... | [
{
"content": "\"\"\"``Process`` classes for accessing the Stanza project.\"\"\"\n\nfrom copy import copy\nfrom dataclasses import dataclass\nfrom typing import Any, Literal, Optional\n\nimport spacy\nimport stanza\nfrom boltons.cacheutils import cachedproperty\n\nfrom cltk.core.data_types import Doc, Morphosynt... | [
{
"content": "\"\"\"``Process`` classes for accessing the Stanza project.\"\"\"\n\nfrom copy import copy\nfrom dataclasses import dataclass\nfrom typing import Any, Literal, Optional\n\nimport spacy\nimport stanza\nfrom boltons.cacheutils import cachedproperty\n\nfrom cltk.core.data_types import Doc, Morphosynt... | diff --git a/src/cltk/dependency/processes.py b/src/cltk/dependency/processes.py
index d757b5f8e..5c61ea35f 100644
--- a/src/cltk/dependency/processes.py
+++ b/src/cltk/dependency/processes.py
@@ -320,7 +320,6 @@ def spacy_to_cltk_word_type(spacy_doc: spacy.tokens.doc.Doc):
]
cltk_word... |
wandb__wandb-963 | Fastai WandbCallback with multilabel datasets
* Weights and Biases version: 0.8.9
* Python version: 3.6.9
* Operating System: Linux-4.14.133-88.112.amzn1.x86_64-x86_64-with-Ubuntu-16.04-xenial
### Description
I'm trying to see prediction samples for fastai image classification, where the images are multilabel. ... | [
{
"content": "'''\nThis module hooks fast.ai Learners to Weights & Biases through a callback.\nRequested logged data can be configured through the callback constructor.\n\nExamples:\n WandbCallback can be used when initializing the Learner::\n\n ```\n from wandb.fastai import WandbCallback\n ... | [
{
"content": "'''\nThis module hooks fast.ai Learners to Weights & Biases through a callback.\nRequested logged data can be configured through the callback constructor.\n\nExamples:\n WandbCallback can be used when initializing the Learner::\n\n ```\n from wandb.fastai import WandbCallback\n ... | diff --git a/wandb/fastai/__init__.py b/wandb/fastai/__init__.py
index 79019ffe232..7f5faf97315 100644
--- a/wandb/fastai/__init__.py
+++ b/wandb/fastai/__init__.py
@@ -179,7 +179,8 @@ def _wandb_log_predictions(self):
raise FastaiError('Unable to run "predict" method from Learner to log prediction sam... |
common-workflow-language__cwltool-625 | InputWorkDirRequirement error with Directories
## Expected Behavior
The directory in the `Dirent` should be created in the workdir for docker-based executions.
## Actual Behavior
It seems to work ok with run locally (not in container); however, some invalid field records are output to the logs (see traceback). Whe... | [
{
"content": "from __future__ import absolute_import\nimport codecs\nimport functools\nimport io\nimport json\nimport logging\nimport os\nimport re\nimport shutil\nimport stat\nimport subprocess\nimport sys\nimport tempfile\nfrom io import open\nfrom typing import (IO, Any, Callable, Dict, Iterable, List, Mutab... | [
{
"content": "from __future__ import absolute_import\nimport codecs\nimport functools\nimport io\nimport json\nimport logging\nimport os\nimport re\nimport shutil\nimport stat\nimport subprocess\nimport sys\nimport tempfile\nfrom io import open\nfrom typing import (IO, Any, Callable, Dict, Iterable, List, Mutab... | diff --git a/cwltool/job.py b/cwltool/job.py
index 65a92f312..82b8673e6 100644
--- a/cwltool/job.py
+++ b/cwltool/job.py
@@ -341,7 +341,7 @@ def add_volumes(self, pathmapper, runtime):
ensure_writable(host_outdir_tgt)
elif vol.type == "WritableDirectory":
if vol.resolv... |
pypa__pipenv-333 | 'pep426_name' is not defined when uninstalling
```
$ pipenv install --dev green
Installing green...
...
Adding green to Pipfile's [dev-packages]...
$ pipenv uninstall green
Un-installing green...
Uninstalling green-2.7.3:
Successfully uninstalled green-2.7.3
Traceback (most recent call last):
File "/Us... | [
{
"content": "# -*- coding: utf-8 -*-\nimport contextlib\nimport codecs\nimport json\nimport os\nimport sys\nimport distutils.spawn\nimport shutil\nimport signal\n\nimport click\nimport click_completion\nimport crayons\nimport delegator\nimport parse\nimport pexpect\nimport requests\nimport pipfile\nfrom blinds... | [
{
"content": "# -*- coding: utf-8 -*-\nimport contextlib\nimport codecs\nimport json\nimport os\nimport sys\nimport distutils.spawn\nimport shutil\nimport signal\n\nimport click\nimport click_completion\nimport crayons\nimport delegator\nimport parse\nimport pexpect\nimport requests\nimport pipfile\nfrom blinds... | diff --git a/pipenv/cli.py b/pipenv/cli.py
index 3ba250422e..e04c29792d 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -909,7 +909,7 @@ def uninstall(package_name=False, more_packages=False, three=None, python=False,
click.echo(crayons.blue(c.out))
if pipfile_remove:
- norm_name = pep4... |
plone__Products.CMFPlone-1383 | Author feedback form broken
Author feedback seems to have been missed in the refactoring of settings into the registry. It stills expects to find portal.email_from_name
| [
{
"content": "from AccessControl import Unauthorized\n\nfrom Products.CMFCore.interfaces import IPropertiesTool\nfrom Products.CMFPlone import PloneMessageFactory as _\nfrom Products.CMFPlone.interfaces import ISecuritySchema\nfrom Products.CMFPlone.interfaces.controlpanel import IMailSchema\nfrom Products.CMFP... | [
{
"content": "from AccessControl import Unauthorized\n\nfrom Products.CMFCore.interfaces import IPropertiesTool\nfrom Products.CMFPlone import PloneMessageFactory as _\nfrom Products.CMFPlone.interfaces import ISecuritySchema\nfrom Products.CMFPlone.interfaces.controlpanel import IMailSchema\nfrom Products.CMFP... | diff --git a/Products/CMFPlone/browser/author.py b/Products/CMFPlone/browser/author.py
index 66bb948060..0977a19e39 100644
--- a/Products/CMFPlone/browser/author.py
+++ b/Products/CMFPlone/browser/author.py
@@ -104,7 +104,8 @@ def handle_send(self, action):
message = self.feedback_template(
... |
acl-org__acl-anthology-2133 | Correction to Anthology ID 2022.clpsych-1.9
Metadata correction:
author’s name is listed as Aren, but should be Areán (as shown in the pdf)
| [
{
"content": "#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Copyright 2019 Matt Post <post@cs.jhu.edu>\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://... | [
{
"content": "#! /usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# Copyright 2019 Matt Post <post@cs.jhu.edu>\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://... | diff --git a/bin/add_revision.py b/bin/add_revision.py
index 79547187bd..a3074d8fce 100755
--- a/bin/add_revision.py
+++ b/bin/add_revision.py
@@ -137,9 +137,10 @@ def maybe_copy(file_from, file_to):
if not dry_run:
# Update the URL hash on the <url> tag
- url = paper.find("./url")
- ... |
scikit-hep__awkward-1645 | Inconsistency in ak.concatenate when dim length is zero
### Version of Awkward Array
main@8c9bf49
### Description and code to reproduce
Sorry, it's me again with another edge case...
```python
import awkward._v2 as ak
import numpy as np
a0 = ak.to_regular(ak.Array(np.empty((5, 0))), 1)
a1 = ak.to_regu... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nimport copy\n\nimport awkward as ak\nfrom awkward._v2.contents.content import Content, unset\nfrom awkward._v2.forms.regularform import RegularForm\nfrom awkward._v2.forms.form import _parameters_equal\n\nnp... | [
{
"content": "# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE\n\nimport copy\n\nimport awkward as ak\nfrom awkward._v2.contents.content import Content, unset\nfrom awkward._v2.forms.regularform import RegularForm\nfrom awkward._v2.forms.form import _parameters_equal\n\nnp... | diff --git a/src/awkward/_v2/contents/regulararray.py b/src/awkward/_v2/contents/regulararray.py
index e0a42c951a..3a52f0f92a 100644
--- a/src/awkward/_v2/contents/regulararray.py
+++ b/src/awkward/_v2/contents/regulararray.py
@@ -707,7 +707,7 @@ def mergemany(self, others):
elif all(x.is_RegularType and x.siz... |
Lightning-Universe__lightning-flash-1267 | BUG: cannot use `faster_rcnn` in ObjectDetector
## 🐛 Bug
```
Traceback (most recent call last):
File "/mnt/data/buduanban_detection/test.py", line 25, in <module>
trainer.finetune(model, datamodule=datamodule, strategy="freeze")
File "/data/miniconda3/envs/torch/lib/python3.9/site-packages/lightning_flash... | [
{
"content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ... | [
{
"content": "# Copyright The PyTorch Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required ... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 38cc4e7267..603fe6c41d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -50,6 +50,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Fixed a bug where using `ReduceLROnPlateau` would raise an error ([#1251](https://github.com/PyTorchLi... |
streamlit__streamlit-1506 | Speed up Streamlit with gzip (or equivalent) compression for big packets
# Problem
Sending a big DataFrame (or any big packet) takes a long time. This was a [problem for previous users](https://github.com/streamlit/streamlit-old-private/issues/1237), and it's [coming up again in the forums](https://discuss.streamlit... | [
{
"content": "# Copyright 2018-2020 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | [
{
"content": "# Copyright 2018-2020 Streamlit Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a... | diff --git a/lib/streamlit/server/Server.py b/lib/streamlit/server/Server.py
index 70a25b877b07..8b4f9fc2c9e4 100644
--- a/lib/streamlit/server/Server.py
+++ b/lib/streamlit/server/Server.py
@@ -585,6 +585,16 @@ def on_close(self):
self._server._close_report_session(self._session.id)
self._session = N... |
horovod__horovod-1902 | Docker example fails
**Environment:**
1. Framework: Any of frameworks
2. Framework version:
3. Horovod version: 0.19.1
4. MPI version: 3.0.0
5. CUDA version: 10.0
6. NCCL version: 2.4.7-1+cuda10.0
7. Python version: 2.7
8. OS and version: ubuntu16.04
9. GCC version: g++-2.8
**Bug report:**
I build a dock... | [
{
"content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\... | [
{
"content": "# Copyright 2019 Uber Technologies, Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\... | diff --git a/horovod/run/driver/driver_service.py b/horovod/run/driver/driver_service.py
index 7bf49a1110..254aed6a9b 100644
--- a/horovod/run/driver/driver_service.py
+++ b/horovod/run/driver/driver_service.py
@@ -145,7 +145,7 @@ def _driver_fn(all_host_names, local_host_names, settings):
"""
# Launch a TCP ... |
ranaroussi__yfinance-1536 | ParserError('Error tokenizing data. ...')
Hello,
I am running Python 3.11.2 and Yfinance 0.2.18.
I am trying to download historical data by executing the following line:
yf.download(tickers="AAPL", start='2021-1-1', auto_adjust=True, threads=True)
I am getting the following output (error):
"- AAPL: Parse... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# yfinance - market data downloader\n# https://github.com/ranaroussi/yfinance\n#\n# Copyright 2017-2019 Ran Aroussi\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the ... | [
{
"content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# yfinance - market data downloader\n# https://github.com/ranaroussi/yfinance\n#\n# Copyright 2017-2019 Ran Aroussi\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the ... | diff --git a/yfinance/utils.py b/yfinance/utils.py
index e07da2281..19b0d0bb6 100644
--- a/yfinance/utils.py
+++ b/yfinance/utils.py
@@ -930,8 +930,10 @@ def _migrate_cache_tkr_tz(self):
except TypeError:
_os.remove(old_cache_file_path)
else:
+ # Discard corrupt data:
... |
holoviz__holoviews-5570 | Clicking on legend for traces to enable/disable does not work with plotly back end. It does work on Bokeh
Thanks for contacting us! Please read and follow these instructions carefully, then delete this introductory text to keep your issue easy to read. Note that the issue tracker is NOT the place for usage questions an... | [
{
"content": "import uuid\nimport numpy as np\nimport param\nimport re\n\nfrom ... import Tiles\nfrom ...core import util\nfrom ...core.element import Element\nfrom ...core.spaces import DynamicMap\nfrom ...streams import Stream\nfrom ...util.transform import dim\nfrom ..plot import GenericElementPlot, GenericO... | [
{
"content": "import uuid\nimport numpy as np\nimport param\nimport re\n\nfrom ... import Tiles\nfrom ...core import util\nfrom ...core.element import Element\nfrom ...core.spaces import DynamicMap\nfrom ...streams import Stream\nfrom ...util.transform import dim\nfrom ..plot import GenericElementPlot, GenericO... | diff --git a/holoviews/plotting/plotly/element.py b/holoviews/plotting/plotly/element.py
index 5097b537e7..d9264457d9 100644
--- a/holoviews/plotting/plotly/element.py
+++ b/holoviews/plotting/plotly/element.py
@@ -244,7 +244,7 @@ def graph_options(self, element, ranges, style, is_geo=False, **kwargs):
if se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.