sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
8bfea1e0ac362dbe175348b2e13ca1c94c5fcd86b98fb5797e681408cea6dc27
Python
95
4
from .bmesh_face_ops import * from .bmesh_object_ops import * from .bmesh_vertex_ops import *
b19f975c12523bcf33e5d7eb67a29930700f49da25ddc82133a822665d240f20
Python
95
4
from backend.settings import ensure_pretrained_models ensure_pretrained_models() print('Done')
c9e9e3bde3f3fea85fb59751f207482ed55c84a407f680eccfa4a9a2f20ca6ec
Python
95
7
CURIE = str LABEL = str URI = str PRED_CURIE = CURIE SUBSET_CURIE = CURIE TAXON_CURIE = CURIE
dd802e01a5de7c19df537c4ffc9962054964823b50d5bf1b9c03006d6e7ae79c
Python
95
1
"""Realign the Kaldi generated CTMs and segments to the transcript to recover speaker info."""
0f671726c14b3c607e9bb4ad3f53c9601fa7f025b66a5ce3fd3d5cea4fc46d60
Python
96
2
from ppqm.utils.files import WorkDir from ppqm.utils.functools import exit_after, func_parallel
1fc74ab39b400c328e0af30a428453676ee30dcb3185ca2aa5add71659984f0e
Python
96
3
from main import app # do some production specific things to the app app.config['DEBUG'] = False
83e996102efa8b8145275b826b9e09e804516d7f74b4e6508271a379759af813
Python
96
3
from oaklib.datamodels.search import SearchConfiguration SEARCH_CONFIG = SearchConfiguration()
8848d42128967ec48fda11d8d048ed074830e3724640126d3ff99550911fe347
Python
96
4
r""" instruments is an useful additional functions and methods for analyzing spike networks """
cf91fb4bbee3a370671b9e5e544c216cc3fdf19915f41a4fb1f0286c62426acf
Python
97
2
from ._boosting import boosting, BoostingResult from ._predictors import epoch_impulse_predictor
0648aa4eb555c891d293c3b73f63e342b3481bd92b044a4a88ed341444a404fa
Python
98
2
from byol_pytorch.byol_pytorch import BYOL from byol_pytorch.byol_pytorch_get_feature import BYOL
519cbff48e82494fa40e93aa5e581e9fe77a9e112de8e6e709a1be219145edaf
Python
98
2
from .image_pipeline import ImagePipeline #from .image_pipeline_widget import ImagePipelineWidget
874a919dd558af30f4a5d2d45a872b873f1fd65970aeba48f2cd35053e837c7a
Python
98
3
from .loss import * from .optimizer import build_optimizer from .scheduler import build_scheduler
bf8f356dca41d01dec5454723c646809b012d853e39dc64450c8cdc1e372a060
Python
98
2
import torch from .nx_conversion import to_networkx_conv, whole_graph_mask_to_subgraph, mask_graph
337493997d2359c1964a76b77456cb634c79c32cdb829c98784d5f52e9c01c19
Python
100
4
from .math_phase import * from .math_lattice import * from .my_io import * from .my_logging import *
57f3f643d8cee9ad5a6705180f51047c3aa3ec8de2d50bf92f7a71e10d397238
Python
101
2
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # from .rpn import build_rpn
f97a162da9d3588ea3f43eb9d3deff2468c5dac99c1a3de4023f76148503dfd1
Python
101
3
# # Copied From [mmdetection](https://github.com/open-mmlab/mmdetection/tree/master/mmdet/ops/dcn) #
9d40b84c52735e8518fcb4e6859bb79ca9eac5d65a27354f65cdeac377e264d7
Python
102
7
# content of test_sample.py def func(x): return x + 1 def test_answer(): assert func(5) == 6
2e85d2fa3c0a8710784d143ad4195c4538cfdf5e3b7292e11c6f3488177420a8
Python
104
2
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from .defaults import _C as cfg
3b27fec61e64d8c621c24c2d648f1ba9bfb7d3d33b8b567b5cc82b11912968b5
Python
105
6
# import demo from CoBeL-RL import cobel.demo.sfma.sfma_demo as demo # run SFMA demo demo.single_run()
5d73982cf8d6e0c824d90b578a6fb3d00bd47d168e3b4d9ebb6e40b0d78cc8eb
Python
105
3
from .sequence_explorer import * from .frag_sequence_explorer import * from .frag_graph_explorer import *
6050524dd1807a44fc167500a0cf5e6cb3bb5a1bc320d3365592d8c8ec7a7d61
Python
105
7
from abc import ABC from dataclasses import dataclass @dataclass class Reasoner(ABC): # noqa pass
82f17d4d66ec52991d0971066f9d51e815f2ab24e9bf7a48ed08e5b0fe48b5c5
Python
106
4
from FBEM.run import * from FBEM.postproc import * from FBEM.write_input import * import FBEM.logs as logs
8a462d07d4a1b646f42bf3650a68a1314d0c48b37c3a4f76472703489ac98d4a
Python
106
2
def test_resources(folder_in): assert (folder_in / "E301_FLUT_AC1_combined_ID_cleared.nii").is_file()
ab5e05c8fba54d5daf4ffddc7a252a5f6f119ad3fbb15d1ec7d424a8ea1b8116
Python
106
5
### version 1.1.7 ### import os os.system('nrnivmodl') from neuron import h, gui h.load_file("nrnez.hoc")
d7816f3cc8020a844f81c3b32da67e1f37ab7ce26fa9386e790557f6d7d7aeab
Python
107
6
import torch class Squeezer(torch.nn.Module): def forward(self, x): return x.squeeze(dim=-1)
217ac10b01df0da5259764d358a130e507d237e0615b8cbac690602d06364e01
Python
108
5
from .ubergraph_implementation import UbergraphImplementation __all__ = [ "UbergraphImplementation", ]
7e2259f4a37626553dc3d7f030852ba33fc91aae7e190e9c85bdf1307699b719
Python
108
2
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from .build import make_data_loader
4b1e23f2be5b22517a682d5244df4b96ef2c93fd1dec64da8e9160f35ee98a15
Python
109
3
from .deep_sleep_net import DeepFeatureNet, DeepSleepNet from .utime import UTime from .usleep import USleep
2600acab3ede0102ff0bd8e8f8d62b21e4fff97f99a95996aa14679b6ec30d01
Python
110
2
from .modules import * from .parallel import UserScatteredDataParallel, user_scattered_collate, async_copy_to
57d8d3f5da5d0d1f1e2cfe5f633dda2f311f39338a6285a4a821afd4855bc0ce
Python
110
2
from .environ import get_environment_variables from .io import FIG_PATH, OUT_PATH, get_out_dir, glue, savefig
131fe9619e0e07d402a687e0df266f36329bb61927581ac2e6de2bc6ed577c69
Python
111
5
from .attention import * from .encoderdecoder import * from .transform import * from .single_network import *
15feff3be2382f107fa10bc433c3b867824d9e8654a998142e316dbc12f52af4
Python
112
8
""" Set of auxiliary functions for RACCOON F. Comitani @2020-2022 """ if __name__ == "__main__": pass
6689bac2ab11e535f92ff00336fcd98d136201b4b72e5a12b7487c8065ca827d
Python
112
9
""" Set of standardized tests for RACCOON F. Comitani @2020-2021 """ if __name__ == "__main__": pass
bfe6b97c8b3b67bf05ddd65801acb20f10cd2c75f06c8d8d7d9de5a4de24ba65
Python
112
3
from .file import SegmentedFile, ColocalisedFile, File from .colocalisation_result import ColocalisationResult
ee39cd9ff27dc81f9048abaa8f1497f0f892648a35773ab4bb4b8bb84bded036
Python
112
3
from __future__ import absolute_import from __future__ import division from __future__ import print_function
75c7f5ff5c4007de1ea905773883a07b3d5ff683d1fa881b0bc464e9d4728d2c
Python
113
3
from oaklib.mappers.ontology_metadata_mapper import OntologyMetadataMapper __all__ = ["OntologyMetadataMapper"]
9a5eebe282b688c586df0f512cc6c157fff2ac9d4c2f4cb73143e55557af33f7
Python
113
5
from mesh.plot.mlab_viewer import MeshViewer mv = MeshViewer('data/sphere_wall') mv.triangular_mesh() mv.show()
43f0c327a6ae9425f25ad7e17a7abc6cbb9b962bc50ac69ce27024abf91e763d
Python
114
3
"""mb_dual_dan: dual-pathway dopaminergic model of the larval Drosophila mushroom body.""" __version__ = "0.1.0"
8322e3d0965392fb3d80514fcf8563ae4acc4aeba3e29f18a94dd53cff8d7070
Python
114
6
"""Useful utils """ from .misc import * from .logger import * from .visualize import * from .model_utils import *
53682a68acb3bb931632818bba4c94202d657d9d2ce3e1d4abbe2ec43f93450e
Python
115
8
""" Set of optimization functions for RACCOON F. Comitani @2020-2021 """ if __name__ == "__main__": pass
cfad1e19067038215ff40b0fa4b6c3aee413d003cc0bd3f37e4141db9cda0b2f
Python
115
2
from .structured_feature import make_structured_feature from .network_statistics import make_network_stats_feature
c2c0931890f9a6053d930c3cb75325c1591c04f28794db0bb6d9a099c6605911
Python
117
2
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from .detectors import build_detection_model
42191361eea78b28b435766f30c7a138d3fb6d12d461fccefc64abd2c4706cff
Python
119
2
from .ModelNet40 import ModelNet40, ModelNet40Attack, \ ModelNet40Normal, ModelNet40NormalAttack, ModelNet40Hybrid
2aaa89973d4eccf359c4e48e6f6d9d0eccf9e074be218e19d742473f2fb838f7
Python
120
6
import numpy as np import sys from modules.parameters import ParameterSet, copy_dict from defaults.paths import paths
28c9e5f5873f91630d74913237c304ec7d07db0c4eee590586d7487e2d7fbbad
Python
121
2
from .resnet import ResNet, resnet18, resnet34, resnet50, resnet101, resnet152 from .xception import Xception, xception39
915d7c938cdf400f8c291bd92db4eabeef4f402b4295f8b24a0eb6d032aa04fe
Python
121
3
from utils.utils import * from utils.kNN import embedding_matrix_2_kNN, knn_similarities from utils.Config import Config
c1d5dcc6d8bf8e22f7b0a9e5603894ea3df8af1256181ee3430064ab7fb16277
Python
121
4
# This file holding some environment constant for sharing by other files import torch TORCH_VERSION = torch.__version__
57efcc4fa7abb394c859b0a4157e6c593c4a2c1f6938212c73f8488d991691d6
Python
122
5
"""Write changes in markdown format to a file.""" from .change_handler import ChangeHandler __all__ = ["ChangeHandler"]
a7472bc527b4d81c268f901aea4ebd762b969eee8f4e0d9f7295b866531f2aae
Python
123
6
from .centerCropCommon import center_crop class negativeCenterC: def negativeCenter(self): center_crop(self)
ab9e5c3cca9b38e085259f5c733c874fea9532b666de9b301d998d87792e94e1
Python
125
4
import pdoc s = pdoc.html('bayesian_bootstrap.bootstrap') with open('bootstrap_documentation.html', 'w') as f: f.write(s)
47e231664d8853b3d686f70e72827563ab7893a8da39a193de2b1c57833a915e
Python
126
6
"""Trains a model on a dataset.""" from chemprop.train import chemprop_train if __name__ == '__main__': chemprop_train()
2db5ba64ce4a2a71d5f8ee7d17e48935aa79f1a31602f213c96f306b7f1b6337
Python
127
5
# Load subpackages in current namespace from .pycpd import pycpd from . import cutting from . import model from . import utils
3eb412f2b97882baf1b645549c99b3889104ecc6d614ad24b296184260fc715e
Python
127
5
class RelationshipCollection: def __init__(self): self.DirectRelationships = [] self.GapRelationships = []
b1994c143175ac1ed789c12590ff13c3e2eca84184b88e2310af02d3e7c86672
Python
127
5
from cmseq.cmseq import CMSEQ_DEFAULTS from cmseq.cmseq import BamFile from cmseq.cmseq import BamContig __version__ = '1.0.4'
85ef0c95175dff70628e74ade192a6aa08c04fd2c274457f84dcb785dd6d1db4
Python
128
5
from .mobilenet import * from .mobilenetv2 import * from .mobilenetv3 import * from .igcv3 import * from .efficientnet import *
1e76aea4196b69681c5271a9fc585697f2c443f9c3f6114f6cbb423602148030
Python
129
3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from .backbone import build_backbone from . import fbnet
91d174264897919c2400be2f83a610fa555d433a3252229594450991ea43ecac
Python
129
3
from .sequence_rnn import * from .sequence_transformer import SequenceTransformer from .graph_transformer import GraphTransformer
7955e848cdb3baf709a9f69ebcbb272b6ac653f37305cadcaf9ef628b9f3f266
Python
130
9
import numpy as np x = np.random.rand(100) y = np.random.rand(100) sort_inds = np.argsort(x) x = x[sort_inds] y = y[sort_inds]
fb8d756d076dd8ea8e80e4b47e15f49e96a756b22998d0d00402de045c8d1e00
Python
131
4
from .define import * from .operate import * from mesh.shapes.Regions2D import * from .convert import fuse_mesh, triangulate_system
d5e83cc4fa4e98852e09a090ef18f439969ae2f6d7f13c8cfb3f7f7bef42bc3c
Python
132
9
# cfg.py global sampleName global outfilepath global logFile global logOpen global home global run_clipper global verbose
eea38fcc0af5d105067c7c9b963082486a7f607c81e02a03c3d4081d4f06befd
Python
132
7
from oaklib.datamodels.search import SearchConfiguration __all__ = [ "SEARCH_CONFIG", ] SEARCH_CONFIG = SearchConfiguration()
a17d7cec67a7f1c6ed117dcfad9d2faeb2c94512281dbcbd43a4c8074bc0641b
Python
133
5
# Load subpackages in current namespace from . import cv from . import deeplearning from . import synthetic from . import clustering
8309f0234d05b8da5fffda8aa8bda23f4f3a2a15c086513226a928ada96ad8ab
Python
134
4
# Copyright (c) Open-MMLab. All rights reserved. from .quantization import dequantize, quantize __all__ = ['quantize', 'dequantize']
8e61e007d6ff445400911959c3aa5f9f4ed03e9f179e40aced3935127fa1b8f8
Python
134
6
import sys from ..common.base import serve from .worker import MockWorker, build_parser sys.exit(serve(MockWorker, build_parser()))
7bc48b7e25e73b86c100b858262be26e214d772f3e336e2983261442a91a7be5
Python
136
5
def subset_to_shorthand(subset: str) -> str: if "#" in subset: return subset.split("#")[-1] else: return subset
933b2d84c4fa6f9871825165ee3715810701ce388fc39b5548e50520bf75cd0f
Python
138
5
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tflib.ops.ops import *
b2082c0c7f211b3fd2e8145c3ac619fa0c4ce46963e4b3efc61206de3f6ec21c
Python
138
6
# import demo from CoBeL-RL (requires Tensorflow!) import cobel.demo.sfma.deep_sfma_demo as demo # run Deep SFMA demo demo.single_run()
eac28c3baf69f05af1c850978f0b043719ad6ae68ca5db97cd65c924f3fe7e6f
Python
139
7
from .flow import ( estimate_spring_rank_P, signal_flow, rank_signal_flow, rank_graph_match_flow, calculate_p_upper, )
191b75499cfe2b3ef3fbf2e8455d6cb3ae5605497720c514fb87f5f513f8deee
Python
140
6
import sys from ..common.base import serve from .worker import Cosmos3Worker, build_parser sys.exit(serve(Cosmos3Worker, build_parser()))
6f1e582a4865055201c77a2417222dcf34a61763716dc3c3f93cf01de44dac74
Python
140
10
""" Guide 02 ========================= Define your own algorithm and/or metrics. - It needs... fit? (empty) - It needs... transform? """
5bb2b7b0e1373f72cd151f3c016baeb4c7320fec2659bddf98dfb1706f0341c0
Python
141
7
import torch from graphxai.datasets import Benzene dataset = Benzene(split_sizes = (0.7, 0.2, 0.1), seed = 1234) print(dataset.test_index)
deb11831edac515694bb7dbf9acd75f64e468ff3168ee157f1e5dcb883ca537f
Python
141
5
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tflib.ops.layers import *
47cc6e3b5342c8874c35afa1ca789dbdfe111b9f510edb73e09f36c82d151c3f
Python
142
10
axis_heading = { 'fontname':'Arial', 'fontsize': 8 } axis_label = { 'fontname':'Arial', 'fontsize': 7 }
e279fd740a94b6daeda6bba7aded281ed39288de17212f9490fc025274038599
Python
142
10
import unittest class TestEmpty(unittest.TestCase): def test_empty(self): pass if __name__ == "__main__": unittest.main()
0af925f1815711dee3b4d69368cd74b1ff76f12062bc8019d641a453a4e3c436
Python
143
6
import modeltest.rnn.pretrain as pretrain import modeltest.rnn.processing as processing def test(): processing.main() pretrain.main()
595f6886659670b290f02ecbdee4ce30bc160419c72697a5e88bef7c4b3c33a0
Python
144
5
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tflib.layers.layers import *
a2b716bdc01cf09b93831a31e108ee8cc935c3bbf692dcd9beb806b5d9322609
Python
144
6
# Load subpackages in current namespace from . import detection from . import GUI from . import tracking from . import utils from . import main
6ba78d962f79e27fd6e5458ccb931dac337960aedae308ff4a906db926d9fbbe
Python
145
5
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tflib.vision.dataset import *
86b39bb3a2e44cb0d4ab0b5a634cff3fe688b1070d30fd4c7acdca7566ef66bf
Python
146
6
import sys from ..common.base import serve from .worker import Transfer25Worker, build_parser sys.exit(serve(Transfer25Worker, build_parser()))
123f5af93eecc3a96eaf623bf2d1a6309c7f884b77dd06a2a392778b6997676e
Python
147
6
import modeltest.graph.pretrain as pretrain import modeltest.graph.processing as processing def test(): processing.main() pretrain.main()
34fabc5b06cb5fa710113176076ae81d6f4ae56ce03bc99b41e70f082e55906e
Python
147
2
# _version.py file will automatically be generated by setuptools_scm when publishing a release from ._version import __version__, __version_tuple__
fce339feadf13fa90789212d3304ad136b2654e73fff1f8c1036ba47b51feb78
Python
147
9
from setuptools import setup setup( name='EphysAFM', version='0.0.1', description='Analysis', py_modules=[""], package_dir={'': 'src'} )
601a4d1e93b8d2f8ea608d7d17cf6cd46325f043b01d72ef211538471b3e0623
Python
148
2
from utils.postprocessing.PostProcessing import PostProcessing from utils.postprocessing.SelectLabelsPostprocessor import SelectLabelsPostprocessor
c8c7077e18f7cf44419c5f994ddbe0fe4cc6c629b68e68ea8f390cac86d454ab
Python
148
6
import sys from ..common.base import serve from .worker import WsmRendererWorker, build_parser sys.exit(serve(WsmRendererWorker, build_parser()))
8a4c3444abb9d9eefb23ac346a66e57e56b302d43a427758069d98577bb4376d
Python
149
6
# GENERATED VERSION FILE # TIME: Wed Jul 29 13:01:29 2020 __version__ = '2.3.0rc0+8194b16' short_version = '2.3.0rc0' version_info = (2, 3, "0rc0")
b6db5a2aa0d0c19eb727c5eb0ece7b73f6642d9d4f2af096ea46357dceffd6d2
Python
149
4
from .gratin import Gratin, GratinParameters from .density import Density from .diffusivity import StepsAndDiffusion from .tag_cells import TagCells
c860243c3bd4c1fcea23ee96d1a1ec38a7228bc5c5dc81f1660d36bb68898b66
Python
149
4
from .arcface_models import ArcMarginModel from .arcface_models import ResNet from .arcface_models import IRBlock from .arcface_models import SEBlock
73bce296fa97f6fe84f0a0f0efc2718de00c43e91a0d3b2c8b0181de18c86ba4
Python
150
6
import sys from ..common.base import serve from .worker import Transfer25AVWorker, build_parser sys.exit(serve(Transfer25AVWorker, build_parser()))
6ae06e577c005cdb166fd21149cebe66a0d69a0218422db543ece5d553f54dca
Python
151
5
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tflib.vision.dataset.mnist import *
a17e4e6398481f4f2441fa263a52e2010b886615366ff9efab8b37ef72033c6b
Python
152
8
from abc import ABCMeta, abstractmethod class ContextBase(metaclass = ABCMeta): @property @abstractmethod def set_context(): pass
8b4a56fe147f24e775261db1fadc0bc9b57d86112bf23070b851009ac3125563
Python
154
7
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import logging
02a2274b602808882420e800a8645a5704f185ba9877f2ca997bf264afde082a
Python
155
6
from .Perturb import CWPerturb from .Add import CWAdd from .kNN import CWKNN from .Add_Cluster import CWAddClusters from .Add_Objects import CWAddObjects
096764d19fb862fdb0f020a2d87b3911b1482a298ab565f4bad130c2b2e754dd
Python
155
6
import modeltest.seq_trans.pretrain as pretrain import modeltest.seq_trans.processing as processing def test(): processing.main() pretrain.main()
25413dc830241ce11f0d87575f0fd17c952cc584a7be1156106bbcd0c19a3c7d
Python
156
8
from .perturb import ( remove_edges, add_edges, shuffle_edges, remove_edges_subgraph, add_edges_subgraph, shuffle_edges_subgraph, )
7c354918faf2f13fc835a33f7807bb3078cf43b257b91bf9f289f5d0a4eeb963
Python
158
8
from setuptools import setup, find_packages setup( name='tctx', version='1.0', description='Turtle cortex model', packages=find_packages() )
9474e9ad80131a1edcf111065d63ee4de2095cbe51de5c948c23697073271432
Python
158
11
""" Oaklib ------ """ __version__ = '0.1.0' from oaklib.interfaces import BasicOntologyInterface from oaklib.resource import OntologyResource schemes = {}
0550c5d1c8e02a73d4a34ee89534631e5fb44de7d868900c0890564b87dfa06b
Python
159
12
from .model import MoleculeModel from .mpn import MPN, MPNEncoder __all__ = [ 'MoleculeModel', 'MPN', 'MPNEncoder' ] def Beaf(): return None
4d8a7722e2844653d7f88b0b16c210e9ab8c64bf0ae8bb8d0e99e682071612f8
Python
159
5
from config.config import * from process.dataloader import * from process.augmentation import * from process.embed_gen import * from process.evaluate import *
f90c0f6e6f733ee45f0bfa3e47845c9883331c1127a5fd55372e6cf885d40a2c
Python
159
7
import matplotlib.pyplot as plt from mesh.plot.mpl_viewer import MeshViewer mv = MeshViewer('data/sphere_wall') mv.create_ax() mv.triangular_mesh() mv.show()
2d03c26b229712be545c9747e1ba75e33fb4a84e7f21a62687c7fdfc102a8633
Python
160
8
collect_ignore = [ "InterfaceResidues.py", "Unipartite.py", "show_contacts.py", "focal_blur.py", "data2bfactor.py", "spectrumany.py", ]