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
⌀
dmlc__dgl-4053
Fail to train graphsage model with ogbn-papers100M dataset and 8 GPU ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ## To Reproduce Steps to reproduce the behavior: 1. Open examples/pytorch/graphsage/lightning/node_classification.py 2. Replace `dataset = DglNodePropPredDataset('ogbn...
[ { "content": "import dgl\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport torch.optim as optim\nimport dgl.nn.pytorch as dglnn\nimport tqdm\nimport glob\nimport os\nfrom ogb.nodeproppred import DglNodePropPredDataset\nfrom torchmetrics import Accuracy\nimport torchmetrics.functional...
[ { "content": "import dgl\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport torch.optim as optim\nimport dgl.nn.pytorch as dglnn\nimport tqdm\nimport glob\nimport os\nfrom ogb.nodeproppred import DglNodePropPredDataset\nfrom torchmetrics import Accuracy\nimport torchmetrics.functional...
diff --git a/examples/pytorch/graphsage/lightning/node_classification.py b/examples/pytorch/graphsage/lightning/node_classification.py index acce3549c60c..2a73a06a98ce 100644 --- a/examples/pytorch/graphsage/lightning/node_classification.py +++ b/examples/pytorch/graphsage/lightning/node_classification.py @@ -116,6 +11...
python-discord__bot-1200
Null characters are not allowed in deleted message log Sentry Issue: [BOT-8E](https://sentry.io/organizations/python-discord/issues/1877134544/?referrer=github_integration) Not sure how a null character even got in there. Does it mean `\0`? ``` ResponseCodeError: Status: 400 Response: {'deletedmessage_set': [{'c...
[ { "content": "import asyncio\nimport difflib\nimport itertools\nimport logging\nimport typing as t\nfrom datetime import datetime\nfrom itertools import zip_longest\n\nimport discord\nfrom dateutil.relativedelta import relativedelta\nfrom deepdiff import DeepDiff\nfrom discord import Colour\nfrom discord.abc im...
[ { "content": "import asyncio\nimport difflib\nimport itertools\nimport logging\nimport typing as t\nfrom datetime import datetime\nfrom itertools import zip_longest\n\nimport discord\nfrom dateutil.relativedelta import relativedelta\nfrom deepdiff import DeepDiff\nfrom discord import Colour\nfrom discord.abc im...
diff --git a/bot/exts/moderation/modlog.py b/bot/exts/moderation/modlog.py index 41ed46b695..b01de0ee31 100644 --- a/bot/exts/moderation/modlog.py +++ b/bot/exts/moderation/modlog.py @@ -63,7 +63,7 @@ async def upload_log( 'id': message.id, 'author': message.author.id, ...
localstack__localstack-8461
bug: Error when invoking lambda if the `LAMBDA_DOCKER_FLAGS` is specified (Localstack 2.1.0) ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Error when invoking lambda if the `LAMBDA_DOCKER_FLAGS` is specified ### Expected Behavior _No response_ ### How are ...
[ { "content": "import dataclasses\nimport io\nimport ipaddress\nimport logging\nimport os\nimport re\nimport shlex\nimport sys\nimport tarfile\nimport tempfile\nfrom abc import ABCMeta, abstractmethod\nfrom enum import Enum, unique\nfrom pathlib import Path\nfrom typing import Dict, List, NamedTuple, Optional, T...
[ { "content": "import dataclasses\nimport io\nimport ipaddress\nimport logging\nimport os\nimport re\nimport shlex\nimport sys\nimport tarfile\nimport tempfile\nfrom abc import ABCMeta, abstractmethod\nfrom enum import Enum, unique\nfrom pathlib import Path\nfrom typing import Dict, List, NamedTuple, Optional, T...
diff --git a/localstack/utils/container_utils/container_client.py b/localstack/utils/container_utils/container_client.py index 8513a60872d8e..5deffaa49a163 100644 --- a/localstack/utils/container_utils/container_client.py +++ b/localstack/utils/container_utils/container_client.py @@ -1094,11 +1094,11 @@ def parse_addit...
certbot__certbot-9821
Issue renewing subdomains on certbot+certbot-dns-dnsmadeeasy v2.7.0+ I strongly believe this was an issue introduced in 2.7.0. I managed to get v2.6.3 reinstalled using a Python VENV and it worked fine again. You can find more details/discussion about this issue here: https://community.letsencrypt.org/t/dnsmadeeasy-...
[ { "content": "\"\"\"Common code for DNS Authenticator Plugins built on Lexicon.\"\"\"\nimport abc\nimport logging\nimport sys\nfrom types import ModuleType\nfrom typing import Any\nfrom typing import cast\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\...
[ { "content": "\"\"\"Common code for DNS Authenticator Plugins built on Lexicon.\"\"\"\nimport abc\nimport logging\nimport sys\nfrom types import ModuleType\nfrom typing import Any\nfrom typing import cast\nfrom typing import Dict\nfrom typing import List\nfrom typing import Mapping\nfrom typing import Optional\...
diff --git a/certbot/certbot/plugins/dns_common_lexicon.py b/certbot/certbot/plugins/dns_common_lexicon.py index 6e07e6dc4c7..be94e191baf 100644 --- a/certbot/certbot/plugins/dns_common_lexicon.py +++ b/certbot/certbot/plugins/dns_common_lexicon.py @@ -198,6 +198,10 @@ def _build_lexicon_config(self, domain: str) -> Co...
mne-tools__mne-python-10040
Annotation and crop - different onset points after reloading the saved croppend data #### Describe the bug I suspect that this issue is similar to the #9383. The issue only occurs when a raw instance created with Annotation. Originally labeled data as brain vision files are work fine. Cropping the instance, saving a...
[ { "content": "# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>\n# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>\n# Martin Luessi <mluessi@nmr.mgh.harvard.edu>\n# Denis Engemann <denis.engemann@gmail.com>\n# Teon Brooks <teon.brooks@gmail.com>\n#\n# License: BSD-3-Clau...
[ { "content": "# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>\n# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>\n# Martin Luessi <mluessi@nmr.mgh.harvard.edu>\n# Denis Engemann <denis.engemann@gmail.com>\n# Teon Brooks <teon.brooks@gmail.com>\n#\n# License: BSD-3-Clau...
diff --git a/doc/changes/latest.inc b/doc/changes/latest.inc index c7f57ad20d1..19bd51c2e35 100644 --- a/doc/changes/latest.inc +++ b/doc/changes/latest.inc @@ -93,6 +93,8 @@ Bugs - Fix bug in :func:`mne.get_montage_volume_labels` that set the maximum number of voxels to be included too low causing unwanted capping ...
wagtail__wagtail-4301
2.0b1 Bug: Draftail crash when rich text field is named "description" ### Issue Summary If a richtext field is called "description" (and presumably also "viewport") the script fails, because the following ```js const field = document.querySelector(`[name="${fieldName}"]`); ``` matches the first element on the ...
[ { "content": "import json\n\nfrom django.forms import Media, widgets\n\nfrom wagtail.admin.edit_handlers import RichTextFieldPanel\nfrom wagtail.admin.rich_text.converters.contentstate import ContentstateConverter\nfrom wagtail.core.rich_text import features as feature_registry\nfrom wagtail.utils.widgets impor...
[ { "content": "import json\n\nfrom django.forms import Media, widgets\n\nfrom wagtail.admin.edit_handlers import RichTextFieldPanel\nfrom wagtail.admin.rich_text.converters.contentstate import ContentstateConverter\nfrom wagtail.core.rich_text import features as feature_registry\nfrom wagtail.utils.widgets impor...
diff --git a/client/src/components/Draftail/index.js b/client/src/components/Draftail/index.js index f527a587c816..7489967497ee 100644 --- a/client/src/components/Draftail/index.js +++ b/client/src/components/Draftail/index.js @@ -43,11 +43,14 @@ export const wrapWagtailIcon = type => { /** * Initialises the Draft...
edgedb__edgedb-909
Limit dollar $$ quoting syntax $$ to ascii idents
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2014-present MagicStack Inc. and the EdgeDB 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...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2014-present MagicStack Inc. and the EdgeDB 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...
diff --git a/docs/edgeql/lexical.rst b/docs/edgeql/lexical.rst index e3702403180..c2ef45fad76 100644 --- a/docs/edgeql/lexical.rst +++ b/docs/edgeql/lexical.rst @@ -123,9 +123,9 @@ Production rules for :eql:type:`str` literal: : 'r"' `raw_content`* '"' | : `dollar_quote` `raw_content`* `dollar_q...
google__flax-362
Pooling: passing "sequence of `n` `(low, high)` integer pairs" resulting in TypeError Trying to pass a tuple or list of tuples to a pool operation's padding parameter gives out the following errors: `TypeError: Unknown padding type: (1, 1).` `TypeError : unhashable type: 'list' ` Sample code for reproducing the...
[ { "content": "# Copyright 2020 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 2020 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/nn/pooling.py b/flax/nn/pooling.py index 8038ac9f3..ba99b25a0 100644 --- a/flax/nn/pooling.py +++ b/flax/nn/pooling.py @@ -44,6 +44,14 @@ def pool(inputs, init, reduce_fn, window_shape, strides, padding): strides = strides or (1,) * len(window_shape) strides = (1,) + strides + (1,) dims = (1,...
Lightning-AI__torchmetrics-1150
RuntimeError when using MAP-metric ## 🐛 Bug Hi! I am training a detection model and use MAP-metric during validation. I got the following error at the validation_step: `RuntimeError: expected scalar type Float but found Bool`. ### To Reproduce Pick a faster rcnn model, I used `fasterrcnn_resnet50_fpn_v2`()...
[ { "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 6d33c26fcb9..bb5aa4ba71d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed unintentional downloading of `nltk.punkt` when `lsum` not in `rouge_keys` ([#1258](https://gith...
digitalfabrik__integreat-cms-1174
Filtering for POIs in event list not working ### Describe the Bug <!-- A clear and concise description of what the bug is. --> When filters for POIs in the event list are applied, all events are returned, independent from their location ### Steps to Reproduce 1. Go to event list 2. Filter for event location ...
[ { "content": "import logging\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.core.exceptions import PermissionDenied\nfrom django.shortcuts import render, redirect\nfrom django.utils.decorators import method_decorator\nfrom django.utils.translation import ugettext as _\nfro...
[ { "content": "import logging\n\nfrom django.conf import settings\nfrom django.contrib import messages\nfrom django.core.exceptions import PermissionDenied\nfrom django.shortcuts import render, redirect\nfrom django.utils.decorators import method_decorator\nfrom django.utils.translation import ugettext as _\nfro...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c2c79729c1..e5a7afd9b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ UNRELEASED * [ [#765](https://github.com/digitalfabrik/integreat-cms/issues/765) ] Add tests of form submissions * [ [#1163](https://github.com/digitalfabrik/integreat-cms/issues/1163) ] ...
saleor__saleor-1775
Improving product variant behaviour ### Steps to reproduce the problem 1. Choose any product in dashboard 2. Remove all variants 3. Try to go to the product page in storefront ### What I expected to happen Product page in storefront with "UNAVAILABLE" label. ### What happened instead/how it failed 500 co...
[ { "content": "import json\n\nfrom django import forms\nfrom django.utils.encoding import smart_text\nfrom django.utils.translation import pgettext_lazy\nfrom django_prices.templatetags.prices_i18n import gross\n\nfrom ..cart.forms import AddToCartForm\n\n\nclass VariantChoiceField(forms.ModelChoiceField):\n ...
[ { "content": "import json\n\nfrom django import forms\nfrom django.utils.encoding import smart_text\nfrom django.utils.translation import pgettext_lazy\nfrom django_prices.templatetags.prices_i18n import gross\n\nfrom ..cart.forms import AddToCartForm\n\n\nclass VariantChoiceField(forms.ModelChoiceField):\n ...
diff --git a/saleor/product/forms.py b/saleor/product/forms.py index 59f99c536a1..df7b23eeeba 100644 --- a/saleor/product/forms.py +++ b/saleor/product/forms.py @@ -31,8 +31,8 @@ def update_field_data(self, variants, cart): vi.image.image.url for vi in variant.variant_images.all()] for var...
plone__Products.CMFPlone-973
Group administration: AttributeError: 'NoneType' object has no attribute 'getGroupTitleOrName' /Plone2/@@usergroup-groupmembership?groupname=None gives me Here is the full error message: Display traceback as text Traceback (innermost last): Module ZPublisher.Publish, line 138, in publish Module ZPublisher.mapply, ...
[ { "content": "from Products.CMFPlone import PloneMessageFactory as _\nfrom zExceptions import Forbidden\nfrom Products.CMFCore.utils import getToolByName\nfrom Products.CMFPlone.controlpanel.browser.usergroups import \\\n UsersGroupsControlPanelView\nfrom Products.CMFPlone.utils import normalizeString\n\n\nc...
[ { "content": "from Products.CMFPlone import PloneMessageFactory as _\nfrom zExceptions import Forbidden\nfrom Products.CMFCore.utils import getToolByName\nfrom Products.CMFPlone.controlpanel.browser.usergroups import \\\n UsersGroupsControlPanelView\nfrom Products.CMFPlone.utils import normalizeString\n\n\nc...
diff --git a/CHANGES.rst b/CHANGES.rst index 0f1b060eb9..1504189766 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,6 +8,9 @@ Changelog 5.0rc3 (unreleased) ------------------- +- Fix #935: Fix group membership form rendering when group can't be found. + [esteele] + - Fix redirect for syndication-controlpanel. ...
getpelican__pelican-1795
output warning during unknown content replacement https://github.com/getpelican/pelican/blob/master/pelican/contents.py#L215 output a warning if what is invalid and no substitutions occur because of it
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\nimport six\nfrom six.moves.urllib.parse import urlparse, urlunparse\n\nimport copy\nimport locale\nimport logging\nimport functools\nimport os\nimport re\nimport sys\n\nimport pytz\n\nfrom pelican import signals\nfro...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\nimport six\nfrom six.moves.urllib.parse import urlparse, urlunparse\n\nimport copy\nimport locale\nimport logging\nimport functools\nimport os\nimport re\nimport sys\n\nimport pytz\n\nfrom pelican import signals\nfro...
diff --git a/pelican/contents.py b/pelican/contents.py index 0e91933bd..a6b8cc5f1 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -248,6 +248,11 @@ def replacer(m): origin = '/'.join((siteurl, Category(path, self.settings).url)) elif what == 'tag': origin = '...
scipy__scipy-16383
BUG: RegularGridInterpolator error message is wrong ### Describe your issue. The regularGridInterpolator checks that the data to be interpolated has the same dimensions as the reference data points. However if that checks fails, the error message reports the wrong dimensions: In scipy/interpolate/_rgi.py at line...
[ { "content": "__all__ = ['RegularGridInterpolator', 'interpn']\n\nimport itertools\n\nimport numpy as np\n\nfrom .interpnd import _ndim_coords_from_arrays\nfrom ._cubic import PchipInterpolator\nfrom ._bsplines import make_interp_spline\nfrom ._fitpack2 import RectBivariateSpline\n\n\ndef _make_points_and_value...
[ { "content": "__all__ = ['RegularGridInterpolator', 'interpn']\n\nimport itertools\n\nimport numpy as np\n\nfrom .interpnd import _ndim_coords_from_arrays\nfrom ._cubic import PchipInterpolator\nfrom ._bsplines import make_interp_spline\nfrom ._fitpack2 import RectBivariateSpline\n\n\ndef _make_points_and_value...
diff --git a/scipy/interpolate/_rgi.py b/scipy/interpolate/_rgi.py index b1fb4f612571..908513e3b89c 100644 --- a/scipy/interpolate/_rgi.py +++ b/scipy/interpolate/_rgi.py @@ -304,8 +304,8 @@ def __call__(self, xi, method=None): xi = _ndim_coords_from_arrays(xi, ndim=ndim) if xi.shape[-1] != len(self.g...
openai__gym-210
InterpretabilityCartpoleObservations-v0 environment runtime warning Taking a single step with a random action in the InterpretabilityCartpoleObservations-v0 environment, generates the following error: _RuntimeWarning: invalid value encountered in greater_equal return x.shape == self.shape and (x >= self.low).all() and...
[ { "content": "\"\"\"\nClassic cart-pole system implemented by Rich Sutton et al.\nCopied from https://webdocs.cs.ualberta.ca/~sutton/book/code/pole.c\n\"\"\"\n\nimport logging\nimport math\nimport gym\nfrom gym import spaces\nfrom gym.utils import seeding\nimport numpy as np\n\nlogger = logging.getLogger(__name...
[ { "content": "\"\"\"\nClassic cart-pole system implemented by Rich Sutton et al.\nCopied from https://webdocs.cs.ualberta.ca/~sutton/book/code/pole.c\n\"\"\"\n\nimport logging\nimport math\nimport gym\nfrom gym import spaces\nfrom gym.utils import seeding\nimport numpy as np\n\nlogger = logging.getLogger(__name...
diff --git a/gym/envs/classic_control/cartpole.py b/gym/envs/classic_control/cartpole.py index 1e6310beca9..03dd0df5858 100644 --- a/gym/envs/classic_control/cartpole.py +++ b/gym/envs/classic_control/cartpole.py @@ -33,7 +33,12 @@ def __init__(self): self.x_threshold = 2.4 # Angle limit set to 2 * ...
learningequality__kolibri-4096
The new learners and coachs account, can't view the kolibri 0.11.0a3 at first login <!-- Instructions: * Fill out the sections below, replace …'s with information about your issue * Use the 'preview' function above this text box to verify formatting before submitting --> ### Observed behavior When I create a ...
[ { "content": "from django import http\nfrom django.conf import settings\nfrom django.contrib.auth import logout\nfrom django.core.urlresolvers import translate_url\nfrom django.http import Http404\nfrom django.http import HttpResponseRedirect\nfrom django.utils.http import is_safe_url\nfrom django.utils.transla...
[ { "content": "from django import http\nfrom django.conf import settings\nfrom django.contrib.auth import logout\nfrom django.core.urlresolvers import translate_url\nfrom django.http import Http404\nfrom django.http import HttpResponseRedirect\nfrom django.utils.http import is_safe_url\nfrom django.utils.transla...
diff --git a/kolibri/core/views.py b/kolibri/core/views.py index dcadb8a276f..e50e3ae4b5f 100644 --- a/kolibri/core/views.py +++ b/kolibri/core/views.py @@ -59,6 +59,13 @@ def logout_view(request): def get_url_by_role(role, first_login): obj = next((hook for hook in RoleBasedRedirectHook().registered_hooks ...
Netflix__lemur-3264
ACME Revoke Failed 'AcmeDnsHandler' object has no attribute 'acme' Traceback (most recent call last): File "/opt/lemur/lemur/common/schema.py", line 160, in decorated_function resp = f(*args, **kwargs) File "/opt/lemur/lemur/certificates/views.py", line 1444, in put plugin.revoke_certificate(cert, data...
[ { "content": "\"\"\"\n.. module: lemur.plugins.lemur_acme.plugin\n :platform: Unix\n :synopsis: This module contains handlers for certain acme related tasks. It needed to be refactored to avoid circular imports\n :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more\n :license: Apache, see LICE...
[ { "content": "\"\"\"\n.. module: lemur.plugins.lemur_acme.plugin\n :platform: Unix\n :synopsis: This module contains handlers for certain acme related tasks. It needed to be refactored to avoid circular imports\n :copyright: (c) 2018 by Netflix Inc., see AUTHORS for more\n :license: Apache, see LICE...
diff --git a/lemur/plugins/lemur_acme/acme_handlers.py b/lemur/plugins/lemur_acme/acme_handlers.py index c1ab528134..55e4a07621 100644 --- a/lemur/plugins/lemur_acme/acme_handlers.py +++ b/lemur/plugins/lemur_acme/acme_handlers.py @@ -224,7 +224,7 @@ def get_domains(self, options): def revoke_certificate(self, cer...
lnbits__lnbits-888
Tip Jar extension broken Tip Jars are broken on v0.9.1 Setup: - venv python based setup (python 3.9.13) - LNBits v0.9.1 - Backend: PostgreSQL - LND-Rest connection Steps to reproduce: - add extension "Tip Jar" - choose wallet - do not choose onchain - test tip jar, fill out donator and amount, hit submit...
[ { "content": "from typing import Optional\n\nfrom lnbits.db import SQLITE\n\nfrom ..satspay.crud import delete_charge # type: ignore\nfrom . import db\nfrom .models import Tip, TipJar, createTipJar\n\n\nasync def create_tip(\n id: int, wallet: str, message: str, name: str, sats: int, tipjar: str\n) -> Tip:\...
[ { "content": "from typing import Optional\n\nfrom lnbits.db import SQLITE\n\nfrom ..satspay.crud import delete_charge # type: ignore\nfrom . import db\nfrom .models import Tip, TipJar, createTipJar\n\n\nasync def create_tip(\n id: int, wallet: str, message: str, name: str, sats: int, tipjar: str\n) -> Tip:\...
diff --git a/lnbits/extensions/tipjar/crud.py b/lnbits/extensions/tipjar/crud.py index 29e1a4694f..046b94911f 100644 --- a/lnbits/extensions/tipjar/crud.py +++ b/lnbits/extensions/tipjar/crud.py @@ -76,10 +76,10 @@ async def get_tipjars(wallet_id: str) -> Optional[list]: async def delete_tipjar(tipjar_id: int) -> No...
Lightning-AI__torchmetrics-2211
MetricCollection just recomputes the first metric after first .compute call if compute_groups is enabled ## 🐛 Bug I think the MetricCollection was designed to be used as follows: ``` metrics = MetricCollection([...]) for _ in range(...): metrics.update(...) metrics.compute() metrics.reset() ``` But ...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b248b4e3d49..74ab706d6a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed bug in `Metric._reduce_states(...)` when using `dist_sync_fn="cat"` ([#2226](https://github.com...
pymedusa__Medusa-9958
Same query to same tracker twice It seems this whould not be happening as per conversation in discord with @p0psicles ![image](https://user-images.githubusercontent.com/3207791/137594661-ac246f81-d01d-40fb-8e7e-41f63098c97d.png) ![image](https://user-images.githubusercontent.com/3207791/137594675-97de1cfb-70ae-4c5...
[ { "content": "# coding=utf-8\n\n\"\"\"Provider code for Torznab provider.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport os\nfrom collections import namedtuple\n\nfrom medusa import (\n app,\n tv,\n)\nfrom medusa.bs4_parser import BS4Parser\nfrom medusa.helper.common import con...
[ { "content": "# coding=utf-8\n\n\"\"\"Provider code for Torznab provider.\"\"\"\n\nfrom __future__ import unicode_literals\n\nimport logging\nimport os\nfrom collections import namedtuple\n\nfrom medusa import (\n app,\n tv,\n)\nfrom medusa.bs4_parser import BS4Parser\nfrom medusa.helper.common import con...
diff --git a/medusa/providers/torrent/torznab/torznab.py b/medusa/providers/torrent/torznab/torznab.py index edfe0149d9..0aa2ba4838 100644 --- a/medusa/providers/torrent/torznab/torznab.py +++ b/medusa/providers/torrent/torznab/torznab.py @@ -155,8 +155,8 @@ def search(self, search_strings, age=0, ep_obj=None, force_qu...
psf__black-2437
Failing to parse single-quote f-string with backslash inside it **Describe the bug** The formatter is failing to parse single quote f-string as it cannot include a backslash inside it. **To Reproduce** 1. Take this test.py containing: ```python b = "example1" sts = "example2" f"\"{b}\"{' ' * (long-len(b)+1...
[ { "content": "\"\"\"\nSimple formatting on strings. Further string formatting code is in trans.py.\n\"\"\"\n\nimport regex as re\nimport sys\nfrom typing import List, Pattern\n\n\nSTRING_PREFIX_CHARS = \"furbFURB\" # All possible string prefix characters.\n\n\ndef sub_twice(regex: Pattern[str], replacement: st...
[ { "content": "\"\"\"\nSimple formatting on strings. Further string formatting code is in trans.py.\n\"\"\"\n\nimport regex as re\nimport sys\nfrom typing import List, Pattern\n\n\nSTRING_PREFIX_CHARS = \"furbFURB\" # All possible string prefix characters.\n\n\ndef sub_twice(regex: Pattern[str], replacement: st...
diff --git a/CHANGES.md b/CHANGES.md index 3a96029bf5c..22ddc423e55 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,8 @@ - Add support for formatting Jupyter Notebook files (#2357) - Move from `appdirs` dependency to `platformdirs` (#2375) - Present a more user-friendly error if .gitignore is invalid (#2414) +- ...
ESMCI__cime-1209
Add check on symbolic links in sourcemods directories when cloning When working with SourceMods I tend to create symbolic links to various places, notably the sandbox from where the source originates. This is helpful for diffing code and for archiving purposes. When cloning a case these symbolic links are not re-create...
[ { "content": "\"\"\"\nWrapper around all env XML for a case.\n\nAll interaction with and between the module files in XML/ takes place\nthrough the Case module.\n\"\"\"\nfrom copy import deepcopy\nimport glob, os, shutil, math, string\nfrom CIME.XML.standard_module_setup import *\n\nfrom CIME.utils ...
[ { "content": "\"\"\"\nWrapper around all env XML for a case.\n\nAll interaction with and between the module files in XML/ takes place\nthrough the Case module.\n\"\"\"\nfrom copy import deepcopy\nimport glob, os, shutil, math, string\nfrom CIME.XML.standard_module_setup import *\n\nfrom CIME.utils ...
diff --git a/scripts/lib/CIME/case.py b/scripts/lib/CIME/case.py index 41223cfb63d..503af4ca664 100644 --- a/scripts/lib/CIME/case.py +++ b/scripts/lib/CIME/case.py @@ -1016,8 +1016,10 @@ def create_clone(self, newcase, keepexe=False, mach_dir=None, project=None, cime shutil.copy(item, newcaseroot) ...
networkx__networkx-5819
In `nx.closeness_centrality(G, distance='distance')` even though `distance` doesn't exist in the edge attribute dictionary, it doesn't raise any error or warning. When I calculate the centrality of nodes in network, I use both weighted centrality and unweighted centrality. "Unweighted centrality" means that "all edges ...
[ { "content": "\"\"\"\nCloseness centrality measures.\n\"\"\"\nimport functools\n\nimport networkx as nx\nfrom networkx.exception import NetworkXError\nfrom networkx.utils.decorators import not_implemented_for\n\n__all__ = [\"closeness_centrality\", \"incremental_closeness_centrality\"]\n\n\ndef closeness_centra...
[ { "content": "\"\"\"\nCloseness centrality measures.\n\"\"\"\nimport functools\n\nimport networkx as nx\nfrom networkx.exception import NetworkXError\nfrom networkx.utils.decorators import not_implemented_for\n\n__all__ = [\"closeness_centrality\", \"incremental_closeness_centrality\"]\n\n\ndef closeness_centra...
diff --git a/networkx/algorithms/centrality/closeness.py b/networkx/algorithms/centrality/closeness.py index 61af12c4391..4fc2caadeee 100644 --- a/networkx/algorithms/centrality/closeness.py +++ b/networkx/algorithms/centrality/closeness.py @@ -49,7 +49,9 @@ def closeness_centrality(G, u=None, distance=None, wf_improve...
ray-project__ray-9561
[core] Raylets in local cluster do not log to separate files <!--Please include [tune], [rllib], [autoscaler] etc. in the issue title if relevant--> ### What is the problem? *Ray version and other system information (Python version, TensorFlow version, OS):* 0.9dev When multiple raylets are started locally, it...
[ { "content": "import atexit\nimport collections\nimport datetime\nimport errno\nimport os\nimport logging\nimport random\nimport signal\nimport socket\nimport subprocess\nimport sys\nimport tempfile\nimport time\n\nimport ray\nimport ray.ray_constants as ray_constants\nimport ray.services\nimport ray.utils\nfro...
[ { "content": "import atexit\nimport collections\nimport datetime\nimport errno\nimport os\nimport logging\nimport random\nimport signal\nimport socket\nimport subprocess\nimport sys\nimport tempfile\nimport time\n\nimport ray\nimport ray.ray_constants as ray_constants\nimport ray.services\nimport ray.utils\nfro...
diff --git a/python/ray/node.py b/python/ray/node.py index ca120b0f09a93..d89be2ee980c6 100644 --- a/python/ray/node.py +++ b/python/ray/node.py @@ -647,7 +647,8 @@ def start_raylet(self, use_valgrind=False, use_profiler=False): use_profiler (bool): True if we should start the process in the ...
DataBiosphere__toil-3795
`readGlobalFile(symlink=False)` can still yield a symlink when used with fileJobStore and symlinked imports The `FileJobStore.readFile()` method will give you a hardlink to the stored file in the job store, if you call it with `symlink=False` and it thinks a hardlink is possible: https://github.com/DataBiosphere/toil/...
[ { "content": "# Copyright (C) 2015-2021 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
[ { "content": "# Copyright (C) 2015-2021 Regents of the University of California\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-...
diff --git a/src/toil/jobStores/fileJobStore.py b/src/toil/jobStores/fileJobStore.py index 203c8509d8..3ff0d19357 100644 --- a/src/toil/jobStores/fileJobStore.py +++ b/src/toil/jobStores/fileJobStore.py @@ -474,6 +474,10 @@ def readFile(self, jobStoreFileID, localFilePath, symlink=False): raise ...
AUTOMATIC1111__stable-diffusion-webui-10473
[Bug]: Checkpoint merger error ### Is there an existing issue for this? - [X] I have searched the existing issues and checked the recent builds/commits ### What happened? Error when trying to merge checkpoint ``` Loading C:\Automatic1111\models\Stable-diffusion\realisticVisionV20_v20_full.safetensors... Loading...
[ { "content": "import os\r\nimport re\r\nimport shutil\r\nimport json\r\n\r\n\r\nimport torch\r\nimport tqdm\r\n\r\nfrom modules import shared, images, sd_models, sd_vae, sd_models_config\r\nfrom modules.ui_common import plaintext_to_html\r\nimport gradio as gr\r\nimport safetensors.torch\r\n\r\n\r\ndef run_pngi...
[ { "content": "import os\r\nimport re\r\nimport shutil\r\nimport json\r\n\r\n\r\nimport torch\r\nimport tqdm\r\n\r\nfrom modules import shared, images, sd_models, sd_vae, sd_models_config\r\nfrom modules.ui_common import plaintext_to_html\r\nimport gradio as gr\r\nimport safetensors.torch\r\n\r\n\r\ndef run_pngi...
diff --git a/modules/extras.py b/modules/extras.py index bdf9b3b7a26..aabb3b2623b 100644 --- a/modules/extras.py +++ b/modules/extras.py @@ -242,9 +242,10 @@ def filename_nothing(): shared.state.textinfo = "Saving" print(f"Saving to {output_modelname}...") - metadata = {"format": "pt", "sd_merge_model...
PokemonGoF__PokemonGo-Bot-4230
Request: Please add "log_stats" to colored_logging handler ### Short Description Please add "log_stats" to colored_logging handler ### Possible solution The following line can be added to colored_logging_handler.py ### _'log_stats': 'magenta',_ ### How it would help others It will be easy to track the progress with ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom pokemongo_bot.event_manager import EventHandler\n\n\nclass ColoredLoggingHandler(EventHandler):\n EVENT_COLOR_MAP = {\n 'api_error': 'red',\n 'bot_exit': ...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport logging\n\nfrom pokemongo_bot.event_manager import EventHandler\n\n\nclass ColoredLoggingHandler(EventHandler):\n EVENT_COLOR_MAP = {\n 'api_error': 'red',\n 'bot_exit': ...
diff --git a/pokemongo_bot/event_handlers/colored_logging_handler.py b/pokemongo_bot/event_handlers/colored_logging_handler.py index cd90012a22..d283d1bc5a 100644 --- a/pokemongo_bot/event_handlers/colored_logging_handler.py +++ b/pokemongo_bot/event_handlers/colored_logging_handler.py @@ -55,6 +55,8 @@ class ColoredLo...
aws-cloudformation__cfn-lint-1571
E2004 issue with AWS::SSM::Parameter::Value<String> Parameters *cfn-lint version: (`cfn-lint --version`)* 0.33.0 *Description of issue.* When using an SSM paramter store lookup to get a CIDR Range to use in a Security group, cfn-lint raised an E2004 error. ```yaml Parameters: VpcID: Description: ID of ...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport re\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\n\nfrom cfnlint.helpers import REGEX_CIDR\n\n\nclass CidrAllowedValues(CloudFormation...
[ { "content": "\"\"\"\nCopyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\nSPDX-License-Identifier: MIT-0\n\"\"\"\nimport re\nfrom cfnlint.rules import CloudFormationLintRule\nfrom cfnlint.rules import RuleMatch\n\nfrom cfnlint.helpers import REGEX_CIDR\n\n\nclass CidrAllowedValues(CloudFormation...
diff --git a/src/cfnlint/rules/parameters/CidrAllowedValues.py b/src/cfnlint/rules/parameters/CidrAllowedValues.py index cbdd03df62..66c0404b58 100644 --- a/src/cfnlint/rules/parameters/CidrAllowedValues.py +++ b/src/cfnlint/rules/parameters/CidrAllowedValues.py @@ -58,6 +58,11 @@ def check_cidr_ref(self, value, path, ...
napari__napari-2930
SettingsManager._load not working with Field(default_factory=...) ## 🐛 Bug Ran into a [test failure](https://github.com/napari/napari/pull/2695/checks?check_run_id=2925027700#step:7:250) on #2695 that looks to be a bug in the Settings Manager. The preferred way to add a default mutable container to a pydantic mode...
[ { "content": "\"\"\"Settings management.\n\"\"\"\n\nimport json\nimport os\nimport warnings\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Optional, Union\n\nfrom appdirs import user_config_dir\nfrom yaml import safe_dump, safe_load\n\nfrom ...utils.translations import trans\nfrom .._base import...
[ { "content": "\"\"\"Settings management.\n\"\"\"\n\nimport json\nimport os\nimport warnings\nfrom pathlib import Path\nfrom typing import Any, Dict, List, Optional, Union\n\nfrom appdirs import user_config_dir\nfrom yaml import safe_dump, safe_load\n\nfrom ...utils.translations import trans\nfrom .._base import...
diff --git a/napari/utils/settings/_manager.py b/napari/utils/settings/_manager.py index 54782251f85..f878721a566 100644 --- a/napari/utils/settings/_manager.py +++ b/napari/utils/settings/_manager.py @@ -179,11 +179,9 @@ def _load(self): ) ) - _section_defaults = {} -...
googleapis__google-auth-library-python-640
TODO: undo pin of 'aiohttp' once 'aioresponses' releases a fix Environment details - OS: $ sw_vers ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G6020 - Python version: 3.6, 3.7, 3.8 - pip version: pip 20.2.4 - `google-auth` version: 5906c8583ca351b5385a079a30521a9a8a0c7c59 ##...
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/noxfile.py b/noxfile.py index 388814491..b92f4939d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -30,12 +30,7 @@ "grpcio", ] -ASYNC_DEPENDENCIES = [ - "pytest-asyncio", - "aiohttp < 3.7.0dev", - "aioresponses", - "asynctest", -] +ASYNC_DEPENDENCIES = ["pytest-asyncio", "aioresponses", "as...
pypi__warehouse-12701
Classifiers: Python version sort order <!-- NOTE: This issue should be for problems with PyPI itself, including: * pypi.org * test.pypi.org * files.pythonhosted.org This issue should NOT be for a project installed from PyPI. If you are having an issue with a specific package, you should ...
[ { "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_filters.py b/tests/unit/test_filters.py index f556b6171119..97f78d67144b 100644 --- a/tests/unit/test_filters.py +++ b/tests/unit/test_filters.py @@ -146,6 +146,19 @@ def test_format_tags(inp, expected): ["Foo :: Bar :: Baz", "Vleep :: Foo", "Foo :: Bar :: Qux"], [...
qutip__qutip-2398
qutip.propagator and array with a single value Hi, I may have missed something but from the docstrings, I would expect the last two lines of this example script to actually return the same thing: ```python >>> import numpy as np >>> import qutip >>> omega_0 = 1.0 * 2 * np.pi >>> Omega = 0.1 * 2 * np.pi >>> o...
[ { "content": "__all__ = ['Propagator', 'propagator', 'propagator_steadystate']\n\nimport numbers\nimport numpy as np\n\nfrom .. import Qobj, qeye, qeye_like, unstack_columns, QobjEvo, liouvillian\nfrom ..core import data as _data\nfrom .mesolve import mesolve, MESolver\nfrom .sesolve import sesolve, SESolver\nf...
[ { "content": "__all__ = ['Propagator', 'propagator', 'propagator_steadystate']\n\nimport numbers\nimport numpy as np\n\nfrom .. import Qobj, qeye, qeye_like, unstack_columns, QobjEvo, liouvillian\nfrom ..core import data as _data\nfrom .mesolve import mesolve, MESolver\nfrom .sesolve import sesolve, SESolver\nf...
diff --git a/qutip/solver/propagator.py b/qutip/solver/propagator.py index f64bf377d0..01fc442182 100644 --- a/qutip/solver/propagator.py +++ b/qutip/solver/propagator.py @@ -28,7 +28,11 @@ def propagator(H, t, c_ops=(), args=None, options=None, **kwargs): that can be made into :obj:`.QobjEvo` are also accepte...
SCons__scons-3870
Update SCons API sphinx config to pull version from SCons/__init__.py Update SCons API sphinx config to pull version from `SCons/__init__.py` See `doc/sphinx/conf.py`
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# SCons documentation build configuration file, created by\n# sphinx-quickstart on Mon Apr 30 09:36:53 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration va...
[ { "content": "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n#\n# SCons documentation build configuration file, created by\n# sphinx-quickstart on Mon Apr 30 09:36:53 2018.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration va...
diff --git a/SCons/Environment.xml b/SCons/Environment.xml index a185815e64..cfa99db361 100644 --- a/SCons/Environment.xml +++ b/SCons/Environment.xml @@ -87,7 +87,7 @@ Note that, by default, &scons; does <emphasis>not</emphasis> -propagate the environment in force when you +propagate the environment in effect when ...
googleapis__google-auth-library-python-1294
service account cred returns bytes token instead of str for self signed jwt The token type is wrong
[ { "content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2016 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/google/oauth2/service_account.py b/google/oauth2/service_account.py index bb2670525..a0268970c 100644 --- a/google/oauth2/service_account.py +++ b/google/oauth2/service_account.py @@ -418,7 +418,7 @@ def refresh(self, request): # subject exists, then we should not use self signed JWT. if ...
crytic__slither-403
Fix embark and etherscan GH actions - Embark fails on all our github actions (including crytic-compile) since ~1 month. The tests work locally, but it seems that some recent changes in the latest embark makes it fails on a CI - Etherscan has now a constraint on the number of request per IP, which makes the CI fails fr...
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='slither-analyzer',\n description='Slither is a Solidity static analysis framework written in Python 3.',\n url='https://github.com/crytic/slither',\n author='Trail of Bits',\n version='0.6.9',\n packages=find_packages(...
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='slither-analyzer',\n description='Slither is a Solidity static analysis framework written in Python 3.',\n url='https://github.com/crytic/slither',\n author='Trail of Bits',\n version='0.6.9',\n packages=find_packages(...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b776828ff3..4ccc09dc00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,5 +38,6 @@ jobs: - name: Run Tests env: TEST_TYPE: ${{ matrix.type }} + GITHUB_ETHERSCAN: ${{ secrets.GITHUB_ETHERSCAN }} ...
pyinstaller__pyinstaller-2990
base_library.zip is not reproducible I'm currently trying to make [Electrum](https://github.com/spesmilo/electrum) builds reproducible. I've already set `PYTHON_HASHSEED` so that's not the issue. Apparently, `base_library.zip` differs when it's rebuilt: <details> <summary>Console output (Click to expand)</summary...
[ { "content": "# -*- coding: utf-8 -*-\n#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2017, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full licens...
[ { "content": "# -*- coding: utf-8 -*-\n#-----------------------------------------------------------------------------\n# Copyright (c) 2005-2017, PyInstaller Development Team.\n#\n# Distributed under the terms of the GNU General Public License with exception\n# for distributing bootloader.\n#\n# The full licens...
diff --git a/PyInstaller/depend/utils.py b/PyInstaller/depend/utils.py index 22027c68cd..da144829af 100644 --- a/PyInstaller/depend/utils.py +++ b/PyInstaller/depend/utils.py @@ -91,7 +91,9 @@ def _write_long(f, x): _write_long(fc, timestamp) _write_long(fc, siz...
ytdl-org__youtube-dl-8354
Vimeo: Chokes on --add-metadata ``` youtube-dl --ignore-config --verbose --download-archive ~/.ytdlarchive --no-overwrites --call-home --continue --write-info-json --write-description --write-thumbnail --merge-output-format mkv--all-subs --sub-format srt --convert-subs srt --write-sub --add-metadata https://vimeo.com...
[ { "content": "from __future__ import unicode_literals\n\nimport io\nimport os\nimport subprocess\nimport time\n\n\nfrom .common import AudioConversionError, PostProcessor\n\nfrom ..compat import (\n compat_subprocess_get_DEVNULL,\n)\nfrom ..utils import (\n encodeArgument,\n encodeFilename,\n get_ex...
[ { "content": "from __future__ import unicode_literals\n\nimport io\nimport os\nimport subprocess\nimport time\n\n\nfrom .common import AudioConversionError, PostProcessor\n\nfrom ..compat import (\n compat_subprocess_get_DEVNULL,\n)\nfrom ..utils import (\n encodeArgument,\n encodeFilename,\n get_ex...
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index daca5d81480..48f86e21c6f 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -391,6 +391,10 @@ def run(self, info): for (name, value) in metadata.items(): options.exte...
mozilla__pontoon-2370
Set direction on placeables *This issue was created automatically by a [script](https://github.com/mathjazz/bugzilla2github/).* ## [Bug 1692620](https://bugzilla.mozilla.org/show_bug.cgi?id=1692620) Bug Reporter: @mathjazz Created attachment 9202997 Screenshot Everywhere we mark up placeables (i.e. everywhere ...
[ { "content": "import errno\nimport os\n\nfrom pontoon.base.models import Resource\nfrom pontoon.base.utils import extension_in, first\n\n\ndef is_hidden(path):\n \"\"\"\n Return true if path contains hidden directory.\n \"\"\"\n for p in path.split(os.sep):\n if p.startswith(\".\"):\n ...
[ { "content": "import errno\nimport os\n\nfrom pontoon.base.models import Resource\nfrom pontoon.base.utils import extension_in, first\n\n\ndef is_hidden(path):\n \"\"\"\n Return true if path contains hidden directory.\n \"\"\"\n for p in path.split(os.sep):\n if p.startswith(\".\"):\n ...
diff --git a/pontoon/sync/tests/__init__.py b/pontoon/sync/tests/__init__.py index 446e64ffdb..253a2c09cc 100644 --- a/pontoon/sync/tests/__init__.py +++ b/pontoon/sync/tests/__init__.py @@ -27,6 +27,10 @@ os.path.dirname(__file__), "project-config-checkout", ) +LOCALE_SEPARATOR_TEST_PATH = os.path.join( + ...
hydroshare__hydroshare-4917
prevent timezone warnings during session logging **Describe the feature you'd like and what it will do** Most actions within HS result in at least 4 RuntimeWarnings to be logged Example creating a resource: ![image](https://user-images.githubusercontent.com/17934193/209165319-7e97eb58-2e23-4ee1-9095-0c5beeef0a8e.png...
[ { "content": "from datetime import datetime, timedelta\n\nfrom django.db import models\nfrom django.db.models import F\nfrom django.core import signing\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.contrib.auth.models import User\n\nfrom theme.models imp...
[ { "content": "from datetime import datetime, timedelta\nfrom django.utils import timezone\n\nfrom django.db import models\nfrom django.db.models import F\nfrom django.core import signing\nfrom django.conf import settings\nfrom django.core.exceptions import ImproperlyConfigured\nfrom django.contrib.auth.models i...
diff --git a/hs_tracking/models.py b/hs_tracking/models.py index 4aa38fb0e3..e6d81fa14e 100644 --- a/hs_tracking/models.py +++ b/hs_tracking/models.py @@ -1,4 +1,5 @@ from datetime import datetime, timedelta +from django.utils import timezone from django.db import models from django.db.models import F @@ -30,6 +31...
dmlc__dgl-1019
[Bug] dgl.to_homo fails on given example in pytorch 1.3.1 ## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ## To Reproduce Simply run the `to_homo` example ``` import dgl follows_g = dgl.graph([(0, 1), (1, 2)], 'user', 'follows') devs_g = dgl.bipartite([(0, 0), (1, 1)], 'develop...
[ { "content": "\"\"\"Module for converting graph from/to other object.\"\"\"\nfrom collections import defaultdict\nimport numpy as np\nimport scipy as sp\nimport networkx as nx\n\nfrom . import backend as F\nfrom . import heterograph_index\nfrom .heterograph import DGLHeteroGraph, combine_frames\nfrom . import g...
[ { "content": "\"\"\"Module for converting graph from/to other object.\"\"\"\nfrom collections import defaultdict\nimport numpy as np\nimport scipy as sp\nimport networkx as nx\n\nfrom . import backend as F\nfrom . import heterograph_index\nfrom .heterograph import DGLHeteroGraph, combine_frames\nfrom . import g...
diff --git a/python/dgl/convert.py b/python/dgl/convert.py index 57715290efd7..e718b70ad4bc 100644 --- a/python/dgl/convert.py +++ b/python/dgl/convert.py @@ -590,8 +590,8 @@ def to_homo(G): srctype, _, dsttype = etype src, dst = G.all_edges(etype=etype, order='eid') num_edges = len(src) - ...
pyca__cryptography-2186
AssertionError when accessing extensions of an X.509 cert with bad policies ``` pytb Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/alex_gaynor/projects/cryptography/src/cryptography/hazmat/backends/openssl/x509.py", line 346, in extensions return _CERTIFICATE_EXTENSION_PARS...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport datetime\nimport ipaddress\nfrom email...
[ { "content": "# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and the BSD License. See the LICENSE file in the root of this repository\n# for complete details.\n\nfrom __future__ import absolute_import, division, print_function\n\nimport datetime\nimport ipaddress\nfrom email...
diff --git a/docs/development/test-vectors.rst b/docs/development/test-vectors.rst index ea44a46c3f49..d400e662cc88 100644 --- a/docs/development/test-vectors.rst +++ b/docs/development/test-vectors.rst @@ -233,6 +233,8 @@ Custom X.509 Vectors * ``cp_user_notice_no_explicit_text.pem`` - An RSA 2048 bit self-signed ...
pypa__setuptools-2934
[Docs] GitHub reference in changelog rendered as email ### Summary In [the changelog for v59.0.0](https://setuptools.pypa.io/en/latest/history.html#v59-0-0), a `distutils` commit is referenced using `pypa/distutils@f1b0a2b` in the RST source. Although it should link to pypa/distutils@f1b0a2b (`https://github.com/pypa/...
[ { "content": "import os\nimport sys\n\nextensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']\n\nmaster_doc = \"index\"\n\nlink_files = {\n '../CHANGES.rst': dict(\n using=dict(\n BB='https://bitbucket.org',\n GH='https://github.com',\n ),\n re...
[ { "content": "import os\nimport sys\n\nextensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']\n\nmaster_doc = \"index\"\n\nlink_files = {\n '../CHANGES.rst': dict(\n using=dict(\n BB='https://bitbucket.org',\n GH='https://github.com',\n ),\n re...
diff --git a/docs/conf.py b/docs/conf.py index 3cc8e35b23..f6ccff0fcf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -68,6 +68,10 @@ pattern=r'pypa/distutils#(?P<distutils>\d+)', url='{GH}/pypa/distutils/issues/{distutils}', ), + dict( + pattern=...
SCons__scons-3595
Empty man pages **Describe the bug** scons-3.1.2, compiled from source on Fedora, produces empty man pages. **Required information** * Version of SCons 3.1.2 * Version of Python 3.7.6 * Which python distribution if applicable * How you installed SCons Compiled from source code * What Platform are you on?...
[ { "content": "\n\"\"\"SCons.Tool.docbook\n\nTool-specific initialization for Docbook.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.\n\n\"\"\"\n\n#\n# __COPYRIGHT__\n#\n# Permission is hereby granted, ...
[ { "content": "\n\"\"\"SCons.Tool.docbook\n\nTool-specific initialization for Docbook.\n\nThere normally shouldn't be any need to import this module directly.\nIt will usually be imported through the generic SCons.Tool.Tool()\nselection method.\n\n\"\"\"\n\n#\n# __COPYRIGHT__\n#\n# Permission is hereby granted, ...
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index f4416b24a4..de5c9d40e5 100755 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -89,6 +89,8 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER - Fixed bug where changing TEXTFILESUFFIX would cause Substfile() to rebuild. (Github Issue #3540) - Script/Main.py now u...
crytic__slither-550
Expression not parsed IndexRangeAccess I am getting `Expression not parsed IndexRangeAccess` error, I am assuming this is due to my use of the [array slices](https://solidity.readthedocs.io/en/v0.6.0/types.html#array-slices)?
[ { "content": "import logging\nimport re\nfrom typing import Dict, TYPE_CHECKING, Optional, Union\n\nfrom slither.core.declarations import Event, Enum, Structure\nfrom slither.core.declarations.contract import Contract\nfrom slither.core.declarations.function import Function\nfrom slither.core.declarations.solid...
[ { "content": "import logging\nimport re\nfrom typing import Dict, TYPE_CHECKING, Optional, Union\n\nfrom slither.core.declarations import Event, Enum, Structure\nfrom slither.core.declarations.contract import Contract\nfrom slither.core.declarations.function import Function\nfrom slither.core.declarations.solid...
diff --git a/slither/solc_parsing/expressions/expression_parsing.py b/slither/solc_parsing/expressions/expression_parsing.py index fb1764dcc6..7d14a00266 100644 --- a/slither/solc_parsing/expressions/expression_parsing.py +++ b/slither/solc_parsing/expressions/expression_parsing.py @@ -763,4 +763,13 @@ def parse_expres...
interlegis__sapl-2045
Número seguinte de norma jurídica Ao inserir uma uma norma jurídica do tipo Portaria, oferece sempre o número 10 como próximo, embora já tenhamos superado tal número.
[ { "content": "\nimport weasyprint\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.urlresolvers import reverse\nfrom django.http import HttpResponse, JsonResponse\nfrom django.template import RequestContext, loader\nfrom dja...
[ { "content": "\nimport weasyprint\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.core.exceptions import ObjectDoesNotExist\nfrom django.core.urlresolvers import reverse\nfrom django.http import HttpResponse, JsonResponse\nfrom django.template import RequestContext, loader\nfrom dja...
diff --git a/sapl/norma/views.py b/sapl/norma/views.py index 650442676..9c98e783e 100644 --- a/sapl/norma/views.py +++ b/sapl/norma/views.py @@ -204,9 +204,9 @@ def recuperar_numero_norma(request): param = {'tipo': tipo} param['ano'] = ano if ano else timezone.now().year - - norma = NormaJuridica.objects...
ciudadanointeligente__votainteligente-portal-electoral-697
[Propuesta] Al momento de ser publicada no se envíá automáticamente a los candidatos.
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals\n\nfrom django.db import models\nfrom picklefield.fields import PickledObjectField\nfrom django.contrib.auth.models import User\nfrom djchoices import DjangoChoices, ChoiceItem\nfrom votainteligente.send_mails import send_mail\nfrom django.ut...
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals\n\nfrom django.db import models\nfrom picklefield.fields import PickledObjectField\nfrom django.contrib.auth.models import User\nfrom djchoices import DjangoChoices, ChoiceItem\nfrom votainteligente.send_mails import send_mail\nfrom django.ut...
diff --git a/popular_proposal/models.py b/popular_proposal/models.py index 028e8ae7..cb7f2b9b 100644 --- a/popular_proposal/models.py +++ b/popular_proposal/models.py @@ -196,12 +196,6 @@ def __str__(self): def get_absolute_url(self): return reverse('popular_proposals:detail', kwargs={'slug': self.slug}) ...
mesonbuild__meson-8978
get_variable with a file object as default value: Argument of type File is not held by an ObjectHolder **Describe the bug** After updating Meson, I see this error in a previously working build: ``` build/analysis/vale/meson.build:24:0: ERROR: Argument build/analysis/vale/vale-styleguide/config/documentation.vale.i...
[ { "content": "# Copyright 2013-2021 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
[ { "content": "# Copyright 2013-2021 The Meson development team\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless req...
diff --git a/mesonbuild/interpreterbase/_unholder.py b/mesonbuild/interpreterbase/_unholder.py index 7e95232ee341..10c7cfc8f3df 100644 --- a/mesonbuild/interpreterbase/_unholder.py +++ b/mesonbuild/interpreterbase/_unholder.py @@ -22,9 +22,9 @@ def _unholder(obj: T.Union[TYPE_var, InterpreterObject], *, permissive: boo...
yt-project__yt-4825
Off axis Slice Plot breaks when using derived field and default center <!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **Bug summary** Creating an `OffAxisSlicePlot` w...
[ { "content": "import numpy as np\n\nfrom yt.data_objects.selection_objects.data_selection_objects import (\n YTSelectionContainer,\n YTSelectionContainer2D,\n)\nfrom yt.data_objects.static_output import Dataset\nfrom yt.funcs import (\n is_sequence,\n iter_fields,\n validate_3d_array,\n valida...
[ { "content": "import numpy as np\n\nfrom yt.data_objects.selection_objects.data_selection_objects import (\n YTSelectionContainer,\n YTSelectionContainer2D,\n)\nfrom yt.data_objects.static_output import Dataset\nfrom yt.funcs import (\n is_sequence,\n iter_fields,\n validate_3d_array,\n valida...
diff --git a/yt/data_objects/selection_objects/slices.py b/yt/data_objects/selection_objects/slices.py index 69547f1c295..7441fb01bef 100644 --- a/yt/data_objects/selection_objects/slices.py +++ b/yt/data_objects/selection_objects/slices.py @@ -214,7 +214,7 @@ def __init__( validate_object(data_source, YTSelec...
getnikola__nikola-813
Tipue task fails on pages/posts with no content. The Tipue task fails when a page/post has no content and only metadata. The lack of content causes lxml to fail because the document looks empty to it! ``` . local_search:output/assets/js/tipuesearch_content.json ######################################## TaskError - tas...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2013 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright © 2012-2013 Roberto Alsina and others.\n\n# Permission is hereby granted, free of charge, to any\n# person obtaining a copy of this software and associated\n# documentation files (the \"Software\"), to deal in the\n# Software without restriction, including wi...
diff --git a/nikola/post.py b/nikola/post.py index dbc6976f14..2d5554a726 100644 --- a/nikola/post.py +++ b/nikola/post.py @@ -394,8 +394,12 @@ def text(self, lang=None, teaser_only=False, strip_html=False, really_absolute=F data = lxml.html.tostring(document, encoding='unicode') if data and...
privacyidea__privacyidea-3510
Node from policy can not be removed A policy has a condition with a node. If I remove all nodes (select none) and save the policy the node is still contained in the policy. Reopen the policy and check: The node is still there.
[ { "content": "# -*- coding: utf-8 -*-\n#\n# http://www.privacyidea.org\n# (c) cornelius kölbel, privacyidea.org\n#\n# 2016-04-05 Cornelius Kölbel <cornelius@privacyidea.org>\n# Add time to policies\n# 2014-12-08 Cornelius Kölbel, <cornelius@privacyidea.org>\n# Complete rewrite during flask...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# http://www.privacyidea.org\n# (c) cornelius kölbel, privacyidea.org\n#\n# 2016-04-05 Cornelius Kölbel <cornelius@privacyidea.org>\n# Add time to policies\n# 2014-12-08 Cornelius Kölbel, <cornelius@privacyidea.org>\n# Complete rewrite during flask...
diff --git a/privacyidea/api/policy.py b/privacyidea/api/policy.py index 9e371f78e9..7ddf3c7e8c 100644 --- a/privacyidea/api/policy.py +++ b/privacyidea/api/policy.py @@ -120,6 +120,7 @@ def set_policy_api(name=None): :jsonparam user: The policy is valid for these users. string with wild cards or list of ...
oppia__oppia-15229
Cyclic Imports The linter found cyclic imports when run locally: ``` ---------------------------------------- Please fix the errors below: ---------------------------------------- ************* Module core.domain.topic_fetchers_test core/domain/topic_fetchers_test.py:1:0: R0401: Cyclic import (core.domain.exp_s...
[ { "content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen...
[ { "content": "# coding: utf-8\n#\n# Copyright 2014 The Oppia Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licen...
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 899adf9e5904e..17de079b4a842 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-18.04] - shard: ['1', 'other'] + shard: ['other'] ...
mitmproxy__mitmproxy-5078
response.refresh() gives OSError on Windows ``` Navigating to secondary url:https://www.bing.com/search?q=barack+obama+quotes Navigating to url https://www.bing.com/search?q=barack+obama+quotes iteration 25 Addon error: Traceback (most recent call last):' Error: b' File "C:\\Users\\task_1641995085\\build\\venv\\li...
[ { "content": "import binascii\nimport os\nimport re\nimport time\nimport urllib.parse\nimport json\nfrom dataclasses import dataclass\nfrom dataclasses import fields\nfrom email.utils import formatdate\nfrom email.utils import mktime_tz\nfrom email.utils import parsedate_tz\nfrom typing import Callable\nfrom ty...
[ { "content": "import binascii\nimport os\nimport re\nimport time\nimport urllib.parse\nimport json\nfrom dataclasses import dataclass\nfrom dataclasses import fields\nfrom email.utils import formatdate\nfrom email.utils import mktime_tz\nfrom email.utils import parsedate_tz\nfrom typing import Callable\nfrom ty...
diff --git a/mitmproxy/http.py b/mitmproxy/http.py index a1303ab2a4..11af7b3e37 100644 --- a/mitmproxy/http.py +++ b/mitmproxy/http.py @@ -1185,7 +1185,10 @@ def refresh(self, now=None): d = parsedate_tz(self.headers[i]) if d: new = mktime_tz(d) + delta - ...
pyqtgraph__pyqtgraph-2483
PlotSpeedTest command line arguments ignored ### Short description <!-- This should summarize the issue. --> Since 108365ba45c1a1302df110dad5f9d960d4d903a9, PlotSpeedTest command arguments are no longer honored. ### Code to reproduce <!-- Please provide a minimal working example that reproduces the issue in the...
[ { "content": "#!/usr/bin/python\n\"\"\"\nUpdate a simple plot as rapidly as possible to measure speed.\n\"\"\"\n\nimport argparse\nfrom collections import deque\nfrom time import perf_counter\n\nimport numpy as np\n\nimport pyqtgraph as pg\nimport pyqtgraph.functions as fn\nimport pyqtgraph.parametertree as ptr...
[ { "content": "#!/usr/bin/python\n\"\"\"\nUpdate a simple plot as rapidly as possible to measure speed.\n\"\"\"\n\nimport argparse\nfrom collections import deque\nfrom time import perf_counter\n\nimport numpy as np\n\nimport pyqtgraph as pg\nimport pyqtgraph.functions as fn\nimport pyqtgraph.parametertree as ptr...
diff --git a/pyqtgraph/examples/PlotSpeedTest.py b/pyqtgraph/examples/PlotSpeedTest.py index fe6c60b8b9..edcbd621dc 100644 --- a/pyqtgraph/examples/PlotSpeedTest.py +++ b/pyqtgraph/examples/PlotSpeedTest.py @@ -95,7 +95,14 @@ def resetTimings(*args): fsample={'units': 'Hz'}, frequency={'units': 'Hz'} ) -def ...
dmlc__dgl-1305
AttributeError: module 'dgl.nn' has no attribute 'pytorch' ## 🐛 Bug When I try to use some of the predefined modules of dgl by the following code, I encounter an error: AttributeError: module 'dgl.nn' has no attribute 'pytorch'. Similar problems also happen to other backends, including TensorFlow and MXNet. #...
[ { "content": "\"\"\"DGL root package.\"\"\"\n# Windows compatibility\n# This initializes Winsock and performs cleanup at termination as required\nimport socket\n\n# Need to ensure that the backend framework is imported before load dgl libs,\n# otherwise weird cuda problem happens\nfrom .backend import load_back...
[ { "content": "\"\"\"DGL root package.\"\"\"\n# Windows compatibility\n# This initializes Winsock and performs cleanup at termination as required\nimport socket\n\n# Need to ensure that the backend framework is imported before load dgl libs,\n# otherwise weird cuda problem happens\nfrom .backend import load_back...
diff --git a/python/dgl/__init__.py b/python/dgl/__init__.py index dd3d4e51ffd8..2eb84b5bd78d 100644 --- a/python/dgl/__init__.py +++ b/python/dgl/__init__.py @@ -8,7 +8,6 @@ from .backend import load_backend from . import function -from . import nn from . import contrib from . import container from . import ran...
edgedb__edgedb-3921
Missing source context in index cardinality check error Original report: https://discord.com/channels/841451783728529451/849377751370432573/963429739505258568
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
[ { "content": "#\n# This source file is part of the EdgeDB open source project.\n#\n# Copyright 2008-present MagicStack Inc. and the EdgeDB 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...
diff --git a/edb/schema/indexes.py b/edb/schema/indexes.py index f0fe5f4fd38..bc5904ce8bb 100644 --- a/edb/schema/indexes.py +++ b/edb/schema/indexes.py @@ -310,7 +310,9 @@ def compile_expr_field( raise errors.ResultCardinalityMismatchError( f'possibly more than one element returne...
chainer__chainer-2329
Remove chainer.functions.caffe.CaffeFunction This is left for backward compatibility.
[ { "content": "from chainer.links.caffe import caffe_function\n\n\n# for backward compatibility\nCaffeFunction = caffe_function.CaffeFunction\n", "path": "chainer/functions/caffe/__init__.py" }, { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\n\nsetup_requires = []\ninstall_requ...
[ { "content": null, "path": "chainer/functions/caffe/__init__.py" }, { "content": "#!/usr/bin/env python\n\nfrom setuptools import setup\n\n\nsetup_requires = []\ninstall_requires = [\n 'filelock',\n 'nose',\n 'numpy>=1.9.0',\n 'protobuf',\n 'six>=1.9.0',\n]\n\nsetup(\n name='chaine...
diff --git a/chainer/functions/caffe/__init__.py b/chainer/functions/caffe/__init__.py deleted file mode 100644 index be474ff6dad6..000000000000 --- a/chainer/functions/caffe/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -from chainer.links.caffe import caffe_function - - -# for backward compatibility -CaffeFunction = caff...
huggingface__transformers-7039
RuntimeError: Expected tensor for argument #1 'indices' to have scalar type Long; but got torch.FloatTensor instead (while checking arguments for embedding) ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in ...
[ { "content": "import random\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Dict, List, NewType, Optional, Tuple, Union\n\nimport torch\nfrom torch.nn.utils.rnn import pad_sequence\n\nfrom ..tokenization_utils import PreTrainedTokenizer\nfrom ..tokenization_utils_base import BatchEncoding,...
[ { "content": "import random\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Dict, List, NewType, Optional, Tuple, Union\n\nimport torch\nfrom torch.nn.utils.rnn import pad_sequence\n\nfrom ..tokenization_utils import PreTrainedTokenizer\nfrom ..tokenization_utils_base import BatchEncoding,...
diff --git a/src/transformers/data/data_collator.py b/src/transformers/data/data_collator.py index 14741d862ae4..9f30335f86b0 100644 --- a/src/transformers/data/data_collator.py +++ b/src/transformers/data/data_collator.py @@ -149,7 +149,7 @@ def _tensorize_batch( ) -> torch.Tensor: # In order to accept b...
quantumlib__Cirq-1857
Create nice str representation for DensityMatrixTrialResult It has a repr, but not a good str. Should work similar to WaveFunctionTrialResult.
[ { "content": "# Copyright 2019 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2019 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq/sim/density_matrix_simulator.py b/cirq/sim/density_matrix_simulator.py index 1cdf33530ef..260b8933f9f 100644 --- a/cirq/sim/density_matrix_simulator.py +++ b/cirq/sim/density_matrix_simulator.py @@ -620,6 +620,11 @@ def _value_equality_values_(self): sorted(self.measurements.i...
quantumlib__Cirq-3745
DensityMatrixSimulator not working with subcircuits **Description of the issue** It appears density matrix simulator does not work with subcircuits? After looking through the noise simulation code I was trying to check whether noise propagated through subcircuits but I'm unable to even get a measurement. Entirely po...
[ { "content": "# Copyright 2019 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright 2019 The Cirq Developers\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/cirq/sim/density_matrix_simulator.py b/cirq/sim/density_matrix_simulator.py index 23764b60766..fc9bd568bc1 100644 --- a/cirq/sim/density_matrix_simulator.py +++ b/cirq/sim/density_matrix_simulator.py @@ -168,7 +168,9 @@ def _run( resolved_circuit = protocols.resolve_parameters(circuit, param_resol...
holoviz__panel-2067
Deployment of Templated Apps to Binder using jupypter-panel-proxy not working. Panel 0.11 ## My Pain I would like to demonstrate to colleagues and the Panel community how easy it is to share Panel apps on binder. It's really just adding `jupyter-panel-proxy` as described in the Panel docs and your notebooks in th...
[ { "content": "\"\"\"\nTemplates allow multiple Panel objects to be embedded into custom HTML\ndocuments.\n\"\"\"\nimport os\nimport sys\nimport uuid\n\nfrom collections import OrderedDict\nfrom functools import partial\nfrom urllib.parse import urljoin\n\nimport param\n\nfrom bokeh.document.document import Docu...
[ { "content": "\"\"\"\nTemplates allow multiple Panel objects to be embedded into custom HTML\ndocuments.\n\"\"\"\nimport os\nimport sys\nimport uuid\n\nfrom collections import OrderedDict\nfrom functools import partial\nfrom urllib.parse import urljoin\n\nimport param\n\nfrom bokeh.document.document import Docu...
diff --git a/panel/template/base.py b/panel/template/base.py index da60a60f8a..f2dd3d23a3 100644 --- a/panel/template/base.py +++ b/panel/template/base.py @@ -462,9 +462,9 @@ def _get_theme(self): def _template_resources(self): name = type(self).__name__.lower() resources = _settings.resources(de...
networkx__networkx-6041
Deserialisation artifacts in adjacency_graph ### Current Behavior Serialising and deserialising a Graph using the matched pair json_graph.adjacency_data and json_graph.adjacency_graph produces a graph which is not equal to the incoming graph using the graphs_equal method. This is because adjacency.py:152 and adjace...
[ { "content": "from itertools import chain\n\nimport networkx as nx\n\n__all__ = [\"adjacency_data\", \"adjacency_graph\"]\n\n_attrs = dict(id=\"id\", key=\"key\")\n\n\ndef adjacency_data(G, attrs=_attrs):\n \"\"\"Returns data in adjacency format that is suitable for JSON serialization\n and use in Javascr...
[ { "content": "from itertools import chain\n\nimport networkx as nx\n\n__all__ = [\"adjacency_data\", \"adjacency_graph\"]\n\n_attrs = dict(id=\"id\", key=\"key\")\n\n\ndef adjacency_data(G, attrs=_attrs):\n \"\"\"Returns data in adjacency format that is suitable for JSON serialization\n and use in Javascr...
diff --git a/networkx/readwrite/json_graph/adjacency.py b/networkx/readwrite/json_graph/adjacency.py index 7962ea9a36b..9dca7267068 100644 --- a/networkx/readwrite/json_graph/adjacency.py +++ b/networkx/readwrite/json_graph/adjacency.py @@ -149,9 +149,9 @@ def adjacency_graph(data, directed=False, multigraph=True, attr...
django-cms__django-cms-984
CMS_PLACEHOLDER_CONF is not limiting the dropdown This happened in 2.2rc1.post2... I have a page titled "My content page" that uses a template called "sub.html" and I want to restrict all the installed plugins to 'cms.plugins.text' only. The template "sub.html" has a placeholder called "content". So I define CMS_PLAC...
[ { "content": "# -*- coding: utf-8 -*-\nfrom cms.exceptions import PluginAlreadyRegistered, PluginNotRegistered\nfrom cms.plugin_base import CMSPluginBase\nfrom cms.utils.django_load import load\nfrom cms.utils.helpers import reversion_register\nfrom cms.utils.placeholder import get_placeholder_conf\nfrom django...
[ { "content": "# -*- coding: utf-8 -*-\nfrom cms.exceptions import PluginAlreadyRegistered, PluginNotRegistered\nfrom cms.plugin_base import CMSPluginBase\nfrom cms.utils.django_load import load\nfrom cms.utils.helpers import reversion_register\nfrom cms.utils.placeholder import get_placeholder_conf\nfrom django...
diff --git a/cms/plugin_pool.py b/cms/plugin_pool.py index a5dc1a23293..d7d126aebcc 100644 --- a/cms/plugin_pool.py +++ b/cms/plugin_pool.py @@ -77,10 +77,14 @@ def get_all_plugins(self, placeholder=None, page=None, setting_key="plugins", in plugins = self.plugins.values()[:] plugins.sort(key=lambda o...
aws-cloudformation__cfn-lint-413
E2532 State Machine Definition key (OutputPath) for State of Type (Task) is not valid cfn-lint version: 0.7.3 I am getting the above error when trying to lint a CF template containing a step function. The step function code is working fine in AWS console though. "CreatePublishedRequest": { "Ty...
[ { "content": "\"\"\"\n Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
[ { "content": "\"\"\"\n Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy of this\n software and associated documentation files (the \"Software\"), to deal in the Software\n without restriction, including w...
diff --git a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py index 3e5d662495..877804be03 100644 --- a/src/cfnlint/rules/resources/stepfunctions/StateMachine.py +++ b/src/cfnlint/rules/resources/stepfunctions/StateMachine.py @@ -37,13 +37,14 @@ def _...
OCA__manufacture-506
[12.0] mrp_multi_level: BoM explosion ignores product variant attributes **Impacted versions:** 12.0, 13.0 **Steps to reproduce:** (using Customizable Desk from demo data) 1. Create configurable components products * Desk Leg, Steel * Desk Leg, Aluminum * Desk Leg, Custom * White Trim Kit * Blac...
[ { "content": "# Copyright 2016 Ucamco - Wim Audenaert <wim.audenaert@ucamco.com>\n# Copyright 2016-19 ForgeFlow S.L. (https://www.forgeflow.com)\n# - Jordi Ballester Alomar <jordi.ballester@eficent.com>\n# - Lois Rilo <lois.rilo@eficent.com>\n# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)....
[ { "content": "# Copyright 2016 Ucamco - Wim Audenaert <wim.audenaert@ucamco.com>\n# Copyright 2016-19 ForgeFlow S.L. (https://www.forgeflow.com)\n# - Jordi Ballester Alomar <jordi.ballester@eficent.com>\n# - Lois Rilo <lois.rilo@eficent.com>\n# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)....
diff --git a/mrp_multi_level/demo/mrp_bom_demo.xml b/mrp_multi_level/demo/mrp_bom_demo.xml index 9eec23de192..b71257be633 100644 --- a/mrp_multi_level/demo/mrp_bom_demo.xml +++ b/mrp_multi_level/demo/mrp_bom_demo.xml @@ -43,6 +43,47 @@ <field name="sequence">5</field> <field name="bom_id" ref="mrp_bom...
python-telegram-bot__python-telegram-bot-1760
[BUG] v12.4 breaks PicklePersistence <!-- Thanks for reporting issues of python-telegram-bot! Use this template to notify us if you found a bug. To make it easier for us to help you please enter detailed information below. Please note, we only support the latest version of python-telegram-bot and master bran...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2020\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub...
[ { "content": "#!/usr/bin/env python\n#\n# A library that provides a Python interface to the Telegram Bot API\n# Copyright (C) 2015-2020\n# Leandro Toledo de Souza <devs@python-telegram-bot.org>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser Pub...
diff --git a/telegram/ext/picklepersistence.py b/telegram/ext/picklepersistence.py index 0027234314a..6747cd4ece8 100644 --- a/telegram/ext/picklepersistence.py +++ b/telegram/ext/picklepersistence.py @@ -84,7 +84,8 @@ def load_singlefile(self): all = pickle.load(f) self.user_data = de...
azavea__raster-vision-1250
Ignored tmpdir option, missing predict command after native installation on Ubuntu 16.04 ## 🐛 Bug After following the native installation steps as described by the Ubuntu 16.04 [Dockerfile](https://github.com/azavea/raster-vision/blob/4eaa709ea4beeddded048fcbf670306d42262d9d/Dockerfile#L8), Raster Vision exhibits a...
[ { "content": "# flake8: noqa\n\nfrom os import path as op\nimport io\nfrom setuptools import (setup, find_namespace_packages)\n\nhere = op.abspath(op.dirname(__file__))\nwith io.open(op.join(here, 'requirements.txt'), encoding='utf-8') as f:\n all_reqs = f.read().split('\\n')\ninstall_requires = [x.strip() f...
[ { "content": "# flake8: noqa\n\nfrom os import path as op\nimport io\nfrom setuptools import (setup, find_namespace_packages)\n\nhere = op.abspath(op.dirname(__file__))\nwith io.open(op.join(here, 'requirements.txt'), encoding='utf-8') as f:\n all_reqs = f.read().split('\\n')\ninstall_requires = [x.strip() f...
diff --git a/rastervision_pipeline/rastervision/pipeline/cli.py b/rastervision_pipeline/rastervision/pipeline/cli.py index 71f1567ed..669a09d18 100644 --- a/rastervision_pipeline/rastervision/pipeline/cli.py +++ b/rastervision_pipeline/rastervision/pipeline/cli.py @@ -240,9 +240,11 @@ def run_command(cfg_json_uri: str,...
google__flax-2007
Can not assign dict whos key is not string as module attribute Hi, It seems current flax.linen not allow assign a dict with non-string keys to the module attribute. See below simple example: it will trigger error: `AssertionError: A state dict must only have string keys.` Questions: 1. Is it an intended behavio...
[ { "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 99da08624..d25462cdd 100644 --- a/flax/serialization.py +++ b/flax/serialization.py @@ -117,11 +117,14 @@ def _restore_list(xs, state_dict: Dict[str, Any]) -> List[Any]: def _dict_state_dict(xs: Dict[str, Any]) -> Dict[str, Any]: - return {key: to_s...
conan-io__conan-5110
Conan remote update command error in 1.15 With the Conan 1.15 release it is no longer possible to use the `conan remote update` command to ensure an existing remote is configured to be at the specified index. Reverting to Conan 1.14 sees the command work as expected. conan remote update ci-conan https://my-artif...
[ { "content": "import json\nimport os\nfrom collections import OrderedDict, namedtuple\n\nfrom conans.errors import ConanException, NoRemoteAvailable\nfrom conans.util.config_parser import get_bool_from_text_value\nfrom conans.util.files import load, save\nfrom conans.model.ref import PackageReference, ConanFile...
[ { "content": "import json\nimport os\nfrom collections import OrderedDict, namedtuple\n\nfrom conans.errors import ConanException, NoRemoteAvailable\nfrom conans.util.config_parser import get_bool_from_text_value\nfrom conans.util.files import load, save\nfrom conans.model.ref import PackageReference, ConanFile...
diff --git a/conans/client/cache/remote_registry.py b/conans/client/cache/remote_registry.py index eaedf2d2e04..6d55b484dd5 100644 --- a/conans/client/cache/remote_registry.py +++ b/conans/client/cache/remote_registry.py @@ -230,7 +230,7 @@ def update(self, remote_name, url, verify_ssl=True, insert=None): def _a...
secdev__scapy-1002
[ci] Import error with Travis on osx Issue found will investigating and fixing #827 . In this build https://travis-ci.org/secdev/scapy/jobs/320169025, it looks like Scapy is not configured correctly. The output of `python -c "from scapy.all import *; print conf"` is: ``` Traceback (most recent call last): File...
[ { "content": "## This file is part of Scapy\n## See http://www.secdev.org/projects/scapy for more informations\n## Copyright (C) Philippe Biondi <phil@secdev.org>\n## This program is published under a GPLv2 license\n\n\"\"\"\nPacket sending and receiving with libdnet and libpcap/WinPcap.\n\"\"\"\n\nimport time,...
[ { "content": "## This file is part of Scapy\n## See http://www.secdev.org/projects/scapy for more informations\n## Copyright (C) Philippe Biondi <phil@secdev.org>\n## This program is published under a GPLv2 license\n\n\"\"\"\nPacket sending and receiving with libdnet and libpcap/WinPcap.\n\"\"\"\n\nimport time,...
diff --git a/scapy/arch/pcapdnet.py b/scapy/arch/pcapdnet.py index b261d8c8c8b..e6ec1458327 100644 --- a/scapy/arch/pcapdnet.py +++ b/scapy/arch/pcapdnet.py @@ -557,6 +557,19 @@ def get_if_list(): return [i.get("name", None) for i in dnet.intf()] + def get_working_if(): + """Returns t...
speechbrain__speechbrain-1567
Code Style Fixing https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/utils/metric_stats.py#:~:text=(self.-,labels,-%3D%3D%201). <img width="500" alt="image" src="https://user-images.githubusercontent.com/43900898/174516502-6876ad49-f48b-480c-82de-b9b2964c317a.png"> It's better to use `self.labels == ...
[ { "content": "\"\"\"The ``metric_stats`` module provides an abstract class for storing\nstatistics produced over the course of an experiment and summarizing them.\n\nAuthors:\n * Peter Plantinga 2020\n * Mirco Ravanelli 2020\n\"\"\"\nimport torch\nfrom joblib import Parallel, delayed\nfrom speechbrain.utils.dat...
[ { "content": "\"\"\"The ``metric_stats`` module provides an abstract class for storing\nstatistics produced over the course of an experiment and summarizing them.\n\nAuthors:\n * Peter Plantinga 2020\n * Mirco Ravanelli 2020\n\"\"\"\nimport torch\nfrom joblib import Parallel, delayed\nfrom speechbrain.utils.dat...
diff --git a/speechbrain/utils/metric_stats.py b/speechbrain/utils/metric_stats.py index 0ff5761021..2fe898cad8 100644 --- a/speechbrain/utils/metric_stats.py +++ b/speechbrain/utils/metric_stats.py @@ -389,10 +389,10 @@ def summarize( if threshold is None: positive_scores = self.scores[ - ...
ytdl-org__youtube-dl-24883
Documentation: --exec does not execute POST download, but POST processing Thanks for all the work :) One thing, definitely being picky, but the --exec is documented as executing post download, and that happens if you specify "," (comma) between formats, because there's no merging. But if there's a "+" (plus) then the...
[ { "content": "from __future__ import unicode_literals\n\nimport os.path\nimport optparse\nimport re\nimport sys\n\nfrom .downloader.external import list_external_downloaders\nfrom .compat import (\n compat_expanduser,\n compat_get_terminal_size,\n compat_getenv,\n compat_kwargs,\n compat_shlex_sp...
[ { "content": "from __future__ import unicode_literals\n\nimport os.path\nimport optparse\nimport re\nimport sys\n\nfrom .downloader.external import list_external_downloaders\nfrom .compat import (\n compat_expanduser,\n compat_get_terminal_size,\n compat_getenv,\n compat_kwargs,\n compat_shlex_sp...
diff --git a/youtube_dl/options.py b/youtube_dl/options.py index 8826b382c3c..6d5ac62b3ba 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -853,7 +853,7 @@ def _comma_separated_values_options_callback(option, opt_str, value, parser): postproc.add_option( '--exec', metavar='CMD', ...
pallets__click-2554
OSError on MinGW64 with MSYS2 on Windows 8.1 A most basic script containing: import click click.echo('run') Produces the following stacktrace: Traceback (most recent call last): File "t.py", line 3, in <module> click.echo('run') File "C:/msys64/mingw64/lib/python3.7/site-pac...
[ { "content": "import codecs\nimport io\nimport os\nimport re\nimport sys\nimport typing as t\nfrom weakref import WeakKeyDictionary\n\nCYGWIN = sys.platform.startswith(\"cygwin\")\nMSYS2 = sys.platform.startswith(\"win\") and (\"GCC\" in sys.version)\n# Determine local App Engine environment, per Google's own s...
[ { "content": "import codecs\nimport io\nimport os\nimport re\nimport sys\nimport typing as t\nfrom weakref import WeakKeyDictionary\n\nCYGWIN = sys.platform.startswith(\"cygwin\")\nWIN = sys.platform.startswith(\"win\")\nauto_wrap_for_ansi: t.Optional[t.Callable[[t.TextIO], t.TextIO]] = None\n_ansi_re = re.comp...
diff --git a/CHANGES.rst b/CHANGES.rst index 2c812d0b6..ce2bf8e80 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -28,6 +28,8 @@ Unreleased ``cls`` parameter is used. :issue:`2294` - Don't fail when writing filenames to streams with strict errors. Replace invalid bytes with the replacement character (``�``)....
docker__docker-py-2534
Support OpenSSH's IdentityFile config option # Description As a developer I want `docker-py` to load the identity file according to my setting specified in `~/.ssh/config`, not only the "default" `id_rsa` file. # Example I have a `~/.ssh/config` file with contents: ```ssh Host myHost User myUser HostNa...
[ { "content": "import paramiko\nimport requests.adapters\nimport six\nimport logging\nimport os\n\nfrom docker.transport.basehttpadapter import BaseHTTPAdapter\nfrom .. import constants\n\nif six.PY3:\n import http.client as httplib\nelse:\n import httplib\n\ntry:\n import requests.packages.urllib3 as u...
[ { "content": "import paramiko\nimport requests.adapters\nimport six\nimport logging\nimport os\n\nfrom docker.transport.basehttpadapter import BaseHTTPAdapter\nfrom .. import constants\n\nif six.PY3:\n import http.client as httplib\nelse:\n import httplib\n\ntry:\n import requests.packages.urllib3 as u...
diff --git a/docker/transport/sshconn.py b/docker/transport/sshconn.py index 7de0e5908..9cfd99809 100644 --- a/docker/transport/sshconn.py +++ b/docker/transport/sshconn.py @@ -100,6 +100,8 @@ def __init__(self, base_url, timeout=60, ) if 'hostname' in host_config: self.ss...
qtile__qtile-3229
Battery widget doesn't respect extension_defaults OS: Arch linux Qtile version: 0.19.0 I have defined `extension_defaults` for all my widgets (see part of my config file below). This seems to be respected by all the widgets I use except the Battery widget, which seems to respect the foreground color, but not the b...
[ { "content": "# Copyright (c) 2011 matt\n# Copyright (c) 2011 Paul Colomiets\n# Copyright (c) 2011-2014 Tycho Andersen\n# Copyright (c) 2012 dmpayton\n# Copyright (c) 2012 hbc\n# Copyright (c) 2012 Tim Neumann\n# Copyright (c) 2012 uberj\n# Copyright (c) 2012-2013 Craig Barnes\n# Copyright (c) 2013 Tao Sauvage\...
[ { "content": "# Copyright (c) 2011 matt\n# Copyright (c) 2011 Paul Colomiets\n# Copyright (c) 2011-2014 Tycho Andersen\n# Copyright (c) 2012 dmpayton\n# Copyright (c) 2012 hbc\n# Copyright (c) 2012 Tim Neumann\n# Copyright (c) 2012 uberj\n# Copyright (c) 2012-2013 Craig Barnes\n# Copyright (c) 2013 Tao Sauvage\...
diff --git a/CHANGELOG b/CHANGELOG index 1c08dd6976..512fccdc53 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -15,6 +15,7 @@ Qtile x.x.x, released xxxx-xx-xx: ConfigError. - Release notification name from dbus when finalising `Notify` widget. This allows other notification managers to request...
dmlc__dgl-6898
[GraphBolt][Cuda] An error with GPU sampling when graph is pinned. ## 🔨Work Item **IMPORTANT:** * This template is only for dev team to track project progress. For feature request or bug report, please use the corresponding issue templates. * DO NOT create a new work item if the purpose is to fix an existing issu...
[ { "content": "\"\"\"CSC format sampling graph.\"\"\"\n# pylint: disable= invalid-name\nfrom typing import Dict, Optional, Union\n\nimport torch\n\nfrom dgl.utils import recursive_apply\n\nfrom ...base import EID, ETYPE, NID, NTYPE\nfrom ...convert import to_homogeneous\nfrom ...heterograph import DGLGraph\nfrom...
[ { "content": "\"\"\"CSC format sampling graph.\"\"\"\n# pylint: disable= invalid-name\nfrom typing import Dict, Optional, Union\n\nimport torch\n\nfrom dgl.utils import recursive_apply\n\nfrom ...base import EID, ETYPE, NID, NTYPE\nfrom ...convert import to_homogeneous\nfrom ...heterograph import DGLGraph\nfrom...
diff --git a/python/dgl/graphbolt/impl/fused_csc_sampling_graph.py b/python/dgl/graphbolt/impl/fused_csc_sampling_graph.py index 71dcee181c82..61c346580136 100644 --- a/python/dgl/graphbolt/impl/fused_csc_sampling_graph.py +++ b/python/dgl/graphbolt/impl/fused_csc_sampling_graph.py @@ -417,10 +417,8 @@ def _convert_to_...
adamchainz__django-perf-rec-79
Fix Python 3 warnings Pytest 3.1+ is surfacing these more, they should be fixed: ``` ================================================================================ warnings summary ================================================================================ tests/test_functional.py::test_kwargs_only_allows_k...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport inspect\nfrom functools import wraps\n\n\ndef kwargs_only(func):\n \"\"\"\n Make a function only accept keyword arguments.\n This can be dropped in Python 3 in lieu of:\n ...
[ { "content": "# -*- coding:utf-8 -*-\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport inspect\nfrom functools import wraps\n\n\ndef kwargs_only(func):\n \"\"\"\n Make a function only accept keyword arguments.\n This can be dropped in Python 3 in lieu of:\n ...
diff --git a/django_perf_rec/functional.py b/django_perf_rec/functional.py index c5709a77..1e95601a 100644 --- a/django_perf_rec/functional.py +++ b/django_perf_rec/functional.py @@ -11,9 +11,18 @@ def kwargs_only(func): This can be dropped in Python 3 in lieu of: def foo(*, bar=default): """ - si...
docker__docker-py-2045
windwos raise OSError: [Errno 9] Bad file descriptor the file ./utils/socket.py line 31 hava code `os.read(socket.fileno(), n)` but windows not support my call container.exec_run("xxx", socket=False) raise: Traceback (most recent call last): File "E:/projects/python/judgeClient/judge.py", line 34, in <module> ...
[ { "content": "import errno\nimport os\nimport select\nimport struct\n\nimport six\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nclass SocketError(Exception):\n pass\n\n\ndef read(socket, n=4096):\n \"\"\"\n Reads at most n bytes from socket\n ...
[ { "content": "import errno\nimport os\nimport select\nimport socket as pysocket\nimport struct\n\nimport six\n\ntry:\n from ..transport import NpipeSocket\nexcept ImportError:\n NpipeSocket = type(None)\n\n\nclass SocketError(Exception):\n pass\n\n\ndef read(socket, n=4096):\n \"\"\"\n Reads at m...
diff --git a/docker/utils/socket.py b/docker/utils/socket.py index 0945f0a69..7b96d4fce 100644 --- a/docker/utils/socket.py +++ b/docker/utils/socket.py @@ -1,6 +1,7 @@ import errno import os import select +import socket as pysocket import struct import six @@ -28,6 +29,8 @@ def read(socket, n=4096): try: ...
psychopy__psychopy-3991
PsychoJS code generation: setting text in a textbox doesn't show up [This experiment](https://github.com/psychopy/psychojs_testing/tree/main/tests/wdio_textbox) contains a non-editable textbox that presents the content of a variable named `$msg`. In a code component, begin routine tab, this variable is set to the value...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\nfrom __future__ import absolute_import, print_function\n\nfro...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n# Part of the PsychoPy library\n# Copyright (C) 2002-2018 Jonathan Peirce (C) 2019-2021 Open Science Tools Ltd.\n# Distributed under the terms of the GNU General Public License (GPL).\n\nfrom __future__ import absolute_import, print_function\n\nfro...
diff --git a/psychopy/experiment/components/textbox/__init__.py b/psychopy/experiment/components/textbox/__init__.py index 00abf96637..6bf018563f 100644 --- a/psychopy/experiment/components/textbox/__init__.py +++ b/psychopy/experiment/components/textbox/__init__.py @@ -257,12 +257,11 @@ def writeRoutineStartCode(self,...
wemake-services__wemake-django-template-1038
Default site URL announced by docker should not be trusted Docker on start announces `Starting development server at http://0.0.0.0:8000/`. It is wrong and it is available under http://127.0.0.1:8000/. This should be reflected somewhere in documentation.
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThis file contains all the settings that defines the development server.\n\nSECURITY WARNING: don't run with debug turned on in production!\n\"\"\"\n\nimport logging\nfrom typing import List\n\nfrom server.settings.components import config\nfrom server.settings.c...
[ { "content": "# -*- coding: utf-8 -*-\n\n\"\"\"\nThis file contains all the settings that defines the development server.\n\nSECURITY WARNING: don't run with debug turned on in production!\n\"\"\"\n\nimport logging\nfrom typing import List\n\nfrom server.settings.components import config\nfrom server.settings.c...
diff --git a/{{cookiecutter.project_name}}/server/settings/environments/development.py b/{{cookiecutter.project_name}}/server/settings/environments/development.py index 1c18fa3fe..0c23b1f84 100644 --- a/{{cookiecutter.project_name}}/server/settings/environments/development.py +++ b/{{cookiecutter.project_name}}/server/...
cocotb__cocotb-313
Abusive use of LOG_CRITICAL causes crash in Questa The LOG_CRITICAL is used in many places in the code where the problematic situation should be recovered properly. The use of LOG_CRITICAL with the exit() function causes a nasty crash in Questa, see below. In this example, the provided toplevel cannot be found in the d...
[ { "content": "''' Copyright (c) 2013 Potential Ventures Ltd\nCopyright (c) 2013 SolarFlare Communications Inc\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source ...
[ { "content": "''' Copyright (c) 2013 Potential Ventures Ltd\nCopyright (c) 2013 SolarFlare Communications Inc\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n * Redistributions of source ...
diff --git a/cocotb/regression.py b/cocotb/regression.py index 3bbce0b36c..a6ad656118 100644 --- a/cocotb/regression.py +++ b/cocotb/regression.py @@ -101,8 +101,10 @@ def initialise(self): self._cov = coverage.coverage(branch=True, omit=["*cocotb*"]) self._cov.start() - self._dut = c...
pyro-ppl__pyro-2226
Undocumented restrictions on discrete inference? ## Weird behaviour in discrete inference with shared mixture weights pyro version - 1.1.0 (and earlier) Consider the following pyro model, defining a mixture of gaussians ```py K = 5 d = 2 N_obs = 100 @infer.config_enumerate def model(N=1): with pyro....
[ { "content": "import warnings\nimport weakref\nfrom collections import OrderedDict\nimport queue\n\nimport torch\nfrom opt_einsum import shared_intermediates\n\nimport pyro\nimport pyro.distributions as dist\nimport pyro.ops.jit\nimport pyro.poutine as poutine\nfrom pyro.distributions.util import is_identically...
[ { "content": "import warnings\nimport weakref\nfrom collections import OrderedDict\nimport queue\n\nimport torch\nfrom opt_einsum import shared_intermediates\n\nimport pyro\nimport pyro.distributions as dist\nimport pyro.ops.jit\nimport pyro.poutine as poutine\nfrom pyro.distributions.util import is_identically...
diff --git a/pyro/infer/traceenum_elbo.py b/pyro/infer/traceenum_elbo.py index 73e676fcd4..ae8f1905ab 100644 --- a/pyro/infer/traceenum_elbo.py +++ b/pyro/infer/traceenum_elbo.py @@ -98,7 +98,7 @@ def _compute_model_factors(model_trace, guide_trace): if site["type"] == "sample": if name in guide_t...
rucio__rucio-5623
Check before deleting with GFAL Motivation ---------- This is a patch CMS has been running with for years. I'd like to see it merged if possible. Basically just check that a file exists before trying to delete it. Modification ------------ See PR
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright European Organization for Nuclear Research (CERN) since 2012\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://w...
[ { "content": "# -*- coding: utf-8 -*-\n# Copyright European Organization for Nuclear Research (CERN) since 2012\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://w...
diff --git a/lib/rucio/rse/protocols/gfal.py b/lib/rucio/rse/protocols/gfal.py index f065ff80a7..0fbc383946 100644 --- a/lib/rucio/rse/protocols/gfal.py +++ b/lib/rucio/rse/protocols/gfal.py @@ -491,9 +491,12 @@ def __gfal2_rm(self, paths): try: for path in paths: - ret = ctx.unli...
lutris__lutris-1047
Add support for fba in retroarch runner. Since MAME can take a toll on weaker machines therefore it is advisable to have fBA as an alternative.
[ { "content": "import os\nfrom lutris.runners.runner import Runner\nfrom lutris.util.libretro import RetroConfig\nfrom lutris.util import system\nfrom lutris.util.log import logger\nfrom lutris import settings\n\n# List of supported libretro cores\n# First element is the human readable name for the core with the...
[ { "content": "import os\nfrom lutris.runners.runner import Runner\nfrom lutris.util.libretro import RetroConfig\nfrom lutris.util import system\nfrom lutris.util.log import logger\nfrom lutris import settings\n\n# List of supported libretro cores\n# First element is the human readable name for the core with the...
diff --git a/lutris/runners/libretro.py b/lutris/runners/libretro.py index 741ece5935..d33279b855 100644 --- a/lutris/runners/libretro.py +++ b/lutris/runners/libretro.py @@ -22,6 +22,7 @@ ('DesmuME (Nintendo DS)', 'desmume', 'Nintendo DS'), ('Dolphin (Nintendo Wii/Gamecube)', 'dolphin', 'Nintendo Wii/Gamecub...
PrefectHQ__prefect-887
Add hook for task logging from function tasks Currently, if a user creates a task via class inheritance, adding additional custom logs is as simple as: ```python class MyTask(Task): def run(self): self.logger.info("My own custom runtime log.") ``` However, if a user creates a task via the `@task` decor...
[ { "content": "import collections\nimport copy\nimport itertools\nimport threading\nfrom functools import partial, wraps\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n NamedTuple,\n Optional,\n Set,\n Sized,\n Tuple,\n Union,\n)\n\nimpo...
[ { "content": "import collections\nimport copy\nimport itertools\nimport threading\nfrom functools import partial, wraps\nfrom typing import (\n TYPE_CHECKING,\n Any,\n Callable,\n Dict,\n Iterable,\n List,\n NamedTuple,\n Optional,\n Set,\n Sized,\n Tuple,\n Union,\n)\n\nimpo...
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 742c4937723e..c4cd179a2f66 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,8 +6,6 @@ Please describe your work and make sure your PR: - [ ] updates `CHANGELOG.md` (if appropriate) - [ ] up...
sagemath__sage-36488
`func_persist` fails with Python 3.11 ```sage @func_persist def test(n): return n*n ``` fails with ```python AttributeError Traceback (most recent call last) Cell In[1], line 1 ----> 1 @func_persist 2 def test(n): 3 return n*n File /usr/lib/python3.11/site-packages/sage...
[ { "content": "r\"\"\"\nSupport for persistent functions in .sage files\n\nPersistent functions are functions whose values are stored on disk\nso they do not have to be recomputed.\n\nThe inputs to the function must be hashable (so lists are not\nallowed). Though a hash is used, in the incredibly unlikely event\...
[ { "content": "r\"\"\"\nSupport for persistent functions in .sage files\n\nPersistent functions are functions whose values are stored on disk\nso they do not have to be recomputed.\n\nThe inputs to the function must be hashable (so lists are not\nallowed). Though a hash is used, in the incredibly unlikely event\...
diff --git a/src/sage/misc/func_persist.py b/src/sage/misc/func_persist.py index 12dd35d1f88..cf020479440 100644 --- a/src/sage/misc/func_persist.py +++ b/src/sage/misc/func_persist.py @@ -45,7 +45,6 @@ def bern(n): from . import persist - class func_persist: r""" Put ``@func_persist`` right before your...
Parsl__parsl-1868
WQ category is always the same **Describe the bug** The WQ category is always being set according to the function's `__qualname__` [here](https://github.com/Parsl/parsl/blob/master/parsl/executors/workqueue/executor.py#L409), and the function is being wrapped [here](https://github.com/Parsl/parsl/blob/master/parsl/a...
[ { "content": "\"\"\" WorkQueueExecutor utilizes the Work Queue distributed framework developed by the\nCooperative Computing Lab (CCL) at Notre Dame to provide a fault-tolerant,\nhigh-throughput system for delegating Parsl tasks to thousands of remote machines\n\"\"\"\n\nimport threading\nimport multiprocessing...
[ { "content": "\"\"\" WorkQueueExecutor utilizes the Work Queue distributed framework developed by the\nCooperative Computing Lab (CCL) at Notre Dame to provide a fault-tolerant,\nhigh-throughput system for delegating Parsl tasks to thousands of remote machines\n\"\"\"\n\nimport threading\nimport multiprocessing...
diff --git a/parsl/executors/workqueue/executor.py b/parsl/executors/workqueue/executor.py index 52aa5c2ca3..b0044bca86 100644 --- a/parsl/executors/workqueue/executor.py +++ b/parsl/executors/workqueue/executor.py @@ -406,7 +406,7 @@ def submit(self, func, resource_specification, *args, **kwargs): # Create ...
obspy__obspy-3232
seedlink basic_client always runs get_info ### Avoid duplicates - [X] I searched existing issues ### Bug Summary in clients/seedlink/basic_client.py, Line 132 `if any('*' in x for x in (network, station, location, channel)) \` ` or ('?' in x for x in (network, station)):` always ev...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nSeedLink request client for ObsPy.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.html)\n\"\"\"\nimport fnmatch\nimport warnings\n\nfrom lxml imp...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\nSeedLink request client for ObsPy.\n\n:copyright:\n The ObsPy Development Team (devs@obspy.org)\n:license:\n GNU Lesser General Public License, Version 3\n (https://www.gnu.org/copyleft/lesser.html)\n\"\"\"\nimport fnmatch\nimport warnings\n\nfrom lxml imp...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 97511977c51..795cfa75664 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -7,6 +7,9 @@ maintenance_1.4.x ================= Changes: + - obspy.clients.seedlink: + * avoid unnecessary calls to "get_info()" on waveform requests without + wildcards (see #3232) ...
bokeh__bokeh-10074
[DOCS] Page wise display of documentation search **Is your feature request related to a problem?** Yes. I searched for a relatively simple query in the documentation search bar of https://docs.bokeh.org, and it took very long to load the results. In my second try, the results weren't even loading, I'm afraid. These a...
[ { "content": "import os\nimport sys\nimport threading\nimport time\nimport webbrowser\n\nimport flask\nimport tornado\nfrom tornado.httpserver import HTTPServer\nfrom tornado.ioloop import IOLoop\nfrom tornado.wsgi import WSGIContainer\n\n_basedir = os.path.join(\"..\", os.path.dirname(__file__))\n\napp = flask...
[ { "content": "import asyncio\nimport os\nimport sys\nimport threading\nimport time\nimport webbrowser\n\nimport flask\nimport tornado\nfrom tornado.httpserver import HTTPServer\nfrom tornado.ioloop import IOLoop\nfrom tornado.wsgi import WSGIContainer\n\n# Needed for Windows + Python 3.8 config\nif sys.version_...
diff --git a/sphinx/docserver.py b/sphinx/docserver.py index 74c780c5fc5..1216749ca93 100644 --- a/sphinx/docserver.py +++ b/sphinx/docserver.py @@ -1,3 +1,4 @@ +import asyncio import os import sys import threading @@ -10,6 +11,11 @@ from tornado.ioloop import IOLoop from tornado.wsgi import WSGIContainer +# Nee...
rucio__rucio-1478
readthedocs build fails due to pycurl Motivation ---------- Currently the build process on readthedocs fails. ``` Collecting pycurl>=7.19 (from fts3-rest-API==3.7.1->-r requirements.readthedocs.txt (line 44)) Using cached https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Rucio documentation build configuration file, created by\n# sphinx-quickstart on Fri Oct 27 14:25:40 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this...
[ { "content": "# -*- coding: utf-8 -*-\n#\n# Rucio documentation build configuration file, created by\n# sphinx-quickstart on Fri Oct 27 14:25:40 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this...
diff --git a/doc/source/conf.py b/doc/source/conf.py index 8cdaaf2b4a..35bff98ae5 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -17,9 +17,24 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # import os -# import sys +import sys # sys.path.insert(0, os.path.abspath('.'...
sbi-dev__sbi-442
Training SNRE_A on GPU fails Hi! Using SNRE_A with `device="gpu"` currently fails :-( The error is as follows: ``` RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! ``` The origin of the issue is in `SNRE_A._loss` which instantiates `labels` without movi...
[ { "content": "from typing import Any, Callable, Dict, Optional, Union\n\nimport torch\nfrom torch import Tensor, nn, ones\n\nfrom sbi.inference.posteriors.base_posterior import NeuralPosterior\nfrom sbi.inference.snre.snre_base import RatioEstimator\nfrom sbi.types import TensorboardSummaryWriter\nfrom sbi.util...
[ { "content": "from typing import Any, Callable, Dict, Optional, Union\n\nimport torch\nfrom torch import Tensor, nn, ones\n\nfrom sbi.inference.posteriors.base_posterior import NeuralPosterior\nfrom sbi.inference.snre.snre_base import RatioEstimator\nfrom sbi.types import TensorboardSummaryWriter\nfrom sbi.util...
diff --git a/sbi/inference/snre/snre_a.py b/sbi/inference/snre/snre_a.py index 35abd047b..e0db4128d 100644 --- a/sbi/inference/snre/snre_a.py +++ b/sbi/inference/snre/snre_a.py @@ -122,7 +122,7 @@ def _loss(self, theta: Tensor, x: Tensor, num_atoms: int) -> Tensor: # sampled from the marginals. The first eleme...
joke2k__faker-1869
fr_FR address provider generates less than 5 digits postcode * Faker version: master (18.9.0), bug introduced by https://github.com/joke2k/faker/pull/1852 The new provider method can generate 4 or less digits values. But french postcodes must be 5 digits long (cf https://en.wikipedia.org/wiki/Postal_codes_in_France)...
[ { "content": "from typing import Tuple\n\nfrom .. import Provider as AddressProvider\n\n\nclass Provider(AddressProvider):\n city_suffixes = (\n \"Ville\",\n \"Bourg\",\n \"-les-Bains\",\n \"-sur-Mer\",\n \"-la-Forêt\",\n \"boeuf\",\n \"nec\",\n \"dan\"...
[ { "content": "from typing import Tuple\n\nfrom .. import Provider as AddressProvider\n\n\nclass Provider(AddressProvider):\n city_suffixes = (\n \"Ville\",\n \"Bourg\",\n \"-les-Bains\",\n \"-sur-Mer\",\n \"-la-Forêt\",\n \"boeuf\",\n \"nec\",\n \"dan\"...
diff --git a/faker/providers/address/fr_FR/__init__.py b/faker/providers/address/fr_FR/__init__.py index 1125716eb8..2ee2330542 100644 --- a/faker/providers/address/fr_FR/__init__.py +++ b/faker/providers/address/fr_FR/__init__.py @@ -469,10 +469,10 @@ def department_number(self) -> str: def postcode(self) -> st...
goauthentik__authentik-4957
Launch URL in Application UI Settings can't be entered for some domains **Describe the bug** When I try to add a fixed link to an application, it will return an error with null text. I think this is happening only for any subdomain that has a dash character on the subdomain portion of the name: ej: https://tbb-asset...
[ { "content": "\"\"\"Generic models\"\"\"\nimport re\n\nfrom django.core.validators import URLValidator\nfrom django.db import models\nfrom django.utils.regex_helper import _lazy_re_compile\nfrom model_utils.managers import InheritanceManager\nfrom rest_framework.serializers import BaseSerializer\n\n\nclass Seri...
[ { "content": "\"\"\"Generic models\"\"\"\nimport re\n\nfrom django.core.validators import URLValidator\nfrom django.db import models\nfrom django.utils.regex_helper import _lazy_re_compile\nfrom model_utils.managers import InheritanceManager\nfrom rest_framework.serializers import BaseSerializer\n\n\nclass Seri...
diff --git a/authentik/core/tests/test_applications_api.py b/authentik/core/tests/test_applications_api.py index 5c485ea68146..587e3a3d23ce 100644 --- a/authentik/core/tests/test_applications_api.py +++ b/authentik/core/tests/test_applications_api.py @@ -43,14 +43,14 @@ def test_formatted_launch_url(self): sel...
ManimCommunity__manim-1596
Tex() object with multi string initialization, indexing affects wrong characters when arg_separator is different from white space ## Description of bug / unexpected behavior When creating a Tex() object with multiple strings and setting an arg_separator to a comma, the object doesn't display fully. And attributes of i...
[ { "content": "r\"\"\"Mobjects representing text rendered using LaTeX.\n\n\nThe Tex mobject\n+++++++++++++++\nJust as you can use :class:`~.Text` to add text to your videos, you can use :class:`~.Tex` to insert LaTeX.\n\n.. manim:: HelloLaTeX\n :save_last_frame:\n\n class HelloLaTeX(Scene):\n def co...
[ { "content": "r\"\"\"Mobjects representing text rendered using LaTeX.\n\n\nThe Tex mobject\n+++++++++++++++\nJust as you can use :class:`~.Text` to add text to your videos, you can use :class:`~.Tex` to insert LaTeX.\n\n.. manim:: HelloLaTeX\n :save_last_frame:\n\n class HelloLaTeX(Scene):\n def co...
diff --git a/manim/mobject/svg/tex_mobject.py b/manim/mobject/svg/tex_mobject.py index 7de7c0e4f4..5ff149bdf2 100644 --- a/manim/mobject/svg/tex_mobject.py +++ b/manim/mobject/svg/tex_mobject.py @@ -500,7 +500,9 @@ def break_up_by_substrings(self): tex_template=self.tex_template, ) ...
facebookresearch__hydra-2016
Fix CI (for latest pytest version) A new pytest release came out earlier today.
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nimport copy\nimport os\nimport platform\nfrom dataclasses import dataclass\nfrom pathlib import Path\nfrom typing import List\n\nimport nox\nfrom nox.logger import logger\n\nBASE = os.path.abspath(os.path.dirna...
[ { "content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nimport copy\nimport os\nimport platform\nfrom dataclasses import dataclass\nfrom pathlib import Path\nfrom typing import List\n\nimport nox\nfrom nox.logger import logger\n\nBASE = os.path.abspath(os.path.dirna...
diff --git a/noxfile.py b/noxfile.py index 4c36428ebe6..05e9a2871e6 100644 --- a/noxfile.py +++ b/noxfile.py @@ -475,7 +475,9 @@ def test_jupyter_notebooks(session): f"Not testing Jupyter notebook on Python {session.python}, supports [{','.join(versions)}]" ) - session.install("jupyter", "nbv...
scverse__scanpy-540
Scatter plot of numerical observation with missing data I have a dataset for which I have an observation that is only available for some cells. When I make a scatter plot that I color code for this observation not all cells are plotted: ```python import random import scanpy as sc adata = sc.datasets.blobs() adat...
[ { "content": "from collections import abc\nfrom typing import Union, Optional, Sequence, Any, Mapping\n\nimport numpy as np\nfrom anndata import AnnData\nfrom cycler import Cycler\nfrom matplotlib.axes import Axes\nfrom matplotlib.figure import Figure\nfrom pandas.api.types import is_categorical_dtype\nfrom mat...
[ { "content": "from matplotlib import pyplot as pl\nfrom pandas.api.types import is_categorical_dtype\nimport numpy as np\nfrom matplotlib import rcParams\nfrom matplotlib.colors import is_color_like\nfrom .. import _utils as utils\nfrom ...utils import sanitize_anndata, doc_params\nfrom ... import settings\nfro...
diff --git a/scanpy/plotting/_tools/scatterplots.py b/scanpy/plotting/_tools/scatterplots.py index b353de6d53..6190811028 100644 --- a/scanpy/plotting/_tools/scatterplots.py +++ b/scanpy/plotting/_tools/scatterplots.py @@ -651,7 +651,7 @@ def _get_color_values(adata, value_to_plot, groups=None, palette=None, use_raw=F ...
ckan__ckan-4879
Process completed but unable to post to result_url ### CKAN Version if known (or site URL) version 2.8.1 ### Please describe the expected behaviour I install ckan with docker, and everything works fine but when I add a resource in datastore it does not work I get this error Process completed but unable to post to ...
[ { "content": "# encoding: utf-8\n\nimport logging\nimport json\nimport urlparse\nimport datetime\nimport time\n\nfrom dateutil.parser import parse as parse_date\n\nimport requests\n\nimport ckan.lib.helpers as h\nimport ckan.lib.navl.dictization_functions\nimport ckan.logic as logic\nimport ckan.plugins as p\nf...
[ { "content": "# encoding: utf-8\n\nimport logging\nimport json\nimport urlparse\nimport datetime\nimport time\n\nfrom dateutil.parser import parse as parse_date\n\nimport requests\n\nimport ckan.lib.helpers as h\nimport ckan.lib.navl.dictization_functions\nimport ckan.logic as logic\nimport ckan.plugins as p\nf...
diff --git a/ckanext/datapusher/logic/action.py b/ckanext/datapusher/logic/action.py index b530273b2c7..5a5f5196767 100644 --- a/ckanext/datapusher/logic/action.py +++ b/ckanext/datapusher/logic/action.py @@ -62,7 +62,14 @@ def datapusher_submit(context, data_dict): datapusher_url = config.get('ckan.datapusher.url...
chainer__chainer-7738
Improve chainerx import check #7518 has disabled the following: 1. Check out the source code and `import chainer` without pip install. 2. pip install chainer in non-editable mode (with/without chainerx) and import chainer from the source root directory. \1. should be supported. In 2., we should give more comprehen...
[ { "content": "import os\nimport warnings\n\nfrom chainerx import _build_info\n\n\nif _build_info.build_chainerx:\n from chainerx import _core\n _available = True\nelse:\n _available = False\n\n\nif _available:\n from numpy import dtype # NOQA\n from numpy import ( # NOQA\n Inf, Infinity,...
[ { "content": "import os\nimport warnings\n\ntry:\n from chainerx import _build_info\nexcept ImportError:\n raise ImportError(\n '''\\\nCannot import chainerx because _build_info.py cannot be found.\n\nThe chainer and chainerx module being imported was not correctly \\\ninstalled by `pip install`.\n...
diff --git a/chainerx/__init__.py b/chainerx/__init__.py index 461b82428a0c..1a894c81054f 100644 --- a/chainerx/__init__.py +++ b/chainerx/__init__.py @@ -1,8 +1,22 @@ import os import warnings -from chainerx import _build_info - +try: + from chainerx import _build_info +except ImportError: + raise ImportErro...
getsentry__sentry-3323
Culprit not shown for iOS For some iOS events the culprit is not shown in the UI.
[ { "content": "from __future__ import absolute_import, print_function\n\nimport logging\nimport posixpath\n\nfrom sentry.models import Project, EventError\nfrom sentry.plugins import Plugin2\nfrom sentry.lang.native.symbolizer import Symbolizer, have_symsynd\nfrom sentry.models.dsymfile import SDK_MAPPING\n\n\nl...
[ { "content": "from __future__ import absolute_import, print_function\n\nimport logging\nimport posixpath\n\nfrom sentry.models import Project, EventError\nfrom sentry.plugins import Plugin2\nfrom sentry.lang.native.symbolizer import Symbolizer, have_symsynd\nfrom sentry.models.dsymfile import SDK_MAPPING\n\n\nl...
diff --git a/src/sentry/lang/native/plugin.py b/src/sentry/lang/native/plugin.py index 2d32fd789d08ff..28b6b49d305861 100644 --- a/src/sentry/lang/native/plugin.py +++ b/src/sentry/lang/native/plugin.py @@ -96,7 +96,11 @@ def inject_apple_backtrace(data, frames, diagnosis=None, error=None, exc = exception_from...
Lightning-AI__torchmetrics-2143
TypeError: `NoTrainInceptionV3.__init__()` takes 1 positional argument but 4 were given Hello, trying to init NoTrainInceptionV3 with latest version ``` feature_list=["2048"] inception = NoTrainInceptionV3(name="inception-v3-compat", features_list=feature_list) ``` but I get ``` 445 r...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ { "content": "# Copyright The Lightning team.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e26ef438ddb..50e9482bb51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `average` argument to multiclass versions of `PrecisionRecallCurve` and `ROC` ([#2084](https:...
biolab__orange3-text-526
Word Enrichment: sort by p-value <!-- This is an issue template. Please fill in the relevant details in the sections below. --> ##### Text version <!-- From menu _Options→Add-ons→Orange3-Text_ or code `orangecontrib.text.version.full_version` --> 0.8.0 ##### Orange version <!-- From menu _Help→About→Version...
[ { "content": "from types import SimpleNamespace\nfrom typing import List, Optional, Any\n\nimport numpy as np\nfrom AnyQt.QtWidgets import QTreeWidget, QTreeView, QTreeWidgetItem\n\nfrom Orange.data import Table, Domain\nfrom Orange.widgets import gui\nfrom Orange.widgets.settings import Setting\nfrom Orange.wi...
[ { "content": "from types import SimpleNamespace\nfrom typing import List, Optional, Any\n\nimport numpy as np\nfrom AnyQt.QtWidgets import QTreeWidget, QTreeView, QTreeWidgetItem\n\nfrom Orange.data import Table, Domain\nfrom Orange.widgets import gui\nfrom Orange.widgets.settings import Setting\nfrom Orange.wi...
diff --git a/orangecontrib/text/widgets/owwordenrichment.py b/orangecontrib/text/widgets/owwordenrichment.py index 95e013ef4..32d9b2da6 100644 --- a/orangecontrib/text/widgets/owwordenrichment.py +++ b/orangecontrib/text/widgets/owwordenrichment.py @@ -115,7 +115,7 @@ def __init__(self): self.sig_words.setHead...