sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
4084a6ac2d476f2249b66cd1a7c64da9e3843b7f5e24dad69f8043d424518bea
Python
93
4
from wonambi.detect.ripple import DetectRipple def test_detect_ripple(): DetectRipple()
bab411aee34d2e7660d2b441346326c71a040b8814f790c6a2c127c352460a1f
Python
93
3
from .sequence import * from .prediction import max_value, weighted_mean from .model import *
9e293d26983034a44dea6367e58581def564380aab7c6d4e711538ca192d68e2
Python
94
5
from .scHetG import train_scHetG,louvain, calculate_metric, calculate_ber,preprocess
ab978fce795f3b0f97608395e914e7878e724bd85a37e35bd5dfffe105dcde0d
Python
94
4
from .core import contents, where __all__ = ["contents", "where"] __version__ = "2023.05.07"
f041058085c47502c043cc111d008c51db606713ff1b3677084d6096eb0203c5
Python
94
3
from .emotion_recognition import * from .personal_identification import * from .ssvep import *
fc496a260c2cddcc2ab890678298d105b213f19695a6eed599a445cfae5a8d4d
Python
94
2
from .layer import BatchNormedConv1d as BatchNormedConv1d from .layer import Conv1d as Conv1d
8ce425f2ba3894a0623e7bea56b4ac09da727bfc8e1a5ae25b55a6ecd2248b46
Python
95
2
from ._dendrogram import interactive_dendrogram from ._clustermap import interactive_clustermap
cb75a3e3a108c3e1b0eee63795d581dd3ce6ffffb47a7062a4056f91088b7995
Python
95
2
from .tsu_benchmark import TSUBenckmarkDataset from .sandiego_ssvep import SanDiegoSSVEPDataset
fadb8a2ec83aac0124b24da50a8541a30fb1c5c79a9a5859356ba8c89d9a0cc2
Python
95
4
from .dgcnn import DGCNN from .lggnet import LGGNet from .gin import GIN from .rgnn import RGNN
2a66aaddc24fe154beaa081edb1f187437310867336037c33ad5e2463dc0d7ee
Python
96
3
import os import sys sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/../../src")
2d98a54e1288ed1628992eb254b5ad333f1bb1215e46742b3bd0ab68d7180ffa
Python
96
4
# coding: utf-8 from .Sim3DR import get_normal, rasterize from .lighting import RenderPipeline
6ed03fdd0b05b3baac944c144cbdbec9c931433dd9e1357b421b828001543b79
Python
96
4
from plantsegtools.proofreading.proofreading import main if __name__ == '__main__': main()
0eccb4f19277af41628970bd930eda771a1db821a43ddde955d85749a48d023c
Python
97
3
from . import utils, files, vis, models, types, datasets, metrics __version__ = 'beta_24.07.23'
43f3deaa6151a4f5fa69b9523d1172bd61239deca5386b9bbdc3eb5a9a718b06
Python
97
5
""" Recipes for Q-Chem. These recipes will ultimately replace the existing ones in `qchem`. """
8c6c5f520e736a3b27fe0873fcf8f70a16ca5156a51682b6d90aa9468e2ff0d0
Python
97
3
from protonets.models.factory import get_model, register_model import protonets.models.few_shot
2e8738d857a034f4bbdc1eae3f83d56f0cd10201645f2b99f5f3711255cfff6a
Python
98
7
from . import base, interface, manager __all__ = [ "base", "interface", "manager", ]
e633b2fd85e03919bcbb8f2cf62e3d0bb92d847c654673a4b86b289b7fe7991d
Python
98
6
from setuptools import find_packages, setup setup( name='src', packages=find_packages() )
f0cbe28eee014a4e298e08ecea8a43f6c20f7371f9b6fdc9d99b25c8ab4ed748
Python
98
3
from .extract import Extractor from .classify import Classifier from .aggregate import Aggregator
0c9b3ad5435ae4ebb2a669fa61a58854589a8cc659f18cdf1dfcdb945f675ca0
Python
99
3
from .aalen_johansen import AalenJohansenCompetingRisks __all__ = ["AalenJohansenCompetingRisks"]
30a7a0051bdbe4e1a05e8becf7914de52606e640ac4a181edf6315ed3c3a73d5
Python
100
2
from .data_utils import preprocess, mnn_edges_svd,knn_edges,precluster,precluster_negative_paris
72952899de817c62791ecc594b9dd6c3c56f7ac67168d1ae67320bb8dd91bf81
Python
100
6
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), )
7d39e283f485acfc37bd1a6b69927f1079880254ad3a7d8c8f31029521b16f30
Python
100
5
from queso.estimators.flax.dnn import BayesianDNNEstimator __all__ = [ "BayesianDNNEstimator" ]
7d82fbdb12642cb839c364357005101a6e06208a11d41aafc17302be7961533b
Python
100
4
from scipy.stats import zscore def transform(data): data = zscore(data, axis=0) return data
b45aa14c200cc7ab31c84588ad75d4ccd149bb40031ffe5f569c3eb51f45c407
Python
100
6
import pstats p = pstats.Stats("profile") p.strip_dirs() p.sort_stats("cumtime") p.print_stats(50)
192d7c2e74fc154598adbb03bb2c6f3668d3e8dd0b27d1d16e5a421b6259d085
Python
101
5
from .coreblock import UnlockDNACoreBlock __all__ = ( "UnlockDNACoreBlock", )
b05faa96275d5d19ac547fc78398c1b6f9f5ab9382476726885e2338fe9bc89a
Python
101
6
import torch class Tanh(torch.nn.Tanh): def __init__(self) -> None: super().__init__()
de8f3904b879a5baa76581e19d7a5b2a7f6f5d9c9a4a04fd2180fc6df8d421b0
Python
101
4
# Copyright (c) OpenMMLab. All rights reserved. from .DPA_TISR import DPATISR __all__ = ['DPATISR']
f6419e150a13aaadef9802c674f6c71cd050bf6b6684d6c3c50fafe8bbe02b00
Python
101
7
__author__ = 'martinez' import vtk import numpy as np from .variables import * from .utils import *
85a92e0b5e2a7b578b1a5a41812f022eda1ff877a06efb4e4927e82df59819aa
Python
103
9
NUM_TRIALS = 50 STUDY_SAVE_DIR = 'study_saves' K_MIN = 1 K_MAX = 50 ALPHA_MIN = 50 ALPHA_MAX = 5000
b9f7dad5eb07d4dafc20a994db079c922035fb2416af8271b64eeaaa698d30d7
Python
103
3
from .scaleddotproductattention import ( ScaledDotProductAttention as ScaledDotProductAttention, )
186336ba8839f51a0e6c368ca8bc7cf354827bb079fae8793ab9652dbac68dfe
Python
104
7
# info __version__ = "1.0.0" __author__ = 'Boyi Yu' # init from . import preprocess from . import train
3fbd6dfb6ddb1e9dab4fdd32872d92527481ff69d2f7e826f21d26e5c3c6d675
Python
104
6
from setuptools import find_packages, setup setup( name='seq2exp', packages=find_packages(), )
65324b6ad1ed5e4dfd6becfaf7540e4645b8fdf6964d13610d22f6f9759275c3
Python
104
9
import math @profile def f(): o = math.sqrt(2013) return o if __name__ == '__main__': f()
eca54df18573bb09fc8e3e0ea7610971ff917fac27bb92db8abf6ecde8bbb79e
Python
104
7
import os import time while 1: os.system('nvidia-smi') time.sleep(1) os.system('cls')
1ec4a3f55531a5e722a17e274d3006aaccd97eef6674efb1700481d53e81b33a
Python
105
4
from plantsegtools.evaluation.evaluation_segmentation import main if __name__ == '__main__': main()
1ec4d3bc29a9e6dec44ddaed41c6bcc325aa95073b87f45f198e44c6f6b18f28
Python
105
4
# Copyright (c) OpenMMLab. All rights reserved. from .sr_backbones import DPATISR __all__ = ['DPATISR']
dd5a973892cb09037de009319051e0046e1c92abba5d117afde808a513685028
Python
105
6
from .pipeline import Pipeline from .cryovesnet import * from .cryovesnet import run_default_pipeline
1395ca54d9deea338e279c1426cee7aad8e839e7ed3b54e71547a55fd389a21c
Python
106
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main("issue561-v4", "issue561-v5")
1eada43ca2259981ba56ddd515970f259e204662aec37989796e9a158dc7b94e
Python
106
6
def test_gui(): from rastermap.gui import gui def test_class(): from rastermap import Rastermap
48aec4efa761b57c95f02af2ae15afe45440ff0ae18119f47eba1359e1a774f9
Python
106
5
import sys if sys.version_info.major == 3: from pregex.pregex import * else: from pregex import *
53ce64352034d15e0d7eb96615954ec8f81e3b6cde44a239b355ea631e6dc437
Python
106
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main("issue561-v3", "issue561-v4")
9b48e688442689c05245c26a99826301542f50b4f77249746a45c5a1ef8ece27
Python
106
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main("issue561-v2", "issue561-v3")
a5e07b5f1b3bd7fd9d5452965b97d6652bcc52645701ea013ab0c47b2863a3cb
Python
106
2
from .improc import get_srh_base_aug from .srh_dataset import PatchDataset, SlideDataset, slide_collate_fn
b9a9d152c02bb73bae73e405a5e92723b932931dda71c1b9f82e99dba8292cd7
Python
106
8
#!/usr/bin/env python # coding: utf-8 # In[ ]: def say_hello(name) -> str: return f"hello, {name}"
c24aef54f763b90a356042d033ad4ed3e03ed615913d36d36a7e018460e046cb
Python
106
3
import os LMC_CONFIG_PATH = os.path.join(os.path.split(os.path.abspath(__file__))[0], 'lmc_config.yaml')
d4c6d9a77ddbe032f6cfb50d441ff3e8ce1bf0ceaf3a52fe5b6a0f99f88d2f9e
Python
106
3
from .InSTAnT import Instant # from .poisson_binomial import PoissonBinomial # from .poibin import PoiBin
f44e4472ef84c6cd04619af44ab790061ef4e4e9e2677348f7f045e8fa1c71d6
Python
106
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main("issue561-v1", "issue561-v2")
00be50af6d74e18dda075da6b6862ec28a0ffee1486b66bba71e61991e273efa
Python
107
7
import numpy as np import pytest @pytest.fixture(autouse=True) def random_seed(): np.random.seed(42)
6f49260370485ca59860192b44815e1bacfb1b857c15cfeb189026d7341bb4a9
Python
107
6
import torch class Sigmoid(torch.nn.Sigmoid): def __init__(self) -> None: super().__init__()
707167aefeec63c7abb7daa6edeb45a01a90161113c6a2c351541f11e2fbc700
Python
107
5
from .baseline import * from .lambd import * from .compose import * from .lambd import * from .pdb import *
f5954ef01a04ecd1193e6a07a79029fcd268d0780d21ecd75e0f93153b6ddd9e
Python
107
4
from ._dists import Distribution from ._envs import Environment __all__ = ["Distribution", "Environment"]
c1ee6bd8bd35ceba200e5590afd164c64a26ace3a31e398bc0797832501c2798
Python
108
2
from .ball_forward import frechet_ball_forward from .hyperboloid_forward import frechet_hyperboloid_forward
c4b17de97aa84e06dfa1c08277b5c884490b10e31b3739c287779147c8e232e6
Python
108
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main("issue561-base", "issue561-v1")
13f21da0cbb6dde0abc957d222f81106aa014e028669275b9dc2d69417f96612
Python
109
5
"""Math helpers shared across the codebase.""" from .rbf import wendland_c2 __all__ = ["wendland_c2"]
18dbcf21a55c67333bf6caa767230e7472e1981e44d7704c2ccaaac66c815192
Python
109
2
from .math_operations import MathOperations as MathOperations from .quantization import quantize as quantize
2a4ac510182f7dbce7be0f2211b62ff259994a4398f925d65aef5cbd2c68ab40
Python
109
6
import torch class Identity(torch.nn.Identity): def __init__(self) -> None: super().__init__()
b93da88faef362ef5828ebc0efd6bf54dd483c30cc713428a45ab6e902146b2b
Python
109
2
from .batch_normed_conv1d import BatchNormedConv1d as BatchNormedConv1d from .conv1d import Conv1d as Conv1d
482b7e2b1b201973860dc6c5164a5db65d18be8b3f854530af3f93ebf67a9444
Python
110
2
from .tcga_program_dataset import TCGA_Program_Dataset from .tcga_project_dataset import TCGA_Project_Dataset
4cde969851a35574a71218dc994cbfc2a0e49d49112a02c067e8aef0538c7d86
Python
110
2
from .data import Task, load_data, fmt_grid, load_single from .vis import draw_grid, draw_task, output_drawing
92a0135df41cddf1092f4f35512aa52e94c9246f901c5b398fe86f624b465857
Python
110
3
from .decoder import TransformerDecoder from .embedding import Embeddings from .transformers import swin_base
404ef0d5e70f3650c45b5e9c2eac0899a63ccd887bb2d657c741f231f8468baf
Python
111
4
from skymap.main import SkyMap from skymap.metrics import SkyMapMetrics __all__ = ["SkyNet", "SkyNetMetrics"]
45ca7795d6472a6109bd9615b0a7c0ba70b62b2e03721fea1f119ad96952022d
Python
111
4
"""Initilialize testing of PyPREP modules.""" # Authors: The PyPREP developers # SPDX-License-Identifier: MIT
68d6e1ad6b6aa1cd364708e8fde6d7e6904e6545bc46563a1cf028fa4ba41869
Python
111
5
import numpy.random as npr from .numpy_wrapper import wrap_namespace wrap_namespace(npr.__dict__, globals())
7c3dc24181341da2d720dfd5cd4d5ef78667b689f63fafb103a44f41ba6ac30b
Python
111
5
from .base_transform import * from .any import * from .label import * from .numpy import * from .torch import *
a4c3ccc945fb1ac06d49c5c9d970af5e6fbbd43ca464368240edd03743ac6b1e
Python
111
2
DEFAULT_OUTPUT_FORMAT = 'Pharmacology' # Options: 'Pharmacology', 'VM', 'Pharmacology - Megan', 'VM - Megan'
bfe658b09fdc6e16f955c60cc85777e3c6e83ba9bad4b6612bcca2c7d354e6ae
Python
111
4
# Copyright (c) OpenMMLab. All rights reserved. from .sr_backbones import DPATISR_3D __all__ = ['DPATISR_3D']
dded455916520b48a858098738be220ef4b18636d65ee8c7bd050cdab2aa26b1
Python
111
2
from .ball_backward import frechet_ball_backward from .hyperboloid_backward import frechet_hyperboloid_backward
f5a2b963c094e0d3793bdcfb96ac8e2d03e50affe37ec60842c70902c3227a7d
Python
111
5
import torch from .acsconv import ACSConv from .soft_acsconv import SoftACSConv from .conv2_5d import Conv2_5d
4c8b7ddd3fbec5238c92f14349daa0d94a496835a348031c0f2ea749292ecf0f
Python
112
4
from .operator import InfidelityOperatorUPsi, InfidelityUPsi from . import expect from . import expect_chunked
58edeea32b2aae95864df600cab01419f6ebf6d43415cbe8cb08fd23002ec958
Python
112
5
"""deepsignal2 uses BiLSTM to detect DNA methylation state from Nanopore reads.""" __version__ = '0.1.3'
7969d154182d935de9f9e1f001fc2d0f2cf30dcd5ee27b282e5e53dd667a3dfd
Python
112
7
from dataclasses import dataclass @dataclass(eq=True, frozen=True) class Signal: name: str width: int
2e58b9a69d1d5d40585354fbe455c14baaa3cf3c1ec881ac6f289722a57cfdfd
Python
113
2
from .dynamics_driver import QDynamics from .infidelity_psi import InfidelityOptimizer as InfidelityOptimizerImp
5a8719e80d3e4f7dbdd8239ce073010d68d147a24a2b0ea09c85602616f4b7ba
Python
113
3
# SPDX-FileCopyrightText: 2024 Sergiu Deitsch <sergiu.deitsch@gmail.com> # # SPDX-License-Identifier: Apache-2.0
7e4f247b374c0b78f2dc152f36aa9cfdb3990ead51fe10ce7eaa043fffe5fb6e
Python
113
2
# Make the class 'ProteinDataset' accessible from 'src.data_handling' from .protein_dataset import ProteinDataset
b54edbc3daa3acd5b4725b14805da2b3bf79563d0c227cc2970636b3614c3f60
Python
113
2
from .logger import get_logger, setup_logging, SuppressShuffleWarning from .tensorboard import TensorboardWriter
5eed167945f28d8bd077325f0ff1861e4750a95bf108d486318e83f42ba24958
Python
114
6
from jax.config import config from queso.sensors.tc.sensor import Sensor config.update("jax_enable_x64", True)
b2bd848f89d3fe5d163ee22a527c12b931911209029b27b2c4b10abc0470baea
Python
114
6
import torch class ReLU(torch.nn.ReLU): def __init__(self) -> None: super().__init__(inplace=False)
ba25a302fd89e879a50760890a8cc9419f35f58dbc39e967d4bb2c594ff7a492
Python
114
6
import torch class SiLU(torch.nn.SiLU): def __init__(self) -> None: super().__init__(inplace=False)
d0d6e1be2d39e2229a7d02b8e3a5b8a8d6411e43511ca19a3642fc197227c480
Python
114
8
from .callback import Callback from .loader import BatchLoader __all__ = [ 'Callback', 'BatchLoader', ]
a0119b7d2a4d5c7265fdef1ad1aa735ce1d83fd75a153530a27d6e7d0a7fc59b
Python
115
2
# Written by Minh Nguyen and CBIG under MIT license: # https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
49e1fcff276f911fbffd270d25ee7c1273149e9397a51301f041badc367f02a9
Python
116
2
from .layer import BufferedIdentity as BufferedIdentity from .layer import BufferlessIdentity as BufferlessIdentity
55fa91c9eb59d102a1a34d94b2371b60b24381fcf425ee03a6e69da00783abbf
Python
116
2
from .bciciv_2a import BCICIV2aDataset from .strokes import StrokePatientsMIDataset,StrokePatientsMIProcessedDataset
6f5fe7057eea0c2bde4adfcef34f0fd5b2c3991db592cb8d6282ccad98968091
Python
116
5
from elasticai.creator.ir2vhdl import ( InstanceFactory, ) InstanceFactoryForCombinatorial = InstanceFactory()
329772d07869d451ba306d0254911b908a00a3edf9f03d65ec64df2360a522f7
Python
117
5
import math def calculate_address_width(num_items: int) -> int: return max(1, math.ceil(math.log2(num_items)))
d9abb9313f4921b2defa2d6c33a3b2bcc3826f7ac575afeaadd59a155b86c3c8
Python
117
4
import pyclesperanto_prototype as cle dict = cle.operations(must_have_categories=['background removal']) print(dict)
037c82f24e4756034afbecc403b72d84a674a3c0362ab89fba02e0017d0a5368
Python
118
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main(revisions=["issue583-v1", "issue583-v2"])
05e1a2f49e19cd10315015e52dc8eb266d944ce23d064fd0d974ca5f3db744c7
Python
118
5
from .kernel import PW2AOkernel from .aodiag import AODiagKernel from .utils.misc import Timer __version__ = "0.3.0"
218c38596f669f6d99d043763011b55039d20c4ab05169a815cb52f4ef95b83b
Python
118
3
from .build import build_dataset, build_pretraining_dataset __all__ = ['build_dataset', 'build_pretraining_dataset']
2cc2d2579316e765aff16832e6cd5eead2c6023c27aee09675a3cfc81d4a0954
Python
118
6
from __future__ import print_function,division import sys def report(*args): print('#', *args, file=sys.stderr)
40c2a3eff5d18d8572170e139e62ba6785c5c4c6b412e9c6d15cfd9f10127e49
Python
118
4
from .greedy_search import GreedySearch from .beam_search import BeamSearch __all__ = ["GreedySearch", "BeamSearch"]
96ec678d29441e5909b64fac9e9fda2a591215bb3aaf226cb028ac4c01849f3a
Python
118
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main(revisions=["issue595-v1", "issue595-v2"])
ae7e932ef13c0da046ddefed3de9cc5aef42f12dd684d68aae277e0fda0e6065
Python
118
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main(revisions=["issue595-v1", "issue595-v3"])
019123b70c505bcbd702ba9abb9856aa8896f2a2a7f050df2b9941a3ef8bbe1b
Python
119
4
"""Modules for processing tree-like morphology reconstructions.""" from treem.morph import * from treem.tree import *
bb4f4a7438f31623e2c0b815d716ec6c46fa4a4acb502b7d2cbe6bde0c0cb58a
Python
119
6
#! /usr/bin/env python # -*- coding: utf-8 -*- if __name__ == "__main__": from driver.main import main main()
02950e9fbe5ae75168965b7e278c3d001742da0d8840a123befe360e340701a4
Python
120
6
""" Module to do quantification using SVB surface/volume hybrid mode """ def run(wsp): raise NotImplementedError()
1c50414698415e68950fc37cc157de2054928f7d283dfdfaa72f7ba27d80be33
Python
120
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main(revisions=["issue595-base", "issue595-v1"])
3a00c0e7cf2607fec3c1ec9bb093b5a93b56c5b50ba581220dfdb457a7d82eb2
Python
120
7
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', )
3bba7c64632d5df7cbf2efadc7a98d74012ccc984ac2513833055592f731ea1e
Python
120
4
from .poly_factory import poly_factory from .matrix_factory import get_matrix __all__ = ["poly_factory", "get_matrix"]
67e4b8a27c74142050e555407c67364b1c37de88c0cf36960d25a8cfc197fd4e
Python
120
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main(revisions=["issue549-base", "issue549-v1"])
6d50fb6fc410bf27145bc6dc8c263462003c4cf5be76bc16a9c63eedcce55cee
Python
120
6
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main(revisions=["issue596-base", "issue596-v1"])