sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
96c210082847c11d288d666cef16b2f2bba445a2e5b9eb8b91cf376e9f81d991
Python
103
5
#!/usr/bin/env python import setuptools if __name__ == "__main__": setuptools.setup(name="gsMap")
e77c21002293facc428185dd8d7f4ac5f116a452bc4086625a4ff35d8f01f181
Python
103
5
__version__ = "0.8.2" def exitIf(doExit, Exception, msg): if doExit: raise Exception(msg)
6543fd977da6f25b7a6e62ef94720bd5345801592c4a9fc99dc49fad0723e529
Python
104
5
"""Shared utilities for linear Lactate-Pyruvate Gradient (LPG) analyses.""" __all__ = [ "notes", ]
1e104601cada03ef20acdc398501e9a7df80a1a09a1182fc46fffeea951bb0a1
Python
105
5
from GOF_ttest_AD import main if __name__ == "__main__": main(("Positive", "Intermediate"), False)
6588ace4607a8ff7542d89198b422e066e35168e393806b2f27cca602e0575f6
Python
105
4
import torch DTYPE = torch.float64 torch.set_default_dtype(DTYPE) print(f"Default tensor type: {DTYPE}")
a7da406e74a7e9d173422ee970ce33b562e6877e9ffac88c085c78d57d7e75ea
Python
106
6
from fitter import Fitter import scipy.stats as stats import numpy as np import pandas as pd from .figure
b91f9193c90e5fae5ec069388b34df0814e9aa6c97481f165e10a87c5dbbbb74
Python
106
3
# Copyright 2023 BioMap (Beijing) Intelligence Technology Limited from .select_model import select_model
118cd0a95885736a1f037a841f7d172fbeb9430963c80849a608f0a30def9b36
Python
107
1
# Written by [xxx] and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
5a49691a35f8f748047e09e1c10f5ed73b5a30efafc2ddcf18f93009b5e0139f
Python
107
4
from ._model import SCBASSET from ._module import ScBassetModule __all__ = ["SCBASSET", "ScBassetModule"]
7d6bb0c5de82bb57712fc9be134f640a72eb8af6ca3b08869d49f877b1fd22d5
Python
107
5
"""Spatial transcriptomics risk modeling MVP package.""" __all__ = ["__version__"] __version__ = "0.1.0"
96a9f93d860a13f84f171a8d8ce8bd903d6b550cfc2cae379d4a17e692a8b8bf
Python
107
4
from .fast_resnet3d import * from .resnet3d import * from .slow_fast import * from .slow_resnet3d import *
aa3285482b6e9610306ec8f0f1af5aed8bbe2b5357e79f561bc67d2ad7f435c0
Python
107
3
"""semantic_design package exports core helper functions for pipelines.""" from .semantic_design import *
d287fd4f061567e8a1a18bfd02ebd75efc2da507e43b571fe55ed063650e6742
Python
107
7
from .activation import NormReLU from .conv import Conv2dTF __all__ = [ "Conv2dTF", "NormReLU", ]
52f8960d1504a371f780a081af05dd8a7bf94e73aa54882e983bc5e5bce2cf43
Python
109
5
from scvi.external.mrvi._module import MRVAE as MRVAE from ._model import MRVI __all__ = ["MRVI", "MRVAE"]
76e216ecd284217a182744f04ba794e4003817600d6ad52ee7a501070fd56287
Python
109
6
from __future__ import annotations import pytest pytest.register_assert_rewrite("tests.mixology.helpers")
225c617a43bc064e3665e949f3cdd4878a7b43b36034222deaf18d4eff2b57df
Python
110
6
from __future__ import annotations from poetry.utils.env.python.manager import Python __all__ = ["Python"]
87e0ea346d8f01d48a3d783e652d32f8fdb143d1952c5bd01823cae8c4c33234
Python
110
6
from __future__ import annotations from importlib import metadata __version__ = metadata.version("poetry")
69a9cbd2b0701b31266c8347ff66d13b7b88eafd12ed263177666f895f224ce5
Python
111
3
"""Shared dynamic segmentation utilities (standalone Simulation + CID package).""" __all__: list[str] = []
87b3121e4a4a19e6334956a5cf7f19080744bcec651f79f457830bed33c3974f
Python
111
3
from .HPF_accel import HPF from .pca import PCA from .incremental_residuals_pca import IncrementalResidualsPCA
5dbae5240f5ba72f8d1ee7cbcc4e39e677609aae98537441337550fd7b317044
Python
112
6
from __future__ import annotations from poetry.publishing.publisher import Publisher __all__ = ["Publisher"]
8ff2ccc6c5f1375e318ee06612a9ec2d938d9b92a7f3c97e0cef35bd1906578e
Python
113
5
"""This module expose the main function for the tandem package.""" from .tandem import main __all__ = ["main"]
9f4ad85a6d0c88610ebee295dfe3dcd2de3c5933bf9a9d52db7587c400421486
Python
113
6
from fitter import Fitter import scipy.stats as stats import numpy as np import pandas as pd from .figure_Tools
473cd4ae514c0a0c6e5b5faeb5841601f95af56660c9f7ff1016be6f41fc5861
Python
114
8
# encoding: utf-8 """ @author: Jiayang Chen @contact: yjcmydkzgj@gmail.com """ from .defaults import _C as cfg
573d40968f2e4660c22b74f047dd582124747cc6eea9ab041ac88500904f33a5
Python
114
6
from setuptools import setup, find_packages setup( name = 'tangle-tracer', packages = find_packages(), )
b55ebd358fae4e5d12e8394ab0ed43fd8ecc71ba27bab5b7d533c35bbe79ef13
Python
114
6
from __future__ import annotations from poetry.installation.installer import Installer __all__ = ["Installer"]
3b95583daa45ca159dc8005d62b0ad66b54a6db75e5a5720635355c191a74d30
Python
115
5
from GOF_ttest_AD import main if __name__ == "__main__": main(("Positive", "Intermediate"), False, 210, 246)
a0d4225476b4d607d51695f3abcb8f500722f6de9c00909c75e78275a5b80515
Python
115
4
from ._model import CellAssign from ._module import CellAssignModule __all__ = ["CellAssign", "CellAssignModule"]
b7bb98f76cc754f199b962d532758f2469f36f0e72b7aa6bfc306cbb89e09a9a
Python
115
2
# Written by Kong Xiaolu and CBIG under MIT license: # https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
c72122142bd5f1085b4d266748c4a11ae54e4571cabc2cc08a0fb8f8560214da
Python
115
4
from ._model import Decipher from ._module import DecipherPyroModule __all__ = ["Decipher", "DecipherPyroModule"]
37db71ab706281c2b84fcb32e0008f6dc98f5e2445aeb10f8eaa7df8df3b2785
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2016-09-02" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
4123c67e34367b7a49ad973f99cf47ce5cf848c7cbfae01947e339e5c66140be
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2015-10-27" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
5e1fe7f90a869f021b2e8b4c1e71f4834716c98ffc6214ad83a75129aec41ae4
Python
116
1
"""NPZ / spatial preprocessing pipelines for WMB and CA1 (optional tifffile/skimage; WMB may need captum/shap)."""
89c2e7610e846247d17563f9ff50ba86b352c17065c3f60d0df941be42eec1a6
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2017-03-29" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
a095e02be7972f6f2abc6b244d5cc3865db969f6d78f96f2fed6b549bb4f4252
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2015-11-29" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
a8d5b4eddf505e4b6d766b616706e8e0b1065f4413ee4fdd1e221fe255e077bc
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2017-02-22" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
ad77f5116d33c1f054a7c3b3bac96dd8ed200b5ec0fda0aaad59fb0385047a2d
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2017-01-26" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
cfd76330f3320db0322e4c8e748a76fc1443875758c0585022617972b3e35300
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2016-09-03" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
d68bae0b4f40370e4ed9af1d900afa58bac7e0847c5e72c883bb96974153965b
Python
116
2
from lucent.modelzoo.inceptionv1.InceptionV1 import * from lucent.modelzoo.inceptionv1.InceptionV1_avgPool import *
f1a7e0f841a3e4215bc6c7f5af071c1d5d215f75e5701287fb5e9367da7dc289
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2016-06-26" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
f669e1f737c89d671027939c028d396b4e71f400473a81f84ad862b87acddd5d
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2016-06-27" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
ffad66b6e44830b86a7b75d915e46e7eb28357bd59f7833886954ebd0999726e
Python
116
4
__author__ = 'Robbert Harms' __date__ = "2017-02-14" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
a249e959b6dba55ef31bf72566c25bdb25f1f2a8b76d8473025085ddec8253b2
Python
117
9
from . import ( config_metadata, configs, constants, dirs, parser, prep, source_files, )
0a11a93da4349767f680e08f33c2c07e73ac0ca8f94a3151556f70d324312152
Python
119
7
__author__ = 'heroico' IMPUTE = "IMPUTE" PrediXcan = "PrediXcan" DatabaseFile = "DatabaseFile" FlatFile = "FlatFile"
0ff1f120c8113e6f9750e96935863b46e19a08918ed2c8081a2b3b0a037abb5c
Python
119
6
from .discriminative_reranking_model import DiscriminativeNMTReranker __all__ = [ "DiscriminativeNMTReranker", ]
6e0ba533aa5c24dfffec9c43fa6bd37eb16b053eac6f539613756f1aa036c709
Python
119
3
class EarlyStopping(Exception): """Raised when stopping training b/c no improvement in validation loss""" pass
1289f1193fd5b13aa2ba27b37a1d9a92d15c3c757e60b02efb999903b2495b69
Python
120
4
from . import unit_dataset from .unit_dataset import prep_unit_dataset __all__ = ["prep_unit_dataset", "unit_dataset"]
352bdcf6808a9df355cdd894eea03518d133232ffe204c8ae3aa859f393f580b
Python
120
6
from fitter import Fitter import scipy.stats as stats import numpy as np import pandas as pd from .figure_Tools import
d33a4335a3f387074fea292bfeb61df2a89549c15ac8e2ce8bee94123171c704
Python
120
4
from .Garfield import Garfield from .basemodelmixin import BaseModelMixin __all__ = ["Garfield", "BaseModelMixin"]
e7d125b0bb339be3d3d82d7612ac771bdbc677cfa124d442455c512c52f4af1e
Python
120
3
# Copyright 2023 BioMap (Beijing) Intelligence Technology Limited from pretrainmodels.select_model import select_model
063fa2428c0cecd9740bb054a014641eae55c6a996be6dc85b0a48ef34221b9b
Python
121
7
from importlib.metadata import version from .plotting import Plot __version__ = version('surfplot') __all__ = ['Plot']
18c5762c6bc34e1c847353547e942c804cb855760168b367c5122dca54feb77f
Python
121
3
from .Independencies import IndependenceAssertion, Independencies __all__ = ["Independencies", "IndependenceAssertion"]
8fb35f9bc13d1ff2160958f515a9c59ba6aa5f5ef0a9db80ce0ef2394dcaa54f
Python
121
5
from .math import * from .light import * from .material import * from .optical_element import * from .propagator import *
2a473f44790e5c5376c1c33f57eb446853c98fe753604ad966cd923e6137680f
Python
122
9
from __future__ import annotations def main() -> None: raise SystemExit(42) if __name__ == "__main__": main()
43ebacfb0f28a303898dd40c809dc85fce5e78207488142acb262cd37480c667
Python
122
1
from .train_loop import train, validate, inference, compute_saliency, compute_saliency_img, compute_high_attention_region
624897c446fb3501106a78045d09fb847a546bc3cdde80ff56f02671b35917b1
Python
122
8
from . import spect from .files import find_fname, from_dir __all__ = [ "find_fname", "from_dir", "spect", ]
bf186628c0c73ae331033f4ee2f8d6f4ad41929b2aa2b936c1c670e1bf583bfc
Python
122
6
#! /usr/bin/env python # Third-party modules - we depend on numpy for everything import numpy print numpy.get_include()
3655a07c7e37b6592f868d4cba5a0f16d4ab3205c5473a27a84c7b3b0d78a5da
Python
123
6
from evo2.models import evo2_model def test_model_load(): evo2_1b_base = evo2_model('evo2_1b_base') test_model_load()
512387ea8567af5919eaac660a59d5a2e8607eb5dd0c1feeefe4eb8067982f9c
Python
123
6
from setuptools import setup, find_packages setup( package_dir={"": "src"}, packages=find_packages(where="src"), )
6f6f1d7fa5ac1fea762a86d75df1e03aaf9acd28e92c1098b1095944ea38c92d
Python
124
3
from .PrismNet import PrismNet, PrismNet_large from .utils import param_num from .smoothgrad import GuidedBackpropSmoothGrad
ae6a535fe66dbcbf4b0baf469bca3fc2ea0a57b775f909ad9227665827db71a7
Python
124
5
""" Package for calculating PCIst.""" __author__ = "Renzo Comolatti" __email__ = "renzo.com@gmail.com" __license__ = "GPL"
324cd2a93eddcbae4530604d0a46963ebc20206d0c3156ff5a55cf9218225fa9
Python
125
5
def recursive_sorted(li): li = list(li) for i in range(len(li)): li[i] = sorted(li[i]) return sorted(li)
b1f3d1c8362f2250a0788e58eebc769bb57b7cc562845e14df47b7724d26deec
Python
126
2
from .spectralevents import (tfr, tfr_normalize, find_events, plot_events, plot_avg_spectrogram)
022249897df5887e9d8fe22ad71593505a6678e6e0f74b7712c64a3b75e66334
Python
127
3
from .classification import * # noqa: F401, F403 from .distance import * # noqa: F401, F403 from . import boundary_detection
efef8eb6fe56ccb6cb6ca306399bb6d9dd34c36eb352e1b1dc6556c5773c2ac2
Python
127
9
""" This module contains code related to the graphical user interface. """ from .main import main def run_gui(): main()
47e98ca029b70a5ee1f47ec8542a593d1e0c13c4adae1a90839ed743badb164f
Python
128
6
from .discriminative_reranking_task import DiscriminativeRerankingNMTTask __all__ = [ "DiscriminativeRerankingNMTTask", ]
853ac3038e0b28a5834d41653bc5a167f0579cc96907e175b86736616df8d017
Python
128
9
from __future__ import annotations def main() -> int: return 42 if __name__ == "__main__": raise SystemExit(main())
b382bf673e455a1fcd8bc43f8433578a059fd0265d956cf9aaeb834268ded93c
Python
128
3
from . import functional # noqa: F401, F403 from .loss import * # noqa: F401, F403 from .modules import * # noqa: F401, F403
83aed3a6e2dedfb02a56db49f729e77cbcdf1595143eabca068e0a333bf7cd5f
Python
129
2
# A potential monitor helper class/mixin to track the syncronization between # in-memory objects and on-disk files for DataBank.
e8c0da6c9c4cbd26a1858f7ebcaeacef2e0def2e50418e8d81ded8825b27c84e
Python
130
7
"""Run the GOATOOLS CLI with `python -m goatools`.""" from goatools.cli.main import main if __name__ == "__main__": main()
0ffd9cb4a79c6334e0fa27bc8d8bf4bf97fe76b1f91a1ffdae92542a43951944
Python
131
3
from .balanced_knn import BalancedKNN from .graph_skeletonizer import GraphSkeletonizer from .poisson_pooling import PoissonPooling
9e4bdad709043ab486ada1ffed9152b36184088a87267d2ad2cc49da6f0c2731
Python
131
6
import pandas as pd import numpy as np import logging from mentor import _metrics as metrics LOGGER = logging.getLogger(__name__)
2b4ad58cc24faa78d8a443a76d121963001d47e16f7c9f329236c8ce7b4ab156
Python
133
4
from ._model import JointEmbeddingSCVI from ._module import JointEmbeddingVAE __all__ = ["JointEmbeddingSCVI", "JointEmbeddingVAE"]
83d8ebe0212155bd37cb489ed4eac8f4c9bde460a8e292958c9a6a6500a35a51
Python
133
6
from .discriminative_reranking_criterion import KLDivergenceRerankingCriterion __all__ = [ "KLDivergenceRerankingCriterion", ]
e901169f98dc55772d2e6113f092799a1123dcb84030bbe42ce9b2152ae5343a
Python
133
5
from st_risk.paths import project_root def test_project_root_contains_readme(): assert (project_root() / "README.md").exists()
ee7e5f7b93a9e6d0f8b953d283cbda69057373968f5df4da2341b275b4ced5a3
Python
135
4
from .normalizer import Normalizer from .utils import div0 from .doublet_finder import doublet_finder from .genotyping import genotype
8734edac4b07bd18d2f672595b8de559e32ea71db5a8aa1cb63ab10b04468016
Python
136
5
"""The GPN family of genomic language models.""" from ._registration import register_auto_classes __all__ = ["register_auto_classes"]
23cc593010d11bb370926f11f0a958ae987be01a832eb7c667242edacf2dac90
Python
137
4
from .hf import load_dataset from .toy import toy_dataset from ._wandb import _load_wandb_artifact from .local import load_local_dataset
31bcebdc2abe80fc660ae3e6c55bbb7f6165bd3aad33a1e867c8eb43814ae562
Python
137
8
from .metadata import Metadata from .parametric_umap import Datapipe __all__ = [ "InferDatapipe", "Metadata", "Datapipe", ]
bc49e2c5a26685f0798ba0e663a8c008ce7599c4852014fb519c0e388c9480ad
Python
137
7
from ._base import BaseExampleModel, list_models, load_model __all__ = [ "BaseExampleModel", "load_model", "list_models", ]
be67375f70a51b4ba68dff43a5079a059fb13aecd8387b8803a898b9bebc77c0
Python
139
4
""" This module contains various utility functions. \ This module is used mainly by other modules, and is meant for internal use only. """
3a71fa74e9c004911c8617dd7c9afe55a3d266ebdc2d014cea0594af27ed477a
Python
140
5
__author__ = 'Robbert Harms' __date__ = '2019-11-18' __maintainer__ = 'Robbert Harms' __email__ = 'robbert@xkls.nl' __licence__ = 'LGPL v3'
529ccf28fb1537a43e28fb60f067e2c86acee06a8dcefe2aa3ba32ed96f56709
Python
140
4
from ._rotate import rotate_decipher_components from ._trajectory import Trajectory __all__ = ["rotate_decipher_components", "Trajectory"]
76d70060ee1382eb780f84e5139f197e2991b5f35229bc4e7c6f0cc8b5425b94
Python
140
5
__author__ = 'Robbert Harms' __date__ = '2018-08-14' __maintainer__ = 'Robbert Harms' __email__ = 'robbert@xkls.nl' __licence__ = 'LGPL v3'
77552ba2a2b32b202be85d79119381bb888ab8abddb8439f4e746c09bbd673d3
Python
140
5
__author__ = 'Robbert Harms' __date__ = "2014-11-27" __license__ = "LGPL v3" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
c1551371db18609610b39dd896d891ff441fb50e950dab42209034b1013ac9cb
Python
140
5
import pytest pytestmark = pytest.mark.skip( reason="Telemetry startup coverage will be restored once the full Qt port is complete." )
fe48e960cb82f0c709d0c99ded9beef022cb730642db0d6d6315bd2e9ea5c977
Python
140
5
__author__ = 'Robbert Harms' __date__ = "2014-05-21" __license__ = "LGPL v3" __maintainer__ = "Robbert Harms" __email__ = "robbert@xkls.nl"
1394579b0e95d944391d05545872a581ab23f0f6a8c6ce1476ea987d8c56e873
Python
141
6
import sys import os module_path = os.path.abspath(os.path.join(os.pardir)) if module_path not in sys.path: sys.path.append(module_path)
4a74709eccd67ebf1c44254c318f98e29b6c9fcbbbca07eebf542c2bcd6a521a
Python
142
2
from pyecharts import charts, commons, components, datasets, options, render, scaffold from pyecharts._version import __author__, __version__
a1f7bc9bfba17bc89a0ff35e01fcaf33cd1364fa03e50dc83864e2842f53960a
Python
143
9
# -*- coding: UTF-8 -*- """ @Project: iDCF @File : __init__.py.py @IDE : PyCharm @Author : staryu @Date : 2025/7/9 11:35 @Doc : """
9101323f3d2a90053a876c27d8c59ce1c5b8aa2639f35a44069af0ef4028a093
Python
144
7
from importlib.metadata import version from .global_vars import config, logger __all__ = ["config", "logger"] __version__ = version("pgmpy")
b646a3476eeb40fd354551123602f7f2c9ca26417c6c1fdd09b1f05ceb6a190c
Python
144
4
from .celltype_specific_genes import * from .highly_variable_genes import * from .spapros_genes import * from .spatially_variable_genes import *
1f399c0b243a25130e86e3b1c18af90b0bf034898016d7d5a2b8c48e8a6963ca
Python
145
6
from fitter import Fitter import scipy.stats as stats import numpy as np import pandas as pd from .figure_Tools import Subtypes, Subtype_colours
100d8a998d7795bb4cc8ca59817a269ff2fd628ac49db7f7f0a33c9fb60d0084
Python
146
6
from fitter import Fitter import scipy.stats as stats import numpy as np import pandas as pd from .figure_Tools import Subtypes, Subtype_colours
17f64b8c4002166484aa0928bb1e723c76c3f6e9904c3016c2f2e90456e8d233
Python
146
9
from __future__ import annotations import sys if __name__ == "__main__": from poetry.console.application import main sys.exit(main())
c3dd65a275add7884d8252cd09b4a12d4a4ec4bd1462db6ecd520231374b6492
Python
147
4
from .auto_annotator import AutoAnnotator from .auto_auto_annotator import AutoAutoAnnotator from .cell_cycle_annotator import CellCycleAnnotator
ecdd6f32328dcf0e05ee71cfc421bdfdc5ddc8dbcc798af0b1a5dc111ef08ca3
Python
148
4
from . import pipeline, bids, config, datasets, flagging, utils from .pipeline import LosslessPipeline from .config import Config, RejectionPolicy
423ea922c2b0cf17504ab3f3a5c494da394ed8c7cc18ba74db72c2820f55d615
Python
149
8
# -*- coding: utf-8 -*- """Setup module for :mod:`compositionality-study`.""" import setuptools if __name__ == "__main__": setuptools.setup()
6cdc90c92ccae1a4f451ded1d26f01dc23bec142648d1fc44d1b22a56d61a52d
Python
149
7
# -*- coding: utf-8 -*- """ Package for calculating PCIst.""" __author__ = "Renzo Comolatti" __email__ = "renzo.com@gmail.com" __license__ = "GPL"
cf60594ea5662e1c679307f11b3fb99e5243cf20a247e6f3cc686cad000c9fee
Python
151
4
try: from torch.hub import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import load_url as load_state_dict_from_url
5d476e38a983d71d3f57629a36eca4900ab2d0cb919789a1181839ff5fd4a432
Python
156
9
class test_vary: eventime = None eventdelay = 175 backwardrotdelay = 400 lastdirection = 0 #3 = counterclock, 1 = clock thecount = 0