sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
de0de616f63fb508baee6c953e1f7a9afb22f85307d470539db56289959a7543
Python
10,360
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.title.subtitle" ...
fb3b77db81aae50e15a9004c01630a6e123d2f5e82ba7588b1ccc48d6eb7d2f9
Python
10,360
269
#!/usr/bin/env python3 """ File: plot_ieqtl_overlap.py Created: 2022/12/14 Last Changed: Author: M.Vochteloo Copyright (C) 2020 University Medical Center Groningen. A copy of the BSD 3-Clause "New" or "Revised" License can be found in the LICENSE file in the root directory of this source tree. """...
c2db9e7d479fe1b1866c89df0a4ac9f4f438ccc16f72972192a280e89f957325
Python
10,361
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 Rangefont(_BaseTraceHierarchyType): _parent_path_str = "parcoords" _path_...
7a6ceb1d7a1673f1f737369b32cfce48e5c1cb3746a2bf045443ffbf7ed97946
Python
10,362
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.updatemenu" ...
d3c4973f445ad0c318e233713da1b48321819c77987200781997e9707e8e0a89
Python
10,362
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 = "cone.colorbar" _pa...
659d89361cfae7a836e5601ead3bab01f327bcf92545149041ca6c0be3c6a03d
Python
10,365
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 = "box.legendgrouptitle" ...
8f025dbd6fdafbce944da4f090e2bf4eb3b8a1546255bae573d235168be34801
Python
10,365
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 = "pie.legendgrouptitle" ...
d60ef795d613a067682d4c5d554beb905d759fbb8ff553279476e36f616bf0e9
Python
10,365
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 = "bar.legendgrouptitle" ...
d568aeb2fab1cf0e951d00fa09fa2e97a2f009c8b463cd55243536ebde1555ef
Python
10,366
335
''' Collection of functions for loading and organising data. ''' import platform import os import pandas as pd import numpy as np import nibabel as nib import pingouin as pg def get_computer(): ''' Detects which computer the code is being run on using platform. Useful for changing paths on the hpc vs. luck...
210eca6edc9d8b3d3eb6ecd13b9545c51c2ee8300f227150b0ad733c0509be53
Python
10,367
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 = "volume.colorbar.title" ...
d2ed86dfc230aaef4b01d673a62998d6290dc6820c270838ed3c1179ef0e0782
Python
10,367
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 = "mesh3d.colorbar.title" ...
47088e80177ddaff6a1b4391453e8560b63fa66c7d07741dfd8c9e5733cb2c85
Python
10,368
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" _path_str =...
66a0167bd66fb3e6af8acd61333faebd984129f178b3238b470052f3327d9d85
Python
10,369
244
import time import atexit import os import pathlib from datetime import datetime from threading import Timer import csv import json import flatten_json from modular_client import ModularClients DEBUG = False class MouseJoystickInterface(): ''' MouseJoystickInterface. Example Usage: dev = MouseJoys...
35c48ea4bcd64b76d441c18a9e98f28be600007bbefb6879b0e70af66386d3c5
Python
10,370
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 = "ohlc.legendgrouptitle" ...
b5c214dbd9115a27628d8ab25f110e283894fa8a705e7913b846b326d88f13fc
Python
10,370
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 = "cone.legendgrouptitle" ...
22cfed05560f93b4282c501fd8881a1446ceb5746de2d406770915833a3a3e86
Python
10,372
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 = "heatmap.colorbar.title" ...
81392daf6f7a4069b5d2b6195d1eccd0c0a85a677e873992c0be5cfa9420336b
Python
10,372
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.label" ...
8244fb694a47a11342fb6f2c698dc0c782e3274db3f2efd81538dbbb066ac199
Python
10,372
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 = "mesh3d.colorbar" _...
b8d68e9a7cd38f8a19940006986e02d3627dcf93694b8839f3cb2143e3f67af6
Python
10,372
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 = "surface.colorbar.title" ...
eb0ac9719af74fad4a730f780ca54b4b40085f8f71b100ac040d426a6b865ed4
Python
10,372
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 = "volume.colorbar" _...
edd2e73f4a639442fbe44ff69d43c72fb78c1349ce0302f5e97da06e6c931711
Python
10,372
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 = "contour.colorbar.title" ...
06aa83bb7bab0eb743a4349b3ffa125e35a5995b6a540c9f8dbb46ca62bec242
Python
10,373
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.scene.yaxis"...
a849faa4fd910d28e2227fd2f3ba6a674813e1bca758ecbeb9cee6b7bd05ecb2
Python
10,373
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.scene.zaxis"...
aa094266f187b3bb97459a47571bc6db0a0b48bd70e3fd87ce72406129fd25cf
Python
10,373
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.scene.xaxis"...
13e623a69c69fed502ed6076baed43acbad4dc1fd50a31a8cb445a50addd4b02
Python
10,374
162
""" 1D and 2D Parameter Continuations ================================= In this tutorial, you will learn how to perform 1D and 2D `numerical parameter continuations <http://www.scholarpedia.org/article/Numerical_analysis#Numerical_solution_of_ differential_and_integral_equations>`_ in `PyCoBi` with automatic fold `bif...
a0cb36d98d6d3c72d9376ada0d2cb91da0f253adb2a702bc724d2995d5beeb1a
Python
10,375
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 = "table.legendgrouptitle" ...
c09b1b7f7da3397caaa99400f056d7f6fd7b2f23d2d64a9e9ee696371173dc71
Python
10,375
225
# 均匀采样效果较差 import json import numpy as np import os, sys 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 as F from torc...
cacdc4be5bb8f07a40ce140423633aaa78c8ecf63b67466d83c7e87a9afe4747
Python
10,375
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 = "image.legendgrouptitle" ...
f0eb812c20a88c1da420aaee5ef7cdcd098f3dc839bc26d761eabab739341690
Python
10,375
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 = "splom.legendgrouptitle" ...
a2868fb3cf318d6ee26b2a258348d68d77a01b3723640dfbefc12002f2f7f85f
Python
10,376
273
"""The five wave-0 static lints, each with its plant (build item 4). All sub-second except the numeral census (marked heavy: it AST-walks ~1,500 files in one go, well inside the 20 s heavy budget). None can flake: every lint is a set difference over static parses plus D25 KNOWN-GAP mechanics. """ from __future__ impo...
259424d907a905f9c396365855f18d0926fe5b6ac16b2072172034e1df9cec7b
Python
10,377
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 = "heatmap.colorbar" ...
416464e957767123f82d69fd27860a27f48b836fd5a9caf1a9b467ede8ec8d8a
Python
10,377
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 = "contour.colorbar" ...
5bdd0dea99fa2146d8ed0f901022c50172c635bc93f93e8cf09672e7d65323c2
Python
10,377
300
#!/bin/usr/env python ''' This package includes functions to help running adpred model on protein sequences. ''' __author__ = "Ariel Erijman" __copyright__ = "Copyright 2020, ADpred project" __credits__ = ["Ariel Erijman"] __license__ = "MPL 2.0" __version__ = "1.2.8" __maintainer__ = "Ariel Erijman" __email__ = "aer...
73efeab12670e2c670a2e6034e5b7dac826a638a3b0e3ee75792f5ab27f1aebd
Python
10,377
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.scene.annotation...
d3caff23bdccbb3acd38afb83a8e284f50ff0e1e286ea8d5e46de58569e4611d
Python
10,377
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 = "surface.colorbar" ...
07dccc9b3d390cc0a6b55d726fb166a6229fe0727b6add6000ed125c4a0802b8
Python
10,380
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.scene.zaxis.titl...
094abc9fd9c1c609dd1a06d0c1846c9aafa2bbb31966a894565133c044f473b4
Python
10,380
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 = "mesh3d.legendgrouptitle" ...
0bb73c366bc1b98d48fec5aec2feeaf4d04ac0d6e81f54bc2c9a5d77e779c5d1
Python
10,380
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.legendgrouptitle" ...
0eba861d40aebb1baa31082e36eea1b7d5659ce574d10dee425d4ede4d05a485
Python
10,380
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 = "sankey.legendgrouptitle" ...
4424163f531a26fac94b8ec4a1eadeab54919e1f3150de61805130b26deef869
Python
10,380
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 = "carpet.legendgrouptitle" ...
4b767afb19219ad1a8897dcaa616122185ae16c870a5ff07901d01821eaa52a4
Python
10,380
284
"""P4 tests for container persistence, rename, and capability honesty.""" from __future__ import annotations import hashlib import json from enum import Enum from pathlib import Path from typing import Any import pytest import torch from torch import nn import torchlens as tl from torchlens.ir.container_registry im...
4d97db8fc15e32d2b76faf8317299dd6d327dd5745d9318565ac27ee105e4b0e
Python
10,380
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.legendgrouptitle" ...
85dcda1a750215c9890ae6f04f832d35e2045df4d72b2f7042c81d660580c8b1
Python
10,380
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.legendgrouptitle" ...
95f43396653325afe505d279383d9617bdce1080560da66291d5e03154d197a4
Python
10,380
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.scene.xaxis.titl...
aac7f1a7c5919f024a405d5d38a465f543f3f7240742774459fa2f72ed542945
Python
10,380
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 = "volume.legendgrouptitle" ...
c2d698227c009ecdd7d2b6df8631cc9ad712f3460e85748fc5623dc854dd5412
Python
10,380
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.scene.yaxis.titl...
d533acaa7e8b0e009e804832ec814334e804e8c8d0e39964c9cb96376682c308
Python
10,380
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 = "violin.legendgrouptitle" ...
70aaf1b393df2236657ba39f7f6d31b66edff22819e8635f97328ab7f6c16034
Python
10,381
268
################################################################# # Importing samtools, bcftools, and htslib # # For each package PKG: # # rm -rf PKG # python import.py PKG path/to/download/PKG-X.Y import fnmatch import os from pathlib import Path import re import itertools import shutil import sys import hashlib EX...
255501982b2eaea75c65a9d0b44c220ba459cda880a7d2b10403332792c97d05
Python
10,382
281
#!/usr/bin/env python3 """ Diagnostic K — Tier 2.1: microstate dynamics. Adds 12 microstate features (coverage/duration/occurrence for 4 canonical states A/B/C/D) on top of the existing feature pool. Tests: 1. 7D + microstates (19 feat) vs 7D baseline 2. 7D + ap + topo + microstates (24 feat) 3. 7D + peaks + to...
b589f5aa3bf90a76a36b7100217f7d2ee2e2605adbc3ab8ceb4aa92af7d3c097
Python
10,382
178
""" demo of evaluating node embedding for different downstream task(s) Note that, the 'main.py' file contains all functions in 'eval.py'. You may test DynWalks in one go using 'main.py' itself by set task=all. For fairness, this 'eval.py' as well as all files in 'libne' will be used to evalate other dynamic network e...
9ccd42f7a618eea2a00234b83e918fdd7dcc50deae6e523864e0eded7742c7d2
Python
10,383
298
import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable from modular_splicing.motif_names import get_motif_names from modular_splicing.motif_perturbations.perturbations_on_standardized_sample import ( all_mpi_on_standardized_sample, ) from mod...
3b5e86d92ec33cfecc94031295d3bfa538ed065ce9be03cb1926755edac1c99f
Python
10,384
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.ternary.baxi...
474f8e620b5d87d58b3116d4c0c54d0b64973247d1f61da3cd549b78c0084501
Python
10,384
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.ternary.aaxi...
6bdc85da1f5f0b6ebf1dfb14efa9492293b12cc631f51c343afdf412e1b15320
Python
10,384
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.ternary.caxi...
0c30ddffb42136f8a20d5d52f9a43ac4a6d6cbfc7863a3e8c3da03cd19b87d79
Python
10,385
342
import warnings from contextlib import nullcontext as does_not_raise from pathlib import Path import h5py import numpy as np import pandas as pd import pytest from pynwb.testing.mock.base import mock_TimeSeries from pynwb.testing.mock.file import mock_NWBFile import pynapple as nap @pytest.mark.parametrize( "ti...
268365756c725643892e78c3990af7664ea8026d0643fd466a9bed8c6543d8a9
Python
10,385
224
# 均匀采样效果较差 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 ...
4c5cffa0893b3428e800ed05fa653408c21dcdab5d0b31a66ed9dba2c70e8ae2
Python
10,385
270
"""L6 stage 2: Selection-consuming do() under the mask-application contract. Pins the normative contract rows: edit-then-scatter on a fresh tensor (helpers stay mask-oblivious, the engine owns masking), the whole-site short-circuit, the closed ``selection_apply_invalid`` reason set (shape | dtype | device | broadcast ...
d723baa5d4858338c77dc5c01cafa82502813f7f59e10698389c6093d224a720
Python
10,385
223
# 均匀采样效果较差 import json import numpy as np import os, sys 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 as F from torc...
2422a900da3c4de34cd71ca8b6274a15c0b13ce7a8c8371a6f143f40cce61b66
Python
10,386
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.legendgrouptitle" ...
682af3578d6d1a6f3d05124e3e3c1f83b5a9aa0c8ae2c43cdb9d9edeaeb8633c
Python
10,386
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.legendgrouptitle" ...
93626d1ca43204e6c8681f0f0b6dd2967906133437892daa2572e285a0a81c3d
Python
10,386
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 = "surface.legendgrouptitle" ...
d0081e7f577c01fe11a22ea1170815212f1583c781106967fcf5b5d01911e3e0
Python
10,386
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 = "heatmap.legendgrouptitle" ...
d0dffd83904b174b615e20e6537199fb68c7d251e48a2a91923f6ad09e5f45d5
Python
10,386
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 = "contour.legendgrouptitle" ...
fb9451523386d40d8a9a41d5e18484f8840a5b53fc346e9414ac7b7fe7c82cb5
Python
10,386
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.legendgrouptitle" ...
9c5f6df4a67c4f93293f3943b99f5a962b8e9ab55c1a3a312afca01ce17f4eae
Python
10,388
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 = "bar.marker.colorbar.title"...
abdf058637d0505900a0818631843db75f94aeecfe2dcb8aff54eeae8f5607eb
Python
10,388
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.colorbar.title"...
ae1b2c47056f309d1320d478962416d2cb99176a97c11cc9f2354dad0f213a3c
Python
10,388
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.colorbar.title"...
dab68ddc59a31a5c89a4f269c44dabbaa523fb81cf07a2348530709793a382c0
Python
10,388
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.colorbar.title"...
e3a04063f4ab29b9b4de75006a5a651edc58697a7c91cccb6631534fee48ee09
Python
10,388
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.colorbar.title"...
aa8bebb68626eb9144551a074b6c0c6b9eaad3d196d5bb9e9bdeea55398fca86
Python
10,389
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.realax...
e8c1c84ffe2776decf30e2407a74478790cf69d413f8663bf22d9f2481223a32
Python
10,389
292
import torch from icecream import ic import random import numpy as np from kinematics import get_init_xyz import torch.nn as nn from util_module import ComputeAllAtomCoords from util import * from inpainting_util import MSAFeaturize_fixbb, TemplFeaturizeFixbb, lddt_unbin from kinematics import xyz_to_t2d def mask_inp...
05ca52080e6efdd71b074fe2a514266729e95d1810b0d94571955a5335805932
Python
10,390
266
#!/usr/bin/env python3 """ deploy_classifier.py — Apply the trained classifier to a new cohort. Loads ``trained_model/trained_model.json`` (produced by ``build_trained_model.py``) and scores subjects in a per-cohort feature JSON. Implements the deployment-mode pipeline described in the paper §2.4 and §4.5: 1. Read...
83c0ae66f57c5d93adeb5362606a97da5eb4a01786a1239352e722e4b074dda3
Python
10,390
218
import torch import torch.nn as nn import torch.nn.functional as F from model.dbb_transforms import * def conv_bn(in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, padding_mode='zeros'): conv_layer = nn.Conv2d(in_channels=in_channels, out_channels=out_channels, k...
9bde10674ef5800730c9e86abe46b47da7cef6766d2c498570112d7a0f28575a
Python
10,390
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.ternary.baxis.ti...
a52b6c13d09f90e803911ce4667def103b2d5199a47fc072662aa6162e2e279d
Python
10,390
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.ternary.caxis.ti...
a6f52d409cb0e6098f03b31cac42c9b123390bc5079fec458386492dafab7e84
Python
10,390
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.ternary.aaxis.ti...
4e46c9a993c209424dfa91611f3a27e7bd493123331c11670add19dab8cdadb2
Python
10,391
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.hoverlabel" ...
5d589764acbe2996024d228361d563c6a8f7ac89b3048de38b7042b3fc00fea7
Python
10,391
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.legendgrouptitle"...
6319d73f18127964989161c9731c0ed270259dfab034119d97f717b8c07ede02
Python
10,391
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.legendgrouptitle"...
b265771e5b251d0f24df520b02255b649295b89d95cda1dc364c9adac634b286
Python
10,391
341
import numpy as np from scipy.stats import gmean import pytest from pytest import approx from pyriemann.utils.geodesic import geodesic_riemann from pyriemann.utils.mean import ( mean_covariance, mean_ale, mean_alm, mean_euclid, mean_harmonic, mean_identity, mean_kullback_sym, mean_logde...
144dc7412f2ff942f761fdec11b32e62334edae0ee7542c0da5a8d15c6399e39
Python
10,392
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 = "streamtube.colorbar" ...
17e7ba8b1310a154e5ca9d917e04af6aef2d8ce6722e7f5612a940ac23aedde2
Python
10,392
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 = "densitymap.colorbar" ...
487897b7e8f388a8b6f5bbcfab698f8b01fbb78421addb155f9f8aa4c2a5db68
Python
10,392
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 = "choropleth.colorbar" ...
6a6bee87a84a16ac92f4db4e1ccbf343cf4971ba332e95273edb17e9da0ceb33
Python
10,392
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 = "isosurface.colorbar" ...
a519942cd05751427ab5ba75ae83270066d998717913afef498ec7d82316d5cc
Python
10,392
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 = "bar.marker.colorbar" ...
0c8ac54f91cf67e558b766977e74e4de3f77d25c017c54a69caa4b315fbac974
Python
10,393
302
#!/usr/bin/env python # -*- coding: UTF-8 -*- """4. Transfer Learning with Your Own Image Dataset ======================================================= Dataset size is a big factor in the performance of deep learning models. ``ImageNet`` has over one million labeled images, but we often don't have so much labeled d...
10193d72c46fbeed4f289ac75354bb5b5133e470b98a2b9e4bb0665c8477bddc
Python
10,393
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.colorbar.title...
c64b9c13463b6d3a7cbf463bbbdf21c7d03a0ab4130d26750f8dde00e6968274
Python
10,393
301
################################################################# # Code written by Edward Choi (mp2893@gatech.edu) # For bug report, please contact author using the email address ################################################################# import sys, random import numpy as np import cPickle as pickle from colle...
515003156281eaaa74ee141097c60c03fbe9aaf3c2729a33277e732553f1ead1
Python
10,394
268
import os import voxcell import json import numpy class ParcellationLevel(object): def __init__(self, root, config, hierarchy, region_volume, overwrite=False): self._root = root if not os.path.isdir(root): os.makedirs(root) self._config = config self.child = None ...
10a2bb75ea0addd4e8826d85a3458ca021592e7d325d2a0dfc4edc9fa8a1e060
Python
10,395
341
# --- 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 Textfont(_BaseTraceHierarchyType): _parent_path_str = "contour" _path_str...
264b97d34419335e6d18967d60b089a7531030511bf8bc5efe88668105e00148
Python
10,396
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.legendgrouptitle...
376e673a9b9eff859ab5b617b628f7847bafc5b1deac3f4ae2c113c7c3f525f5
Python
10,396
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 = "indicator.legendgrouptitle...
67bb3fdfa10c151503004607deb2fbddc2155f4406386a83ea0c7ecb0e154ce4
Python
10,396
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.legendgrouptitle...
6f2ff51710686320bc4f06af321561596bd2c07592f1bc917dbf7228723e34d7
Python
10,396
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.legendgrouptitle...
a07f6bdb86019a234ec4a1bc697996bd7ba08b02dbbdd05ec834b1f1bcd479f0
Python
10,396
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 = "waterfall.legendgrouptitle...
dd67c55cacbe69f6c90c01a73f78cfa1defa6d47cb451584242e21d29fc54fbd
Python
10,396
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.legendgrouptitle...
4071aea477e69b58334da00d958f553dd29dd3c226dea1432cacb14fc46d0ed9
Python
10,397
356
import re from contextlib import nullcontext as does_not_raise import numpy as np import pytest from scipy.signal import hilbert import pynapple as nap @pytest.mark.parametrize( "param_name, invalid_value, exception", [ ( "data", None, pytest.raises( ...
47b789f19d1f0a69a3008d2fc8fdf7f117972aec909a31b4d56695d4857d04c6
Python
10,397
247
#!/usr/bin/python3 # -*- coding: utf-8 -*- """Workflow for creating shuffled versions of a neuronal spiketrain dataset and training a graphical model on each. """ import time import sys import os import logging import crf_util from gridsearch_train_crfs import GridsearchTrial from workflow import Workflow class ...
ebac2a5ef2e4f36776b8a3e2357614ecc89c37197ac087e95c31f3992ccd32b8
Python
10,397
252
""" Normalization + Activation Layers Provides Norm+Act fns for standard PyTorch norm layers such as * BatchNorm * GroupNorm * LayerNorm This allows swapping with alternative layers that are natively both norm + act such as * EvoNorm (evo_norm.py) * FilterResponseNorm (filter_response_norm.py) * InplaceABN (inplace_a...
0d68b73099c4b83d6c4ba0b1707cea5eaf955fc8088e1fe652cfc92991014f77
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 = "splom.marker.colorbar.titl...