sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 21.8k | content stringlengths 1 200k |
|---|---|---|---|---|
125332754890c69d36b8f4805e19deba6bfd91335185d7ef8adfdaff31940764 | Python | 113 | 3 | from .serialem import import_tilt_series_from_serial_em
from .stub_alternative import stub
from ._cli import cli
|
d754adedcab3956f1409cc8ff32f1ad4aae38ffb49992238edf0a317323c1d94 | Python | 114 | 4 | #!/usr/bin/env python
from setuptools import setup
setup(use_scm_version={"write_to": "napari_imc/_version.py"})
|
88ed088838291e4d44bab754bc9204d8aa83cd539fbd2b14dcc148949b2420e1 | Python | 118 | 4 | from ._scimath_impl import (
__all__, __doc__, sqrt, log, log2, logn, log10, power, arccos, arcsin,
arctanh
)
|
fa921a05efef9a09ccfe893a4fffadfb05477ad5ed370df448e316556343a8b2 | Python | 118 | 6 | from pandas.tests.extension.date.array import (
DateArray,
DateDtype,
)
__all__ = ["DateArray", "DateDtype"]
|
a0a70963584490740e10fb9fa787cdbaf4cfa6f27faf33bf3edce66880b42ca0 | Python | 119 | 4 | from .generator import Generator
from .discriminator import Discriminator
__all__ = ['Generator', 'Discriminator'] |
e20a43e86f445df5f591c41526be616e029880289ead44308a12ee2d197c7952 | Python | 120 | 3 | # from ._batch_segmentation_multiprocessing import CellposeBatchSegmentation
# __all__ = ["CellposeBatchSegmentation"]
|
24e2e3a1c3e9347df3514c569ca7ed4fcbc650412f7953a5b12110741ddc8cd6 | Python | 121 | 5 | """Initialization module for the cali.runner package."""
from ._cali_runner import CaliRunner
__all__ = ["CaliRunner"]
|
6c5e960e38dbd4a29d2d5b2838b3cbcd3b9acdcec42f4802fd9455d965b8e426 | Python | 121 | 4 | import typer
CLI_NAME = 'relion_tomo_view'
cli = typer.Typer(name=CLI_NAME, add_completion=False, no_args_is_help=True)
|
95ac86d7e93fc3a8b3056b5d223e28f28666143ce2a534daa17404c2751dd8b7 | Python | 121 | 4 | import typer
CLI_NAME = 'relion_tomo_pick'
cli = typer.Typer(name=CLI_NAME, add_completion=False, no_args_is_help=True)
|
f8b8906baf881369019be6922f172fb94876473abb350e1e6cc2d282f2ecec9f | Python | 123 | 6 | """Module to hold code handling the GBK components"""
from .gbk import GBK
from .cds import CDS
__all__ = ["GBK", "CDS"]
|
6bd7feab547cf41c5b1d7e2498afc612f28b985704770c47e69683386a57968b | Python | 124 | 1 | from .abutting_grating_illusion import ag_distort_28, ag_distort_224, ag_distort_silhouette, save_image, get_silhouette_data |
d60fa67e81a424e57bdaf11dbf38adb98f2766f969bef5c5b8387bd3c2ebc0b9 | Python | 124 | 7 | import sys
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
self.cost = sys.maxsize |
bdf968f3231ca1cc765f545dc3dbedf0da62678645abdc59442dcf5ba1a9f82b | Python | 125 | 4 | """
Tests for reductions where we want to test for matching behavior across
Array, Index, Series, and DataFrame methods.
"""
|
f3b7c0c6621feb2b09698a72f92725b1d80dc07a7eda1a256fc7bc269f1d6241 | Python | 125 | 4 | from .gemnet_oc import GemNetOC, GemNetOCLightning
from .loss import L2Loss
__all__ = [GemNetOC, GemNetOCLightning, L2Loss]
|
be558354ecb5657477e270355c4f78080f058f140d29947922fb65e0c20b96e6 | Python | 126 | 1 | from .abutting_grating_distortion import ag_distort_28, ag_distort_224, ag_distort_silhouette, save_image, get_silhouette_data |
f13d6073c5bf2c729de2cee8312daa2bbede736179b9116b82face9694b75c29 | Python | 126 | 5 | def off_diagonal(x):
n, m = x.shape
assert n == m
return x.flatten()[:-1].view(n - 1, n + 1)[:, 1:].flatten()
|
da9452cef75ca6f9c07d76ba15d4746cf822e5d33613533a125bf5cff000aa9b | Python | 128 | 6 | """Activation map computation module."""
from ._core import compute_activation_map
__all__ = [
"compute_activation_map",
]
|
ce868bc3d4efac0151921f67f2e332afc92fba0dc8bd59544fb2dc2730774e4d | Python | 130 | 7 | from ._array_utils_impl import (
__all__,
__doc__,
byte_bounds,
normalize_axis_index,
normalize_axis_tuple,
)
|
ea2da3547d9f3eb895d5aa1c4d8fdd505bd62b5f2a6bece3a6721203e3a9177c | Python | 130 | 5 | # See:
# https://web.archive.org/web/20140822061353/http://cens.ioc.ee/projects/f2py2e
from numpy.f2py.f2py2e import main
main()
|
09c4488fc75c2cb3eb7dfb1b9dd0e974f8569fecea7a2866fd381e4cf9e16ce6 | Python | 131 | 8 | # from python
from enum import Enum
class SOURCE_TYPE(Enum):
QUERY = "query"
MIBIG = "mibig"
REFERENCE = "reference"
|
22a83fb4a03bef55ee30ed4fe2dfec0c79d228fce451bf43d03aae9c09b0fe4a | Python | 131 | 3 | """Subpackage containing all of pip's command line interface related code"""
# This file intentionally does not import submodules
|
72dc54e93d8de548df5a03c6f6fcd1d3fe95919161b6b6c36311e9647b1bcfa4 | Python | 131 | 7 | """
This module contains functions for preprocessing neural recordings
"""
from yass.preprocess.run import run
__all__ = ['run']
|
1b94264bfe079e1e6ff7ba51b3fe34dd3629cfe5197930b94b9c11cf8b307f2b | Python | 133 | 5 | from .particles import pick_particles
from .spheres import pick_spheres
from .filaments import pick_filaments
from ._cli import cli
|
c48663f79a828e016f18fb2a0fe3e074b9d9dfdf5cee3276289a30364b614e89 | Python | 133 | 8 | import os
import pytest
@pytest.fixture(autouse=True)
def set_cublas_var():
os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":4096:8"
|
2eb01a1b9a2bd2673374826505d53a00d1c8f6ca908dfa60b643bca6f867b14a | Python | 135 | 4 | """Autoregressive Modeling, Stats Helpers and (Re-)Sampling."""
from cedalion.math import ar_irls, ar_model, resample, stats_helpers
|
8d4522768c671dc7c84c71da0161b51b68b97dd058925bffb89723a36c7b5581 | Python | 135 | 6 | from ._dists import Distribution
from ._envs import Environment
__all__ = ["NAME", "Distribution", "Environment"]
NAME = "importlib"
|
34ce64fac825978bbb62e2a7f16f0b686a3157dae122c8f00f29a62fb6c6e5b4 | Python | 136 | 6 | """FOOOF - Fitting Oscillations & One-Over F"""
from .version import __version__
from .fit import FOOOF
from .group import FOOOFGroup
|
5f4febe31a3cad9edb8ef6bb6fa1dc9736f360ee9d543d3eddf46853f1b16bdf | Python | 136 | 8 | # __all__ = ['base', 'datasets', 'model_zoo', 'utils']
#
# from . import (
# base,
# datasets,
# model_zoo,
# utils
# )
|
bd082ca441f2a4952f6c05373f4239043056daf44ae0282670da98e595e4b27b | Python | 136 | 9 | import uuid
import pytest
@pytest.fixture
def setup_path():
"""Fixture for setup path"""
return f"tmp.__{uuid.uuid4()}__.h5"
|
e14079994b93c9cfce5385ab4491228b74a27d0bb457d1b7b9aa036ab636bd07 | Python | 136 | 11 | from enum import Enum
class Env(str, Enum):
STARCRAFT = "starcraft"
MPE = "mpe"
# RANDOM_SEED = 23
# ENV_NAME = "5_agents"
|
2402afaa2b889dffbd231408685429337e5baa417109915bc1bdaf665f71f6bc | Python | 138 | 3 | from .tilt_series import GuiTiltSeries
from .tilt_series_set import GuiTiltSeriesSet
from .lazy_tilt_series_data import LazyTiltSeriesData |
77d153528e31d9f14a76e3ff2ac3adece626402a80c87178f9ba27337402ba4e | Python | 139 | 5 | """Initialization code for the cali.analysis package."""
from ._extraction_runner import ExtractionRunner
__all__ = ["ExtractionRunner"]
|
9f42f1d3b19817a61b7486ba00908b264e339409b90aa69e1eccef931c6ea08e | Python | 139 | 5 | from . import apis
from . import abstraction
from . import wrapper
from .wrapper import batch_expectation_ps
from .apis import submit_task
|
e295fd2ee78e5c3d3c23ebc4d43b922fa34ae2f5420ad9a1cba0cac7aa5ae481 | Python | 139 | 4 | from .cryoCARE import cryoCARE_train as _cryoCARE_train
from .cryoCARE import cryoCARE_predict as _cryoCARE_predict
from ._cli import cli
|
0c16f242b63d874f668fea06d63594bdbe2d5eb3c4386c33e219eebc7cb2f700 | Python | 140 | 5 | """Initialization code for the cali.segmentation package."""
from ._detection_runner import DetectionRunner
__all__ = ["DetectionRunner"]
|
d485745db9fb0d020a64ad0f175a7682ba36734ebc2729e60754a2bc575c3b2c | Python | 140 | 5 | #replace the definition with one containing upper and lower bounds for each bounded input feature.
boundslist = []
#boundsdict[0] = (0,1)
|
daa578e2429bca0bc094369ca1bf06d9fa5be978b1b7fb16b46a6ee7cf36fb64 | Python | 142 | 2 | from .cnn import TransformerHead, MLP, ContrastiveLearningNetwork, Classifier, vit_backbone, Network, EMA
from .resnet import resnet_backbone
|
cb4a270a904a0a3ff921ac9bc397be83193ccc06bd775a7966ee7c44bccf4f59 | Python | 143 | 5 | from pandas.core.dtypes.dtypes import SparseDtype
from pandas.core.arrays.sparse import SparseArray
__all__ = ["SparseArray", "SparseDtype"]
|
0d0a730f3555c8a8a4c798837912092235040956407819c7311b381e33e8b9ea | Python | 144 | 8 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 10/17/2022 at 4:42 PM
Author: dzhi
"""
__all__ = ['dcbc',
'utilities']
|
272a71a32a4106895546ba48b86c7ae5e115fe3775f2427a75e1ed0d233ab319 | Python | 144 | 5 | # Copyright (C) 2013 Bernd Feige
# This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
"""
Sleep-related modules.
"""
|
41640e605ff4f807e3f0a25bbaea36b4d047493083e28f11740911e3f83043c9 | Python | 144 | 7 | """
.. include:: ../../README.md
"""
from . import register, utils
from .register import register_volumes, Recipe
from .utils import load_data
|
81736b4f82fe26e0c87b742aa7f4815859280a4a9192c6e8c6d567443a9ef950 | Python | 144 | 4 | from .asynchronous import asynchronous
from .baseline import baseline
from .isochronous import isochronous
from .synchronous import synchronous
|
ad402be30aaad667c7d367709ff9b925cc04cc5fa6f22c15d4bfc04c06ccddb9 | Python | 144 | 5 | import subprocess
if __name__ == "__main__":
for gpu_id in range(4):
subprocess.Popen(["python", "optuna_worker.py", str(gpu_id)])
|
d8220e0bd327e29b18c0d2e0f0cd063047075d8b4a1d8363c07d42f4ef70d93e | Python | 144 | 3 | from .dimenetplusplus import DimeNetPlusPlusLightning, DimeNetPlusPlusPotential
__all__ = [DimeNetPlusPlusLightning, DimeNetPlusPlusPotential]
|
1876d763073c9352a5b207fbe71d6769baff54e024e85cba6cd79d736fbb60a6 | Python | 145 | 7 | import imp
import os.path as osp
def load(name):
pathname = osp.join(osp.dirname(__file__), name)
return imp.load_source('', pathname)
|
88ced987e70502d0e7d538a22bcd0d11621347e652d2cf3a90a7f3ab5629f69d | Python | 145 | 4 | # global configuration
# root folder for the project
project_folder_path = 'E:\\work\\q_backup_06_03_2025\\projects\\isttc_backup_23_12_2025\\'
|
b27a0bc8de441de0d8dcb04904e271f61b48fbf10752f060f93f921aae21f66a | Python | 145 | 4 | from .abstract_language_model import AbstractLanguageModel
from .chatgpt import ChatGPT
from .azuregpt import AzureGPT
from .ollama import Ollama |
165a53ae0740325ff9a6e376cc38ef766a2cc3c693bda083f878b61ad20afa4d | Python | 146 | 7 | from pandas.tests.extension.list.array import (
ListArray,
ListDtype,
make_data,
)
__all__ = ["ListArray", "ListDtype", "make_data"]
|
26f8c29d531fcc8512a0728bfae9ab913f47e53f09dc096df3e4282973120782 | Python | 146 | 7 | from pandas.tests.extension.json.array import (
JSONArray,
JSONDtype,
make_data,
)
__all__ = ["JSONArray", "JSONDtype", "make_data"]
|
9092b253060d186b00846d00ff260b6dec72f9fe7e0a9aa0d5bbf87e7c45dcd9 | Python | 146 | 5 | from ._impl import odeint
from ._impl import odeint_adjoint
from ._impl import odeint_event
from ._impl import odeint_dense
__version__ = "0.2.5"
|
e5edef888d2609c3546df48287c3ddb344cc8f064c54ba63b08ae7aa50ab6a83 | Python | 147 | 9 | import imp
import os.path as osp
def load(name):
pathname = osp.join(osp.dirname(__file__), name)
return imp.load_source('', pathname)
|
1c854577c400173e954c121efa1c54666c50740b2da7741fd7d426abf7c2af5d | Python | 148 | 2 | # License: GNU Affero General Public License v3 or later
# A copy of GNU AGPL v3 should have been included in this software package in LICENSE.txt.
|
6d79305925ba1915fc5f0db6d6233269039055a5a6cae44fded1a1be35ed895f | Python | 149 | 6 | from pandas.tests.extension.array_with_attr.array import (
FloatAttrArray,
FloatAttrDtype,
)
__all__ = ["FloatAttrArray", "FloatAttrDtype"]
|
ca0a2bd5944374404a27e30f2e285a4c970fc0748da56a476c65a563ba61f92f | Python | 149 | 4 | from .masked_mae import MaskedMeanAbsoluteError
from .qhnet import QHNet, QHNetLightning
__all__ = [MaskedMeanAbsoluteError, QHNet, QHNetLightning]
|
d0340b47f2eb80475999541af38f6e5201f689662aa758210627e35ecdd990aa | Python | 149 | 7 | # Stealing this from jupyterlab
# currently main.py shouldn't really be doing much...
import sys
from aims_immune.aims import main
sys.exit(main()) |
117b2a0f67a48c4a42a04480039b289d931426dc3ca065b8957fcdcfc709981d | Python | 152 | 12 | # Copyright 2024 RADar-AZDelta
# SPDX-License-Identifier: gpl3+
from riab.cli import Cli
def cli():
Cli()
if __name__ == "__main__":
cli()
|
cdf454e693d8bfa3d0725e7bcc0f6ae5e56f5abcdff2ffbefa1de8cd056f1f1b | Python | 152 | 9 | from pydantic import BaseModel
class OpenAIKeyRequest(BaseModel):
api_key: str
class OpenAIKeyValidationResponse(BaseModel):
is_valid: bool
|
53a3827432c7cd74add5f6d295d1c53f4be2587878bb763508306fcc1518f3e3 | Python | 153 | 7 | from .. import ufunc
_UFunc_Nin1_Nout1 = ufunc
_UFunc_Nin2_Nout1 = ufunc
_UFunc_Nin1_Nout2 = ufunc
_UFunc_Nin2_Nout2 = ufunc
_GUFunc_Nin2_Nout1 = ufunc
|
00b2f9b2a57d8c5fad772f494cbfdd08199b31fa8973241861be97ef7fd8221d | Python | 154 | 3 | # Error Messages
METAFILE_NOTFOUND_ERR = "Metadata file {} could not be parsed! Exception: {}!"
LOAD_FAIL_MSG = "Failed to load image: {}\nException: {}"
|
b82e94546d14461fd09faac1e3afe92b78a320ef93db88bd1ef5552ce26a8716 | Python | 154 | 6 | __version__ = '1.0.0'
from MolMM.get_models import *
from MolMM.dataset_multi import *
from MolMM.modules_multi import *
from MolMM.models_multi import * |
cc3788384109290cf8ac375df72622b84cd36e93ed2fd96c4f970b8531f5cd3c | Python | 154 | 6 | """Some default parameter values for all simulations and inference and candy."""
max_sigma_c = 1
min_sigma_c = 0.1
max_p_scaling = 2
min_p_scaling = 0.1
|
179cf3550a307ddb49ba7bf07205f0d7e79b69709f95e6e0b1614d707c3acd9f | Python | 155 | 7 | from dataclasses import dataclass, field
from typing import Optional, Dict
@dataclass
class VideoFilesConfig:
target_directory: Optional[str] = None
|
20b0813d91940651486d767c17e54714caea8dad48d41280b8898b11194e7561 | Python | 157 | 6 | # -*- coding: utf-8 -*-
# @Author : PistonYang(pistonyang@gmail.com)
from .transforms import *
from .autoaugment import *
from .dynamic_transform import *
|
cd9a1b939d17d7953118da2f75417b17ae16560eef6eab27976ded1579f70e73 | Python | 157 | 11 | from app.CaFire import App
def main():
"""
Application entry point
"""
app = App()
app.mainloop()
if __name__ == "__main__":
main() |
da2129b526263f61670086e399d7236a51ef4412c15bedda1de55ceb84976c4f | Python | 160 | 14 | from utils import Option
def getHyper_svm():
hyperDict = {
"C" : 1.0
}
return Option(hyperDict)
|
1132d99034c6a59b29bf08d56006659c0d601f83c9e1b498e4f916cb14e3bac5 | Python | 161 | 6 | import numpy.exceptions as ex
ex.AxisError("test")
ex.AxisError(1, ndim=2)
ex.AxisError(1, ndim=2, msg_prefix="error")
ex.AxisError(1, ndim=2, msg_prefix=None)
|
662841fdea813fd5e0cb07b01a5741c82541b81aff77b6709f67b9955e7edf56 | Python | 161 | 5 | """Contains newick tree generation functionality"""
from .newick_tree import generate_newick_tree, save_trees
__all__ = ["generate_newick_tree", "save_trees"]
|
5747c3d6d848445302e1b3ceaab3fd1b1454c815b574f67908b171ebd7ead817 | Python | 162 | 5 | from .imaxt import ImaxtFileReader
from .mcd import McdFileReader
from .txt import TxtFileReader
__all__ = ["ImaxtFileReader", "McdFileReader", "TxtFileReader"]
|
b3de27feb3861ec40a74fd8a6c201011f65e4297ac626847fddf9134d4e4bd87 | Python | 162 | 7 | import pytest
@pytest.fixture(params=[True, False])
def sort(request):
"""Boolean sort keyword for concat and DataFrame.append."""
return request.param
|
6354f420372a5ad257e0b90997917ccdc5f557ada48eb48ce5a9d4c16378ab51 | Python | 163 | 3 | """Contains classes and methods to create and manipulate networks as used in BiG-SCAPE,
as well as methods to execute affinity propagation on arbitrary graphs
"""
|
055d37d4ec430c09b2e7c9de520e72caa2e42daa88c3b89b2bd02cde388c89bd | Python | 166 | 4 | # file generated by setuptools_scm
# don't change, don't track in version control
__version__ = version = '2.9.0.post0'
__version_tuple__ = version_tuple = (2, 9, 0)
|
acd4fdc59ad56536085d90b43589f8d42250c1835b47e29e70f3b14e042f07c6 | Python | 166 | 10 | from typing import NamedTuple
class Region(NamedTuple):
"""Defines a rectangular region of the screen."""
x: int
y: int
width: int
height: int
|
051e6ca5dcbcaa30fd10641c8600474a7fe2b0c88e0edd4a20c962c2b08f734e | Python | 168 | 4 | from smac.examples.rllib.env import RLlibStarCraft2Env
from smac.examples.rllib.model import MaskedActionsModel
__all__ = ["RLlibStarCraft2Env", "MaskedActionsModel"]
|
04816017964a9de72b1821d7ef78789b297b53f5b52fa2478de491e178cf7309 | Python | 169 | 6 | """Initialization for cali_logger."""
from ._logger import LOGGER as cali_logger
from ._logger import set_console_level
__all__ = ["cali_logger", "set_console_level"]
|
15b5b5d3037aefbaad8e2087652c60de84c6b26e8122a111420b103c73c2d914 | Python | 169 | 13 | # -*- coding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
def main():
pass
if __name__ == "__main__":
main()
|
d05f320ed5f1dd4ba7866f3be0aac070fefab2bb0cf7ccbb5b21d0c02ba565ba | Python | 169 | 4 | __all__ = ("dumps", "dump")
__version__ = "1.2.0" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
from pip._vendor.tomli_w._writer import dump, dumps
|
1e10b8352c2bcf9603211736e82334e7fdec16782a5bec75f24e7df72e89fc2b | Python | 170 | 9 | class empty:
def __init__(self):
pass
#self.recordings = lambda:None
#self.resources = lambda:None
class attribs:
pass
|
b2525940518f238235dea73e0917eb7841a12149384dd164f8fbfbe7259a9cd3 | Python | 171 | 8 | from typing import Any
import numpy as np
import numpy.ma
m : np.ma.MaskedArray[Any, np.dtype[np.float64]] = np.ma.masked_array([1.5, 2, 3], mask=[True, False, True])
|
f64b0c613bad7c3105dd4d38c6b8fd8f46d859be60c13c0c74c3e2f9264a722d | Python | 171 | 7 | """
Useful utilities for quantum chemistry related task
"""
from .conversions import get_ps # pylint:disable=unused-import
# backward compatibility for the entry point
|
0338083293188c38557aba0baa3527b8a2e01eee00cf68c3b2ea74c211be0d34 | Python | 172 | 4 | from yass.neuralnetwork.model_detector import Detect, Detect_Single
from yass.neuralnetwork.model_denoiser import Denoise
__all__ = ['Detect', 'Detect_Single', 'Denoise']
|
0cbb728f9c1e20f653dfa2115be1316cff113468d2ce6f8b2e1fa34a3dfb99c8 | Python | 173 | 8 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import flags
FLAGS = flags.FLAGS
FLAGS(["main.py"])
|
d019dbb8b3010bb310969acd674421352b1c7d8c0f8448573a15a8ca24400965 | Python | 174 | 16 | import numpy as np
a = np.empty((2, 2)).flat
a.base
a.copy()
a.coords
a.index
iter(a)
next(a)
a[0]
a[[0, 1, 2]]
a[...]
a[:]
a.__array__()
a.__array__(np.dtype(np.float64))
|
29b063d7e8fc283cd0da057a8088846142f9d328d625beb812ab84bcfdfd3d75 | Python | 175 | 4 | from dp5.nmr_processing.nmr_ai import NMRData
from dp5.nmr_processing.proton.process import proton_processing
from dp5.nmr_processing.carbon.process import carbon_processing
|
d9969383a2dd445b78ac9d054dc7194527c830558a0241283caa66a9242028dc | Python | 175 | 3 | from .logger import initialize_logger, logger_factory
from .lr_scheduler import LRScheduler, lr_scheduler_factory
from .optimizer import optimizer_factory, optimizers_factory
|
6f5e9f13ca7591e42b08014d4c269ebb85bae589200650ba8de8059cc34fc0ec | Python | 176 | 3 | from molmap.model import cbks, loss, net, importance
from .model import RegressionEstimator, MultiClassEstimator, MultiLabelEstimator
from .model import save_model, load_model
|
6c46d29cd9f061958300f9d8d265c00ae6b5f3fdcac624fb079af1f94ba1175e | Python | 179 | 10 | __all__ = ['convnet', 'resnet', 'base_module', 'glsnn', 'qsnn', 'resnet19_snn']
from . import (
convnet,
resnet,
base_module,
glsnn,
qsnn,
resnet19_snn
)
|
aaa5087aafcbecc1e164e5d0e530f6ba5f3d3e623e87a87166616870b3465e57 | Python | 180 | 10 | import numpy as np
import stf
import stfio
def tdms_open(fn):
record = stfio.read_tdms(fn)
if record is None:
return None
return record['data'], record['dt']
|
64281d48758bd2c56eaa74a6fc6ace8d5b6bfd767c2a9963cedf143159abc224 | Python | 181 | 5 | """Gaussian-copula mutual information estimators."""
from ._core import * # noqa: F401,F403
from ._core import __all__ as __all__
from ._version import __version__ as __version__
|
d6116efad30c8424f2fe1a28fba21c0d7937ccb5096ac0b3c05a647eab5425bb | Python | 181 | 3 | from dp5.conformer_search import *
from dp5.conformer_search.conf_prune import StrictRMSDPrune as conf_prune
from dp5.conformer_search.base_cs_method import BaseConfSearch, ConfData |
25e5ca39fdc9229b03d2eb9d97ec491f4808768fa252d907cb014835c9d50cc6 | Python | 182 | 4 | from asap.dataloader.base import BaseDataset
from asap.dataloader.wg import WGDataset
from asap.dataloader.bounded import BoundedDataset
from asap.dataloader.peak import PeakDataset
|
c883a2f2effc5c8966d8ced740ea925dbbf2c2f8cb3568e475a0930010061e92 | Python | 182 | 3 | """CINEMA-OT - Causal Independent Effect Module Attribution + Optimal Transport, for single-cell level treatment effect identification"""
__version__ = "0.0.3"
from . import cinemaot |
d138f56b6f2cff028cfc0a6193f97909ed5041335596da3d40892f06e3145f2b | Python | 182 | 9 | __version__ = "0.7.1"
from .model import EfficientNet, VALID_MODELS
from .utils import (
GlobalParams,
BlockArgs,
BlockDecoder,
efficientnet,
get_model_params,
)
|
faa79e293949e5e353e523a983ad78adc22d81eccb4ae1b4081242fd12ad821a | Python | 182 | 9 | """Driver extensions for VMC"""
# Don't import modules automatically to avoid execution
# Users should import explicitly if needed
__all__ = [
'vmc_ex',
'expect_grad_ex',
] |
84ec4daa5fe250ccb8853cb4fb6029e3e18dc9203176db467ba53ed523d7569f | Python | 184 | 4 | from . import detector, record, tasks, trigger, utils, viz
from ._version import __version__
from .utils.config import sys_info
from .utils.logs import add_file_handler, set_log_level
|
887340a395ad73c9e388dea84f959952d008f5829d638769fc80d1f4e46c033b | Python | 185 | 2 | from cedalion.sigdecomp.multimodal.cca import ElasticNetCCA, StructuredSparseCCA
from cedalion.sigdecomp.multimodal.tcca import ElasticNetTCCA, StructuredSparseTCCA, temporal_embedding
|
6000e972752b91dac091f1dbb430110443d0b339845e85b3099640752d12fabf | Python | 186 | 8 | from molmap.feature.sequence.nas.global_feature.nacutil import make_kmer_list
if __name__ == "__main__":
for e in make_kmer_list("AAA", "ACGT"):
print(e)
pass
|
0b7b44e7670d37f706a4de722755cee856f9fc7b2e35c4d41269f8fc43ab78db | Python | 189 | 9 | class StringConverter(dict):
def __contains__(self, item):
return True
def __getitem__(self, item):
return str
def get(self, default=None):
return str
|
66807726fa40af32fc34db4d38e9136322c8bbff9a3f534bee6159c8c6f23c94 | Python | 190 | 8 | # Copyright (C) 2008-2010,2013 Bernd Feige
# This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
"""
ECG-related modules.
"""
__all__=['ECG']
from .ECG import ECG
|
c537951e71d3be86fb63413a937b057b4f0d939198d0c3b8890e03b932905d54 | Python | 190 | 8 | # Copyright (C) 2008-2010,2013 Bernd Feige
# This file is part of avg_q and released under the GPL v3 (see avg_q/COPYING).
"""
EOG-related modules.
"""
__all__=['EOG']
from .EOG import EOG
|
12e5774b0542b5f6498eeee268a7684d58ac2488730f55327e239190984d44de | Python | 191 | 7 | # params.py generated by YASS on {timestamp}
dat_path = {dat_path}
n_channels_dat = {n_channels_dat}
dtype = {dtype}
offset = {offset}
sample_rate = {sample_rate}
hp_filtered = {hp_filtered}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.