sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
5336343e4a4ef62a646634973e17d3239eb0d32dd65deb6a6eea26bdac8c62f7 | Python | 10,398 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "histogram2d.colorbar"
... |
55ff543384cfdd074bf7fd4852978b02a1ce5fb76f7a67506845ebb80b54a8c5 | Python | 10,398 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "parcats.line.colorbar.titl... |
91b45087ad89dbcb4d9bf4c9d30d78a379e82b834087de3649def29173e31d12 | Python | 10,398 | 313 | # Copyright 2023 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... |
d9c4a1b07c79f2789b9a0fa7415cbbbd1d41719b7e050ef08220eb21c18d3c9a | Python | 10,398 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "indicator.gauge.axis"
... |
5074ac68f82a9031fdee4af5560b89fc1964fb1a1cfa25f0da76ab5c2e4ab678 | Python | 10,399 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickfont(_BaseLayoutHierarchyType):
_parent_path_str = "layout.polar.radial... |
cd10730a992f77089cbc57217838e2448e89c10ca33540e9e135442858e4cd3a | Python | 10,400 | 326 | import argparse
from collections import OrderedDict
from typing import List, Tuple
import numpy as np
from pytorch_lightning import LightningModule, Trainer, seed_everything
from pytorch_lightning.callbacks import ModelCheckpoint
from torch import Tensor, optim
from torch.nn.functional import log_softmax
from torch.op... |
557c24f6a2251ad8e31bb7ee16e00b381415d5a9add8df0ce5f54d5e0f2b31a6 | Python | 10,401 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "densitymap.legendgrouptitl... |
596ba3e2637482af67054195541f8914849848bd6502cb826ede22119ac08afa | Python | 10,401 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "choropleth.legendgrouptitl... |
780dafba96c18efb93dde71b03160a0126f1e8a1d79e04d678ef2f7068292fc3 | Python | 10,401 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattergeo.legendgrouptitl... |
a3163fc3882be84d2b1a7dbc5798b2b8c49bdacbf3be39f00f2f115b11edefa8 | Python | 10,401 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "streamtube.legendgrouptitl... |
ba66b49a2803bfb61165e336095d2fca114a5274b9c627f4b471a6284643e392 | Python | 10,401 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "isosurface.legendgrouptitl... |
c8226f6053ed476576dc7d9b4e97e82d342f7a268826e62491e355cb5852c561 | Python | 10,401 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattermap.legendgrouptitl... |
c85af624472eb31afba079e480dcc49d46e0187123565138450ed8fc66a52e93 | Python | 10,401 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "funnelarea.legendgrouptitl... |
0b8454873dafd2be832cdb1e050c1952f82e2c9fb3846800f0e543e25f142e4a | Python | 10,403 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "splom.marker.colorbar"... |
2a2ae8b95c0dc3d027d6c37416bb1a4b68008edf64abc80d79a21b0daa38deae | Python | 10,403 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "parcats.line.colorbar"... |
3537e1cb0ba70ff90803c813eb77e76b22d17d92417d5e666ef0376bc1677ed8 | Python | 10,403 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "funnel.marker.colorbar.tit... |
466d77d479ce650076acd3a1c0c54427b323d28d0af97e1cbc10deab492b6fd3 | Python | 10,403 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "contourcarpet.colorbar.tit... |
5d73c3dcace76840105631b52f0af91ced2c2b51aae499363a43c579abae8c9f | Python | 10,403 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "quiver.marker.colorbar.tit... |
89a1ea9f41476a5eaa3b0040b13c130525d96deaeaff96531edeedb6080ec59d | Python | 10,403 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "icicle.marker.colorbar.tit... |
c7713d82dacde5533ad3e5d08dca0b0c0dcdb41b521db7688f648e444275d64e | Python | 10,403 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "choroplethmap.colorbar.tit... |
3a0ed29f3548487045eda1513a002bb1bcc1c1ff8abc74011106d6e402b13bf6 | Python | 10,404 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickfont(_BaseLayoutHierarchyType):
_parent_path_str = "layout.polar.angula... |
7e654a92d6ed59028a048dafcbb3734840dfd7eff75146f4d856896263e89ae5 | Python | 10,404 | 275 | from typing import Callable, Optional, Tuple
import numpy as np
from anndata import AnnData
from tqdm import tqdm
#########################
# Differential Geometry #
#########################
def compute_acceleration(vf, f_jac, X, Js=None, return_all=False):
"""Calculate acceleration."""
n = len(X)
acc... |
07fcab9e7d047aa780623e3d09417231c55b1694f61b4ed18a9c52822173d771 | Python | 10,405 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Insidetextfont(_BaseTraceHierarchyType):
_parent_path_str = "histogram"
_... |
0e4a96b6ff3d472e60a15685c08fec8fea6e3df5570dc32e7e165b9400c8a95c | Python | 10,405 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
_parent_path_str = "layout.polar.radialaxis... |
04e812f749105fa90d4d105ca75dbc08b6a27ad8c6e960b95a988ea9b496129a | Python | 10,406 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "histogram2d.legendgrouptit... |
a82481e96f13aa60b87fc9f54ff2292f4d4653ec681f9dfcace0ecd47bbd5480 | Python | 10,406 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "candlestick.legendgrouptit... |
7ebfa10d7338cc6b27843963caf85aa396c5440540645cb9500ebe2fe0ece0da | Python | 10,407 | 337 | #!/usr/bin/env python
"""
Small library with cheminformatic functions based on openbabel and pgchem.
Copyright 2012, Bjoern Gruening and Xavier Lucas
"""
import glob
import re
import subprocess
import sys
import tempfile
from multiprocessing import Pool
try:
from galaxy import eggs
eggs.require("psyc... |
191f0a022c3c6d35f50d4d3c2a14c22b36562bc13823ee382926d176a8acc157 | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "parcoords.line.colorbar.ti... |
230e3737ac59df6477f71412d41798ce4e37d4bd743562b1cc1933bf2559eb1e | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatter.marker.colorbar.ti... |
2d96c8bd1f7ab3dbf23e53cd661d6ee4f4df7ccbf7b56caff86865e19a3c7e44 | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "choroplethmap.colorbar... |
461b75f62ce6ee380d36afccd1595c48cb7f9aec0152081f4a64089fdd368eff | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "treemap.marker.colorbar.ti... |
7cabf5b6fb1081104d615820a9a061fcdb12701e8476603c48bec48001c2dad8 | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "contourcarpet.colorbar... |
7e09060b0c89af7eb76c8c8c79b2c42ee91e02b9983e3d0232b77fe8dccf5b5b | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "icicle.marker.colorbar... |
88f49da39b04ceb79f3784e01ee32e4fffde4220d0149245296a846649029006 | Python | 10,408 | 282 | """Typed-door tests for the r3 data_classes refusal conversions.
Every case provokes a public refusal converted from a raw builtin raise in
``torchlens/data_classes/`` and asserts the error-refusal contract: the
exception is a ``TorchLensError`` subclass retaining its historical builtin
base, carries a stable ``fields... |
a6d98f9d5f0a6172963b8e0099efaca57fb73df32f8c40e5dd959144a6f7d1a1 | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatter3d.line.colorbar.ti... |
c1e980d52c1225776ee0230e0d499dd1cd8f3a143a068169ab0730a59bed16ad | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "funnel.marker.colorbar... |
ee981213b7ee643239582cba1c8bc13f45f2e5f2cc5b13b31931d4b5a8e8f821 | Python | 10,408 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "quiver.marker.colorbar... |
7486d154e0748697eb16990aa139529177e1b1abed18276cb0c8b5f8cd03a295 | Python | 10,409 | 282 | from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from fastapi import FastAPI, Response
from fastapi.testclient import TestClient
from starlette.middleware.sessions import SessionMiddleware
from carbonserver.api.routers import authenticate
from carbonserver.api.services.auth_providers.oidc_auth_prov... |
760fe8d85c6449cc5c8fc0fa6db3d54be4e9cb787e6993a4881fdfe9b8a1a008 | Python | 10,409 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
_parent_path_str = "layout.slider.currentva... |
99b1d47053befd7cc4ca7e4c5c5a81c72e6f108979ccadd036f2b802ebb982eb | Python | 10,409 | 222 | # Copied from Driss Guessous's PR in PyTorch: https://github.com/pytorch/pytorch/pull/105602
# This file is run to generate the kernel instantiations for the flash_attn kernels
# They are written to several files in order to speed up compilation
import argparse
import itertools
from collections import namedtuple
from... |
5beb87bf991538cc184265c62029742a120d99741f4f26cdf74774db4231f197 | Python | 10,411 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatterpolar.legendgroupti... |
8895647510e287a3f10233243be287218740b5db38609856b4f6f4cb45406f36 | Python | 10,411 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattersmith.legendgroupti... |
98aefa0c12e0da131762775fa2fffbee0e988adbef39382925160ae2b525040e | Python | 10,411 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
_parent_path_str = "layout.xaxis.rangeselec... |
d194fd7d7b8b64630565b30afe14cc3bc08cf70b8d4c2ba63f0a17c43429049c | Python | 10,411 | 293 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
import pandas as pd
import math
import argparse
import os
import sys
import pwd
import pdb
import grp
INPUT_PATH = "SimBoost/data/davis_cv2.csv"
LOG_DIR = "logs/"
#u... |
2b901c6566971831671b2aa0f80811ff76bef530c9d7e199766b9a8565131991 | Python | 10,413 | 335 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Gauge(_BaseTraceHierarchyType):
_parent_path_str = "indicator"
_path_str ... |
2bbe49222ed346955cdbc86737e569931535d955e0c51dd8d097c9f61bf7fddb | Python | 10,413 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "parcoords.line.colorba... |
491cfd413abdb0fbfe2d7564b2c9b7c59f0e0e0c71a93074809b2687483e4df1 | Python | 10,413 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scatter3d.line.colorba... |
a841c3b5536b318f0b89880794e020a2b712678fdff2d4313b77d6ac8aa101e8 | Python | 10,413 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "barpolar.marker.colorbar.t... |
b46900d856e7b6e2feea8b00ade8ce78bf6c6b2117532fa0d4f4f046a48fb551 | Python | 10,413 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "treemap.marker.colorba... |
c9e0ccd689a87a14e2ffd7b1dae7fd63fdbb24defa19fd22c8d322983b7a8310 | Python | 10,413 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "sunburst.marker.colorbar.t... |
e2c46e569903f0f76fe451c3cd2f8d3ef5bbb822893059feb0f1047ad7bd7466 | Python | 10,413 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scatter.marker.colorba... |
0bf93f5ef8e1943037437e586d3b41c536f035cdb6006ff5e6d941f841c64e4b | Python | 10,414 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
_parent_path_str = "layout.shape.legendgrou... |
39b02c29b8e0e04815f686b2981f6f8c70653e676292bfab87f38922b65fcf08 | Python | 10,414 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Outsidetextfont(_BaseTraceHierarchyType):
_parent_path_str = "histogram"
... |
6a3c6b7cdf645229313d29911330dda2659d2291be1dac2dae299b4b2e27ad88 | Python | 10,414 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickfont(_BaseLayoutHierarchyType):
_parent_path_str = "layout.smith.imagin... |
2197d035bbefe8580d58da0ebbd40d94655776495153c1d16966d61a6456d13c | Python | 10,416 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "contourcarpet.legendgroupt... |
2199efa085e7b42835d8ba39840a51433761cfc7a459a7aeab6d52d6a8b4c57d | Python | 10,416 | 268 | # Copyright (c) Facebook, Inc. and its affiliates.
import json
import os
import random
import re
import numpy as np
import slowfast.datasets.transform as transform
import slowfast.utils.logging as logging
import torch
import torch.utils.data
from PIL import Image
from slowfast.models.utils import calc_mvit_feature_ge... |
50201c1f707dc95b14814cd5801ee0f7b84df6ce41137e640cfac5d35cc1aa70 | Python | 10,416 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattercarpet.legendgroupt... |
b8ddcda4008fa0cd7e87a5f005d880d4df801f9087a48757ee89237d56437953 | Python | 10,416 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "choroplethmap.legendgroupt... |
10857a0673903d0d1c151180f07c9ee10e5057297b894975c81236af63a2e533 | Python | 10,418 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatter3d.marker.colorbar.... |
38c90c196fa24a91c7bb864d001b4fea7f18d12fc31fff5770220ca3dd81165b | Python | 10,418 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "histogram.marker.colorbar.... |
3c828902e7815e4c70991843e2b42ff239d4c9feb0d28a6b7f372a90057d92dd | Python | 10,418 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "sunburst.marker.colorb... |
46ee90ef27886fec8e101b09a773ace2339aa2ae48e66abb9a0510e462c25805 | Python | 10,418 | 310 | """Tests that gym.make works as expected."""
import re
import warnings
from copy import deepcopy
import numpy as np
import pytest
import gym
from gym.envs.classic_control import cartpole
from gym.wrappers import AutoResetWrapper, HumanRendering, OrderEnforcing, TimeLimit
from gym.wrappers.env_checker import PassiveE... |
4e8f7ab650bc17368c43b2c443bfc4e6d4b541fd004064969b8fa119bf2910a2 | Python | 10,418 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattergl.marker.colorbar.... |
6cf399c91274180886b16506172c7ec19f07f8f202fd6c01fbc2614b0ae6ae0b | Python | 10,418 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "barpolar.marker.colorb... |
10ce9a37a82effe9d8b61add8fddd22845ec3eea1d09a71ee7df3cf133f01a04 | Python | 10,421 | 288 | """
Functions for annotating spots as cell types.
"""
import os
import numpy as np
import pandas as pd
import scanpy as sc
import stlearn.tools.microenv.cci.r_helpers as rhs
def run_label_transfer(
st_data, sc_data, sc_label_col, r_path, st_label_col=None, n_highly_variable=2000
):
"""Runs Seurat label tran... |
9c0a5f154eec90fa8f0f52875408b0d21cad4d5efad5f5c970224b7b776843a2 | Python | 10,421 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatterternary.legendgroup... |
bfab13d43393220ed9dd071bbd88e4567b7c2404f2b13b4357768408a0eb1d99 | Python | 10,421 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
_parent_path_str = "layout.coloraxis.colorb... |
e11b9b22d35bab4d163cb80abec98fc2030c0fa240e1d829b674945ef34f58ae | Python | 10,421 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatterpolargl.legendgroup... |
113aa1289d2f8531c493ecbb58726993977e0cc3809aecb74276f1c3af3b30c6 | Python | 10,423 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scatter3d.marker.color... |
11ffa77254f3dafef614cf2d557107177654cade8d45b2b317c6f78fd0b4dedb | Python | 10,423 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scattergl.marker.color... |
33cbc2d8dfc902255cc6c0df41130716d7e511fc4037d4bb399bb6a815b7fa5b | Python | 10,423 | 271 | """
This module define a specific dataset
"""
from cProfile import label
import logging
import torch
from datasets_pre_processing.generic_dataset import GenericDataset
from goatools.obo_parser import GODag
import pickle as pkl
import os
from tqdm import tqdm
from goatools.gosubdag.gosubdag import GoSubDag
class Class... |
3ac09bcab6ad5a39ff239bbf3b73b8b8854af47e1beabd9fa908cca0ef5bde2e | Python | 10,423 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattergeo.marker.colorbar... |
67b2f1ae96245be6f468ca51df43c163462f7257e85469bb941ac62a1d8fccc1 | Python | 10,423 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattermap.marker.colorbar... |
9bcced8951d9010baddf9fa5a4e770cd873100690735531c64fe712b744696d3 | Python | 10,423 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "histogram.marker.color... |
a3be4ae2749f768b974bb5f74f74fffd32a469efcac3b4262029e207d11aa31c | Python | 10,424 | 315 | #!/usr/bin/env python
#
# Copyright 2010 Google Inc. All Rights Reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list o... |
6a92b7dfe8b36cedc5d2fc6b53112ee7798b94bc2828fb4c4e4d385d7faf7a7e | Python | 10,426 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Tickfont(_BaseLayoutHierarchyType):
_parent_path_str = "layout.coloraxis.co... |
eddf081fd043e40578dc7aff5c678f47ce59aac81abe320b51db729a0269e348 | Python | 10,426 | 341 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
_parent_path_str = "layout.legend.title"
... |
f524567cf1ce3a0b1fbebd22392fae421ba624c1045a4367b30cda9fda2ddd96 | Python | 10,427 | 245 | """Implementation of a space that represents the cartesian product of other spaces as a dictionary."""
from collections import OrderedDict
from collections.abc import Mapping, Sequence
from typing import Any
from typing import Dict as TypingDict
from typing import List, Optional
from typing import Sequence as TypingSeq... |
8197ebc4e79559e46a81d45c19c47238933bd75e6142b771da0e9ce53cbcd2ed | Python | 10,428 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "histogram2dcontour.colorba... |
f336a1959c38d0c078fea5e921b8022be38c14c605cdf2e4d8c5aec15929c680 | Python | 10,428 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scattermap.marker.colo... |
fc1b168516d539b13cddbcf056c49ccced38ebf6eac13b60cde0f4c09de3723a | Python | 10,428 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scattergeo.marker.colo... |
264a97dffa13512099e0529497dcafa7446bd3e532430e0135dd77ed6e52682c | Python | 10,429 | 225 | # 均匀采样效果较差
import json
import numpy as np
import os, sys
import random
from collections import Counter
from sklearn import preprocessing
from sklearn.metrics import f1_score
from sklearn.metrics import confusion_matrix
import torch
import torch.nn as nn
import torch.nn.utils.rnn as rnn_utils
import torch.nn.functional ... |
6af1c83ba068bb5f29ade493d783d65406d4ede44c2dce4ca0f2fdf17035ed2d | Python | 10,429 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Font(_BaseLayoutHierarchyType):
_parent_path_str = "layout.newshape.legendg... |
7fdd14b2fada90a37ae0b45720061bd7b34d103022c35ce135b5963570656456 | Python | 10,433 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatterpolar.marker.colorb... |
a4b89242c234f3772049687058bc69919f3cf0e5c1da7a290974f2eb65267958 | Python | 10,433 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattersmith.marker.colorb... |
b9d1392936e9134a31eaf6a85481d8a94ada2f2981964e6fffbd4f4d92e1d67a | Python | 10,433 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "histogram2dcontour.col... |
6857b4b0db9af95f8c8d470824bfd7d9ebe3996e39ba02e58583db3cc8382956 | Python | 10,434 | 332 | import torch
from torch import nn
from torch.nn import functional as F
class Interpolate(nn.Module):
"""nn.Module wrapper for F.interpolate."""
def __init__(self, size=None, scale_factor=None):
super().__init__()
self.size, self.scale_factor = size, scale_factor
def forward(self, x):
... |
657504f1694b50bb2067de0ab7ab1fae9acdce8cb73f131fabce8320fde7c2e3 | Python | 10,438 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scattercarpet.marker.color... |
b8832f52ffd92426ce28854985818f2e218b10b1e661743a3e894e82052086c7 | Python | 10,438 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scatterpolar.marker.co... |
d83231e6510f065c3c9f50abe6bd87a08b61a8c1e9f3606623dbec054477bc8d | Python | 10,438 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scattersmith.marker.co... |
84832e29e87442c79664948592325c3d17f4483125417b7ef1489bf6e8a195f4 | Python | 10,439 | 307 | # Copyright 2025 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
9215c61dbd4efeab616764ac95badf78ac469b7cda66f80b564e91e24c939922 | Python | 10,439 | 225 | # 均匀采样效果较差
import json
import numpy as np
import os, sys
import random
from collections import Counter
from sklearn import preprocessing
from sklearn.metrics import f1_score
from sklearn.metrics import confusion_matrix
import torch
import torch.nn as nn
import torch.nn.utils.rnn as rnn_utils
import torch.nn.functional ... |
4e09099659aa1b079c1495ef02bf813f9f86c1726286aaf9437095ec643edf1c | Python | 10,441 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "histogram2dcontour.legendg... |
188fc4fcc683e82f67063c0e00e9c8425b0b5509ecf9ae043fa0559248d3678b | Python | 10,443 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scattercarpet.marker.c... |
5bcc349de9cfabe944a516cf647f6de91aa6a2891e77c4605ac5da223dff82e3 | Python | 10,443 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatterternary.marker.colo... |
862a8eeb0b9828e2efec1ce9ad948fb5d4d4c7b088e44901ae03245f85cea3de | Python | 10,443 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Font(_BaseTraceHierarchyType):
_parent_path_str = "scatterpolargl.marker.colo... |
a99eb423b766ad43816752cf234b2ada405d2cd77eb9c2ddddd94b1200639641 | Python | 10,444 | 350 | """
Plot beta lateralization separately for current correct and error response locked to
stimulus onset and locked to response
"""
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pylab as pl
import seaborn as sns
from mne.stats import permutation_cluster_1samp_test
from... |
4680bc8ae32cf394f4295c5b6a5a59819734ed233a57d20ea7152bc68dd50f2e | Python | 10,445 | 241 | """RG breadth scenarios: gpt2, albert, CLIP, detection, T5 (testing memo 5.2).
RG06 attribution patching (gpt2), RG09 pass-qualified patching on REAL
cross-layer weight sharing (albert), RG14 multimodal processor kwargs
(CLIP), RG15 detection with two shapes and the zero-result case (Faster
R-CNN), RG17 encoder-decode... |
7eb84aac3725552e78a7e48b0a843d4c1faae56f4ee0ea3b0c2880b6e36ca286 | Python | 10,445 | 356 | """Characterization tests for tensors that are both inputs and parameter-like."""
from __future__ import annotations
from pathlib import Path
from typing import Any
import pytest
import torch
from torch import nn
import torchlens as tl
import torchlens.validation as tl_validation
from torchlens.intervention.types i... |
1ac30ebf9f962b06376c5723ae2ced2c32c0450c7cf12ae52a169d07d544d726 | Python | 10,448 | 340 | # --- THIS FILE IS AUTO-GENERATED ---
# Modifications will be overwitten the next time code generation run.
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
_parent_path_str = "scatterpolargl.marker.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.