sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
8dbc275cd6c75c71eac1705e9e4df82852bf648354c94c45b388716fec8326bc
Python
113
8
from celery import Celery app = Celery() @app.task def plugh(): """This task is in a different module!"""
e346af369ae8964a9bed9d5edd3d3af869e0e0f6d672aae3c147599325b35938
Python
113
3
"""GluonCV-Torch pose estimation.""" from __future__ import absolute_import from .directpose_resnet_fpn import *
42439c8b8b11a2bf551e8ec7751ef41e3a2719d1eec7d9c79143c5e7bad29cc2
Python
114
7
from F01 import F01 class F04(F01): c1_norm = (0.002, 0.01) norm_thresh_a = 0.2 norm_thresh_b = 0.5
cbcaf65ab305cda4b2a0dec4f51a8d3b7f114c480539ad8113d9807b957301b9
Python
114
1
from pl_bolts.transforms.self_supervised.ssl_transforms import Patchify, RandomTranslateWithReflect # noqa: F401
280021ce453cb79279596438013fe95b0fec8df7c1ed4ad9c593958d19b5121f
Python
116
3
"""Code generated from protocol buffers specifications. This is used for communication with the user interface."""
5af7e64e15bb9422e2d7b2a0d76f3ea4c2ec93e7ff14b35b88a091ca72546aed
Python
116
4
from celery import Celery app = Celery(set_as_current=False) app.config_from_object("t.integration.worker_config")
6289ad8dbda09d538e73b8fa35f7c1d14aedc42a60dd3bac15c9c1c31f44baba
Python
116
5
"""CenterNet""" # pylint: disable=wildcard-import from __future__ import absolute_import from .center_net import *
6b54539d6eb7ef23a9acf57d726ac641d90bccf16804cd944c911ee02e6c6aa8
Python
116
3
IMAGENET_DEFAULT_MEAN = (0.485, 0.456, 0.406) IMAGENET_DEFAULT_STD = (0.229, 0.224, 0.225) DEFAULT_CROP_PCT = 0.875
c5e437701879591cc676aeb6b3de898990369e623004a096b0d8856fde59ebe0
Python
116
5
import sys sys.path.append('/workspace/Walk_Video_PyTorch/project/utils') from metrics import * from utils import *
36a98c591af802bf97023451ac75eaaf7d250595971fbece255405f13988308b
Python
117
3
""" Contains scripts and supporting modules for creating the spliceai-GTEx and spliceai-Canonical/GTEx datasets. """
67fd44923d53c0b0fdf65bd855441b20dd38ee01fe2806d4a1b1dcfeaa62d5fc
Python
117
6
"""Legacy FRC namespace. No-reference single-image FRC helpers were removed from the tracked API. """ __all__ = []
e2935b4c471b42000dbe57c7ec09932f421a46a0dbfafd3cf4cefd6f4380fd8d
Python
117
2
"""Torch image classification estimator""" from .torch_image_classification import TorchImageClassificationEstimator
60e7b1ad164f41bb7df85055308190e65a4282cba8c40df39bb368ab9d93d47d
Python
118
4
from .pdbbind import PDBbind from .ligand_expo import LigandExpo from .chembl import ChEMBL from .enzyme import ENZYME
fc2f526bfb6bb86774fbb0ef060e059c9a571c9fd206bb8349f0f0ea42a40431
Python
118
4
from celery import Celery app = Celery(set_as_current=False) app.config_from_object("t.unit.bin.proj.daemon_config")
3606716d073217372f7c3e81b306f05b7012e588b63870db678c99c27023c97e
Python
119
4
from .xpu import xp from . import cluster, traces, regression, stats, visualize, util, spatial __version__ = '0.0.0.1'
dab2e8d086cf0d089fbf0153e383d67a9806b01ac4e9f65260957a52f6999b50
Python
119
3
"""Transform and augmentation for instance level manipulations""" from .augmentation import * from .transform import *
e1d611db743ccb1dd7ca18bd15a861e165f3f2e0db5ee71ce38e123855a09687
Python
119
8
""" Principal and independent components """ from . import pca from . import ica from . import jpca from . import dmd
71975e061da41dae972cd3256bd730864c8ac23427b5cfac21479e74a77b218b
Python
120
5
""" Integration tests for ethoscope_node. Integration tests test component interactions and external dependencies. """
b49978e0458c1eea6a3198aa94d17fb6739c66025b9e1f4955ab0f874a74a833
Python
120
4
# pylint: disable=wildcard-import """SiamRPN tracking""" from __future__ import absolute_import from .siam_net import *
7cfb2754e704f38de9694759b1dba6dfb8b8fcf5bea290954ade46eb5ee9bbcf
Python
121
3
from torch.optim.lr_scheduler import ReduceLROnPlateau SCHEDULER_REGISTRY = {"reduce_lr_on_plateau": ReduceLROnPlateau}
d5523847ee35527344a9f6efeccd4437dc7bc83b424cb7ff2f3b7dd6ff72df3f
Python
121
5
""" GNN-SubNet: Disease Subnetwork Detection with Explainable Graph Neural Networks. """ from GNNSubNet import GNNSubNet
48192ccb9865bd5e22c30ebfb5672a315e40b0744873363da6585b62f5ba54d1
Python
122
6
""" ST Spot Detector server WSGI compliant web server for the ST Spot Detector. """ from .app import APP as application
4be897dd4ba23d1a3c0199cddef271165579cc2c14c4eac671da3ff01ca52e1d
Python
122
10
import sys paths = [ '/workspace/' ] for path in paths: if path not in sys.path: sys.path.append(path)
8821366ce3f7d8fcfd6e9fc985744cbcc8e00fd60794810b4cfeedc789d1aac4
Python
122
7
""" Portal apps for configuring and running simulations. """ from __future__ import annotations __all__: list[str] = []
01aa13b15627e0c1e63e0fb0bf8c1b12fe1ced497fb0d4128e58f69d661ae594
Python
123
3
from . import architectures, datafusion, interpret, modules, utils, functional, logs, train from tlib import tutils, tgeo
8daa0550d6f01a2f13fc064797e95e734abef76197dc2f2f81ebc64e2f9dffcd
Python
123
3
"""tracking dataset,include youtube-bb,VID,DET,COCO dataset""" from __future__ import absolute_import from .track import *
d8a0921aeb90349a0659799a22ccf00ccd31707b226426ff4118eeb65ae0ada2
Python
123
3
import pointnet2_ops.pointnet2_modules import pointnet2_ops.pointnet2_utils from pointnet2_ops._version import __version__
4a15952bb9696280b1266e5c14def05381b2bf93ccbc2bec52e58b77793292f4
Python
124
1
from dcCustom.models.tensorgraph.tensor_graph import TensorGraph, TFWrapper #from dcCustom.models.tensorgraph import models
7039e30b7a9a1c91c5360007bea7bfa9e5fc5bfc3d83ab67e03966b863d8289a
Python
125
6
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.test import TestCase # Create your tests here.
83d5ca747766c8afc330a8c7feef78ea6084e9e420c321fbec4c585ad51af645
Python
125
8
from sys import argv from msp import MSP msp = MSP() msp.file = __file__ msp.seed = int(argv[1]) msp.window = 800 msp.run()
f0b9bc0f517d204f9af6bc236fb72c3a48051b86d3cc0761a928c99d2c622f9b
Python
125
3
""" Contains functionality of the newer XML defined external display applications (not hardcoded into datatype classes). """
fa6858a031040f2c5f87c18514ed02274a96ea76e38bab1136f20725fa552813
Python
125
3
"""Conditioner layers for autoregressive normalizing flows.""" from tfep.nn.conditioners.made import MADE, generate_degrees
18f094c78db823f063c279dda32e790a12ca5a16b3c7ed04fbeff570b491b4c4
Python
126
3
# flake8: noqa: F401 from .simple_image_view import SimpleImageView from .wait_cursor import ShowWaitCursor, show_wait_cursor
1a3b5d052c972327427b3e55989beff1b70a99e0b3f523e438bbbaa2a25ef296
Python
126
4
from . import common from .BeattieModel import BeattieModel from .KempModel import KempModel from .WangModel import WangModel
8f4ed4ee2cde86053159fb51f774ae2bc0371135f058f5b5c0002aa2769e2850
Python
126
6
def ensure_dir(f): import os d = os.path.dirname(f) if not os.path.exists(d): os.makedirs(d) return f
4118dd3b55c7ad29a38993293d5873fac08453e36c226f28f4c4571f5dc69410
Python
127
9
from neuron import h, gui def test_nothing(): assert h.get_foo() == 42.0 if __name__ == "__main__": test_nothing()
62fefcbd5271cdc754bebf1ada544c218b9422390d99e3f78bb08ef159a5de29
Python
127
4
#from distutils.command.config import config from . import df, geotif, kml, landcover, plotter, utils from tlib import tutils
9facf63302a3c371dde0ac85aba13f0b55e39afc8679597b94fad8bfd5b6a09a
Python
127
9
import sys, os def blockPrint(): sys.stdout = open(os.devnull, 'w') def enablePrint(): sys.stdout = sys.__stdout__
e55a6ecb26af2bd4607cbb771b4a41c68f5ac888c84111a4d3be0ed25316ddc0
Python
127
3
"""Utilities sub-module.""" from .spectral import trim_spectrum, interpolate_spectrum, interpolate_spectra, subsample_spectra
f06ecd9990e97c9172a8c4c62144fe7a2e6cc80ee37dbced365fff7ffedd9e49
Python
127
2
#from deepchem.hyper.grid_search import HyperparamOpt from dcCustom.hyper.gaussian_process import GaussianProcessHyperparamOpt
6abda4047afa6ab187d1ad8726217c88e5bb3602baf4134acb2583d87371c7b0
Python
128
10
from . import clg_ from . import gk_ from . import lkp_ from . import warps from . import imgreg from . import stackreg
93ed28e7a71b485cc7dbe0ec76251d9b727e58b9a23c92ab08f03772e8c30b88
Python
128
6
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin # Register your models here.
f474e92fce1975d51f1dca7d0ec65a992fc620286a197f40fa9354199fe91b3e
Python
128
5
from . import parcellation_levels from .project import ParcellationProject from .tree_helpers import * from .plotting import *
42a87bec7b83c2d46c58a48b780d593ccc64fa9856f9aa3e7bae923d36fb41a7
Python
129
6
from flask import Flask import os app = Flask(__name__, template_folder=__path__[0] + "/templates") import angorapy.monitor.app
51b076026173d7428b30280a0d60fc855c1644b4201de9b504e92f513336f9d8
Python
129
3
class UnprocessedBulletinException(Exception): """ Raised when a bulletin fails certain validity checks (ex. MH) """ pass
3affaa5aa40cff83c3f8908d08881d343b382af0bd9a78d0eca356c54b2b4dcb
Python
130
5
#from . import geometries #from . import registration #from . import sorting #from . import pipeline #from . import pipeline_utils
93049276c0e3f25c2c763904a85e1c2115f6f735c4ff402b77cc980c776af842
Python
130
3
from . import auxseg, filter, image from .normalize import normalize_total, select_hvf_seurat from .transform import log1p, scale
9f838b8d3128e40fff9b931b4059ae2a38157d15be07385a9dc52d86d1b75fdd
Python
130
2
from .tool import CLITool, CLIOption, KeyValueOption, AbsolutePathOption, FlagOption from .launcher import Launcher, SRunLauncher
152060e0e469e80f6b31c3cb5d48fab1ecb6e1fa62de26cc22ba0d232fab4356
Python
131
5
""" Test fixtures for ethoscope device package. This module contains reusable test fixtures and utilities for device testing. """
4cb58c5e8f838e850bc325a45ec97f6b6adc2d64f7c728b996a8f1419867732a
Python
131
3
from .biss import BissClassifier from .utils import save_prediction, get_volume_share from .metrics import compute_dice_coefficient
583e2926d1db6087f631455b5e30294b705d738e05830e91e58ae0465a3bdec0
Python
131
3
from .core.trajectorydataframe import TrajDataFrame from .core.flowdataframe import FlowDataFrame from .io.file import read, write
9d457d48934f2e723b71db0108ef5f0675001c5fbeb5667d7cd82a44e806c62c
Python
131
6
from .anndata import merge_h5ad_into_adata, write_subset_h5ad __all__ = [ "merge_h5ad_into_adata", "write_subset_h5ad", ]
d05e92a5e6ed2cbb963687d0bac68073ef5de0d6823f23c721e0754818d009c2
Python
131
8
import pytest from webserver import app @pytest.fixture def client(): test_client = app.test_client() return test_client
e1f688f57d30939a1a00b12c3d36c0dadc9d6766cdd82d4449c01bff56711264
Python
132
4
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from cpa.api import API from cpa.plotting import CPAVisuals
8648950cfc1bae5dec65c7f894031c34dd94791020793a21fb9c3b1c59c9490e
Python
133
5
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """A More Flexible Video models."""
bb91fd922314117b22c2281fa92255b14299162252aaa08130f0e35f1a5f211b
Python
133
9
from neuron import h def test_valence(): assert h.ion_charge("K_ion") == 222.0 if __name__ == "__main__": test_valence()
c73b961f058e3765244e67adc5e813685daa5775a4da9d855870840c9c773e1e
Python
133
3
from .parcellation_level import ParcellationLevel from .aibs_level import AibsLevel from .binary_split_level import BinarySplitLevel
e4af0d3c0145e25a2bfd090f370be4a55ab04522aebaaf522704a51d9158df30
Python
133
4
from . import stats from . import utils from .file_access import AurynBinaryStateFile, AurynBinarySpikeFile, AurynBinarySpikeView
085704e537b0534f483aa49aa665a96f9c75b4d5c9c6da1612b466f0b0f0548e
Python
134
5
"""GluonCV-Torch model zoo""" from .model_zoo import get_model, get_model_list from .action_recognition import * from .pose import *
4ebdfa7efd5963affdf214b8c58dcfbad1508eae2ee2864c82fa6f436538da52
Python
134
5
from __future__ import annotations import numpy as np ak_dtypes = np.number | np.bytes_ | np.datetime64 | np.timedelta64 | np.bool_
7326cd4b384a1ed2eb51d7bcdaa4c2b6fafabf81e8cf05dfd0506e019a23d12d
Python
134
7
from pydantic.main import BaseModel class APIMessage(BaseModel): message: str class APIRequest(BaseModel): data: APIMessage
a3a9b32bd2f1a0273dbaff611b645c0775693c1e00cfcabef22b4123ad15b02b
Python
134
6
from .threshold_based import * from .regression_based import * from . import utils from . import threshold_based __version__ = '0.6'
7f86a95fb9da93a52aa0cbbf068aa13d3a1e8352a92ea4b62c38e5f9ed4ed081
Python
135
5
sim_results_dir = 'sim_results' plots_dir = 'plots' # sim_results_dir = 'sim_results_NoRecurrence' # plots_dir = 'plots_NoRecurrence'
50cc62f844a81468aa4d6015caa2c2830109d9a752921758bee9bc99b22231a7
Python
136
4
""" Padding helpers for "same" padding based on: https://github.com/rwightman/pytorch-image-models/tree/master/timm/models/layers """
6d76c3776b00a275c9575bd88461552276be1a86c6d736a265e8a1ad335367b8
Python
136
6
from pyabf.abf2.section import Section class DataSection(Section): def __init__(self, fb): Section.__init__(self, fb, 236)
13e518aefb2631721c65997479df9cfaccb219e8529fcecd49bd336a4728a59d
Python
137
5
from __future__ import print_function from __future__ import division from __future__ import unicode_literals import dcCustom.utils.save
1e6a0a87ff7124d43ee37f41c944d8512c9d12256c05e88f3d29cf93d120c41a
Python
137
6
import sys import os module_path = os.path.abspath(os.path.join('..')) if module_path not in sys.path: sys.path.append(module_path)
e44c1d3a0f1e032f47f90be7983ce19fc292b28bef3d12853788a141160d44d0
Python
137
7
from pl_bolts.metrics.aggregation import accuracy, mean, precision_at_k __all__ = [ "accuracy", "mean", "precision_at_k", ]
a1a34345b885f863087311ab83315ef22221e40da3e884ee74864b68d33efb87
Python
138
5
from galaxy.util.resources import resource_string def get_example(filename: str) -> str: return resource_string(__name__, filename)
c515165f6a9911d34cc6c783f5f4889f06a0368e2e13637ce9e3dcea49ba95bc
Python
138
5
if __name__ == "__main__": import alphamap.gui import multiprocessing multiprocessing.freeze_support() alphamap.gui.run()
ce278f8cd8424765f3b42e14aead8cce2e836782bf7e7994090a76e997900d4e
Python
138
3
from .mesh import construct_cells, construct_surface from .point_clouds import construct_pc from .voxel import voxelize_mesh, voxelize_pc
dfde623a48828dc9080bda4bf3f2a338b67682d0eb8385104050c209f7ad99b2
Python
138
3
# DO NOT EDIT # This file is generated by the updateplotlyjs and updateplotlyjsdev commands in commands.py __plotlyjs_version__ = "4.1.1"
fa549efcb71e66659ed2eedcefdfcffe43557e87040d65b3d2af0c5d6f5a63b6
Python
138
4
from imodelsx import explain_dataset_iprompt, get_add_two_numbers_dataset, AugGAMClassifier def test_auggam(): m = AugGAMClassifier()
cb826e332188285dac79c17f1578188a5e4a13972dd7bf988c9629d96f576c00
Python
139
7
from .label import run_label_transfer, run_rctd, run_single_r __all__ = [ "run_label_transfer", "run_rctd", "run_single_r", ]
4acdf5dd44888670ae087447544321545931df9abfb61700dcbb4caf107f74a1
Python
140
10
# stlearn/tl/__init__.py from . import cache, cci, clustering, label __all__ = [ "cache", "cci", "clustering", "label", ]
53148646b590b4a7149b3b23499ef663e4a862e6f4747f4fd70400233a5c3a34
Python
140
5
import pytest from llspy.libcudawrapper import cudaLib requires_cuda = pytest.mark.skipif(not cudaLib, reason="Cannot test without CUDA")
15c4f4ec62de71faccf1d2fbbe57336d8a154d00850f79b3e9e868d3bf7ce124
Python
141
6
# -*- coding: utf-8 -*- # @Author : Yue Liu # @Email : yueliu19990731@163.com # @Time : 2022/9/21 0:29 import os __version__ = '1.0.0'
9d195b711f1b0362f3f8e98b3cc20f841ce00c2a25f28480d7da8bdc89e29d70
Python
141
4
"""regression module""" from sknetwork.regression.base import BaseRegressor from sknetwork.regression.diffusion import Diffusion, Dirichlet
d286f7c442660aed493b54546136212a0631b90e116504d730c225573969ba23
Python
141
10
#!/usr/bin/env python """Package entry point.""" from stlearn.app import main if __name__ == "__main__": # pragma: no cover main()
1fac737e71f1432585c5bb8b3279a5328fa2a0c07f6fc23651ef85846a78e73b
Python
142
5
from pathlib import Path Path('debug_celeba').mkdir(exist_ok=True) Path('results').mkdir(exist_ok=True) Path('figures').mkdir(exist_ok=True)
37c66747b55e2a7019567e59fd834f57fe44df2b48a99d9e66c7eb9977e889ad
Python
142
3
from .gaussian_process import morphofield_gp from .sparsevfc import cell_directions, morphofield_sparsevfc from .trajectory import morphopath
d1a999c6b076f07eab2cb6e78cb9f2bb9a2c082f2e26d87ebb2d0ae2aef52f97
Python
142
3
from pl_bolts.models.detection.components.torchvision_backbones import create_torchvision_backbone __all__ = ["create_torchvision_backbone"]
de8eba3b5fdc0e2a9de46ac016a00f300c20dcf16fb18f3ae65aaf7b406d895c
Python
142
6
from infoclientLib import InfoClient ic = InfoClient('localhost', 15002, 'localhost', 15003) ic.add('roi-weightedave', 'active') ic.start()
88490a06a3b9385c82769a1581f848b062f127586580389a6add81baf307a7db
Python
143
6
# pysam versioning information __version__ = "0.24.1" __samtools_version__ = "1.24" __bcftools_version__ = "1.24" __htslib_version__ = "1.24"
e2f68908c621853c5e4e094439eea718a95902f02fcc5f9b171b343ac7879d93
Python
144
5
# -*- coding: utf-8 -*- # @Author: gviejo # @Date: 2022-01-17 13:49:58 # @Last Modified by: Alxec # @Last Modified time: 2025-12-04 16:04:00
eef89d5acc869fdb9126c595f9ce74fc33c922e2939c40de90545c896cd3d690
Python
144
8
"""BdPy data package. This package is a part of BdPy. """ from .bdata import BData from .utils import concat_dataset, vstack, metadata_equal
f0cfc56b240f985451f078b22b83446134258860bb23f9662cf94daaba7bea58
Python
145
6
from config import Config from flask_socketio import SocketIO def create_socket(): return SocketIO(message_queue=Config.CELERY_BROKER_URL)
1f0c863ae002ff529574ccae425c74ad6c82a277e5b9a91c1a5286c3ce18f7be
Python
146
6
# pylint: disable=wildcard-import """YOLO Object Detection""" from __future__ import absolute_import from .darknet import * from .yolo3 import *
5462428e4fae147424e3a294bdecd61edf38124e21cb2870dedbd4af06cdf406
Python
147
6
from .__version__ import __version__ from .neighbors import * from .categorization import * from .DEanalysis import * from .visualization import *
7a71e4dbc70691de6b8dda65ea423969409c84c9ed6b3055deecb5292ba90783
Python
147
7
import sys sys.path.append('algo') sys.path.append('utils') sys.path.append('simulations') sys.path.append('out') sys.path.append('figures')
9e3c4c090f3f2d85dcf1208868ea022e81ddc7a4da7581e779af25a6ae6523c5
Python
147
10
import numpy as np import sys sys.setrecursionlimit(10000) _dtype_ = np.float64 _maxshape_ = 1e9 __all__ = ['_dtype_', '_maxshape_']
dd6430788ddf8946577a3b37f6ad9dba7d07113f40d5867955e429d22f8bcb8d
Python
147
2
# For backwards compatibility as memory_bank module was previously in loss module. from lightly.models.modules.memory_bank import MemoryBankModule
e058741938d902c7db2b3cb4bcfd554e8bcf40be1b340ca3443827abd89fb3a2
Python
147
4
"""Data sub-module.""" from .stores import (ModelModes, ModelSettings, ModelChecks, SpectrumMetaData, FitResults, SimParams)
0fe47a8f957bd9b57290009639ce6b47b8b6b9b5d96b843fafdb8b061a4b63b4
Python
148
3
from .evaluator import Evaluator from .conf_ensemble_model_evaluator import ConfEnsembleModelEvaluator from .ranker_evaluator import RankerEvaluator
aff324847ac1489826343d3dbe63a69aca1e735b816b074a1f248e4e13671816
Python
148
3
from .metric import kmeans, louvain, calculate_metric from .read import setup_seed, sample, read_data from .utils import ZINBLoss, calculate_metric
ef7d7d917574c3d5fbad28aa4ae8f54ae9faa2e93294ae086cc67441c0925eeb
Python
148
4
from .two_alt_choice import * from .lights import * from .place_pref_24hr import PlacePrefExp24hr from .three_ac_matching import ThreeACMatchingExp
183533009eb9711e073ee85d1edd47d98590878482a5d52032affff1709d7990
Python
149
11
from sys import argv from msp import MSP from msp_fly import fly_am msp = MSP() msp.file = __file__ msp.seed = int(argv[1]) fly_am(msp) msp.run()
b26b55f502743f1b9ff0a5755139540ee28498948a3afabfdef2c087c4ec6405
Python
149
3
from .detector import GroupFreeDetector from .loss_helper import get_loss from .ap_helper import APCalculator, parse_predictions, parse_groundtruths
3c8e4af4e4b3da058198d1854bdb23e52485ee22505c8c1da37fc30a2550223f
Python
150
5
event_serializer = "pickle" result_serializer = "pickle" accept_content = ["pickle", "json"] worker_redirect_stdouts = False worker_log_color = False
dd5599bfa1ad909f8d47d46a931cfa4d3ec224b462eb09e792e5a1c77194aef3
Python
150
4
# flake8: noqa: F401 from .composite import StructureComposite from .composite_stack import StructureCompositeStack from .layer import StructureLayer