sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
880289e7fa686c9f03f025f175be6407c39b49625315efce17cacc87d1012ad3 | Python | 83 | 3 | import torch.optim as opt
OPTIMIZER_REGISTRY = {"adam": opt.Adam, "sgd": opt.SGD}
|
9d68eae8b2396fd240c7eb85b75341911207fed7e0b04be1dba63dc3b6b4024a | Python | 83 | 3 | """
This module contains Spitfire's core functionality for chemistry problems.
"""
|
0ba741d3e6e49bd9537d724c84fdbe6ccd8f6794c9f3ed629b1f067a82142ff2 | Python | 84 | 3 | """GluonCV Model Zoo"""
# pylint: disable=wildcard-import
from ..resnetv1b import *
|
3891755ba3c63c09c6e984e7b688e08dce7b3d2bd9a398c0c8395ca622b19ad1 | Python | 84 | 4 | from style_ion import simulate
if __name__ == "__main__":
simulate("read_cai")
|
5a1e6eadb1493d992dc71dd041bd8f85cb62741ddf2c1b2810e4cc48dad43b23 | Python | 84 | 2 | from ._wormneuronsegmentation_py import *
from ._wormneuronsegmentation_c import *
|
5dabdbfeac309edeb4b0416fc411fbef7975d236637cb985d86b468064297740 | Python | 84 | 3 | """R-CNN Estimator implementations"""
from .faster_rcnn import FasterRCNNEstimator
|
9dd0d58b77ea0df2f7b059292b010ee31c74de15a9adee804a930b37f844d9f1 | Python | 84 | 2 | from .gp_models import Approx_GPModel, Exact_GPModel
from .gp_train import gp_train
|
d5198dc703d96050bce77fadae0fe903f07511c8e0d791786f6a1116702370e5 | Python | 84 | 4 | from style_ion import simulate
if __name__ == "__main__":
simulate("read_cao")
|
dc0de550968ad186212829744d9d4cc3eb0ddfcc1adde24942ec6250b3562ff5 | Python | 84 | 5 | import sys
import os
print("Importing main...")
import main
print("Main imported.")
|
f5328359c83ba38f8ac933ff995cf9526901988a2acd5dc6db970b006932a5ba | Python | 84 | 3 | from PysamTestModule_link_pre_489.BuildRead import build_read
all = ["build_read"]
|
f62d5f57f2fdf7922136751c110eb1372df7fc1db64ff84673db9831d6ac1e62 | Python | 84 | 6 | from cvnn import cli
import sys
import logging
from pdb import set_trace
cli.cli()
|
22050aab38b5ad63493aac394de3f4f06c047e8adae8249050308b9bb8823c73 | Python | 85 | 3 | """Mask R-CNN Estimator implementations"""
from .mask_rcnn import MaskRCNNEstimator
|
9e9159cf6eb4f1ba5820dbde1f41ad417e8ce014ab34ec31e7cba571fe4bc9f9 | Python | 85 | 4 | from style_ion import simulate
if __name__ == "__main__":
simulate("write_cai")
|
a2eab1e2d40efea8d2ea7f29f8cf7b9a94fd64a1b303020994472ff68d4c4f28 | Python | 85 | 7 | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 21 23:36:38 2021
@author: adrie
"""
|
c4c8d4cc279c23fb718ce2bf81710823c52bd3b06da03b601633de357e18f396 | Python | 85 | 4 | from style_ion import simulate
if __name__ == "__main__":
simulate("write_cao")
|
fcea7ed9facfddb1ef8a15745133628736cfd5f5a7fa99a39b9fafa533990a62 | Python | 85 | 1 | from _plotly_utils.files import PLOTLY_DIR, ensure_writable_plotly_dir # noqa: F401
|
7c745f8d075b280b58bcddedd3c25528c353392c8541ada2f5a244fccb8ffeee | Python | 86 | 5 |
from .data import *
from .test import *
from .scan import *
from .thumbnails import * |
fa52f7b993e3a215f4301cc8e3a1db0b58a678c3077e04d0c59788440f4c814f | Python | 86 | 7 | """This is Wyrm.
Some words describing the Wyrm package.
"""
__version__ = '1.1.0'
|
02ed0fd67ffd148f0e2baf9d2ecfc54a1fe6e42798a6b72aa97827feeaa53dab | Python | 87 | 2 | from .conf_generator import ConfGenerator
from .mol_standardizer import MolStandardizer |
5f2b75958739269b26a78482893fd8bc582f9837d5b46583fdc4475a772744c3 | Python | 87 | 2 | from .data_utils import preprocess, make_graph
from .graph import construct_gene_graph
|
733541a9904561a0375153d7986f53a4ac93437dbd12d9441f0dec80a3797d9c | Python | 87 | 2 | from __future__ import print_function, division, absolute_import
__version__ = '0.7.4'
|
8bf23c494b3eccac0687abed18134e94f83bc3333babe450537113436d8b0fd5 | Python | 87 | 3 | from PysamTestModule_link_with_rpath.BuildRead import build_read
all = ["build_read"]
|
94bb95c69c043f3812dee6ef75a78e269d997f9d282e81d6949c4afe001c0a19 | Python | 87 | 2 | # flake8: noqa
from . import SyntheticDataset, oscope_tf, qvalue, SyntheticPlotResults
|
9ec47cc7ba6e48ad675c99a11d2178765a2ac0a00cf7555bd180a249ce24aaee | Python | 87 | 3 | import lack
logger_manager = lack.LoggerManager("spaco2", "spaco2-temp-timer-logger")
|
cefe6f9686702f92c555dbeab778d3ba2b9c039ca9fd6624fad9db74296211d0 | Python | 87 | 2 | from .mol_converter import MolConverter
from .similarity_search import SimilaritySearch |
e9869c6cb1d43a0a9d0d36427e6a3b84cca1b0fbee12053cdab785d7a22b3d02 | Python | 87 | 2 | from .environment_types import EnvironmentTypes
from .moieties import get_topk_moieties |
6b69807139f68926f0531434a54e5ee7228f7ea2b8f07af9e6fd7860b6e649f1 | Python | 88 | 6 | from celery import task
@task()
def hello_world(to='world'):
return f'Hello {to}'
|
d65e20457f4f6f10a39ce15ec4215299e32fbb6a2a31a597e24605a2226608c2 | Python | 88 | 2 | from scDGD.classes.data import scDataset
from scDGD.classes.prior import GaussianMixture |
3fdbc82ff5771fdd7585942e2bb584922697cb7519fef3b4de5b74794a7b6131 | Python | 89 | 3 | from __future__ import absolute_import
from .resnet import resnet18, resnet34, resnet50
|
74a1e5f03e159e33c9bd81f5a4e4c642beed6f36008f0b1929039508164699fa | Python | 89 | 2 | from scDGD.functions.data import prepate_data
from scDGD.functions.train import dgd_train |
19dbdd68faf718c2622795df37028c7f4a838b685ab9b165ba4913b75d1488ea | Python | 90 | 2 | __version_vector__ = (3, 6, 6)
__version__ = '.'.join(str(x) for x in __version_vector__)
|
87a8df32ad798b791a6c2ab42769dc23cd1fed3b7ae7476955ea4ac861521ca3 | Python | 90 | 3 | import dec
print 'Preparing mnist data. This could take a while...'
dec.make_mnist_data()
|
b70e16052f2f5509db6d5961f30182b25d44834377a9a9b13fa4772c758e25cb | Python | 90 | 3 | from PysamTestModule_link_without_rpath.BuildRead import build_read
all = ["build_read"]
|
bb8c5bba67166ec5f0ab0fbe73c40783de341eb622bedfcdb0c39fd8f098a603 | Python | 90 | 6 | from ._model import MERFISHVI, SpatialVI
__all__ = [
"SpatialVI",
"MERFISHVI",
]
|
c9d39ba0c8fd6a307f4e3d42af4e7ab32bfca500552b9c2866196bc1ee50bf3c | Python | 90 | 3 | # Author: Aqeel Anwar(ICSRL)
# Created: 7/30/2020, 7:43 AM
# Email: aqeel.anwar@gatech.edu |
efa41cbbd193c90c4692f41ef27ca3669ad00bb332cf9806571577ea2fcfe5e8 | Python | 90 | 2 | from .conf_ensemble_dataset import ConfEnsembleDataset
from .pyg_dataset import PyGDataset |
fb85ead0f8e1b4fc412853eee1013a12a8b88f27535afbc09a15adc1ca2323b0 | Python | 90 | 4 | from .data import *
from .measures import *
from .tools import *
from .transforms import * |
fdbb1ff6f2a1476dc6e38b045b43299a0dccb66ecf0b3204953821c581a3d23d | Python | 90 | 6 | class PBFException(Exception):
pass
class PBFNotImplemented(PBFException):
pass
|
0dd1ca2216990b704405b1d0e2387432e2f7d0288eb5147784bbd8ebffac359a | Python | 91 | 5 | from flask import Flask
app = Flask(__name__)
from js_example import views # noqa: F401
|
25e998f70f7066785f8d2a71d1ca70b1c46ffd6c1231b13803d11b3a7876f10d | Python | 91 | 3 | __version_vector__ = (3, 6, 7)
__version__ = '.'.join(str(x) for x in __version_vector__)
|
3d08d78d25bfb37181762f4abb9244c4ead0a730908e6b322a168068afa5436c | Python | 91 | 4 | __version__ = '1.6.3'
from .Utils import *
from .Evaluation import *
from .Model import *
|
443521681d2cd04ab7704abfaf3f53cd88eff2f5c6d94a3b86eea66e7c115eea | Python | 92 | 5 | """
Unit tests for ethoscope_node.
Unit tests test individual components in isolation.
"""
|
8d14a45176f3de29572a54efc61f7dea8da77e5b134864ef4b85490639091f4f | Python | 92 | 5 | USE_GT = False
USE_IMAGES = True
print(f'USE_GT: {USE_GT}')
print(f'Images: {USE_IMAGES}')
|
abe1cca0a0a1acc1a95d9b2e00685af008b9de8561cce3661de740e1d7175736 | Python | 92 | 1 | from .core import Domain, InternalDomain, IrreversibleDomain, ComposedDomain, KeyValueDomain |
69cc5b77d61e19e932dc424daaabf2e7b036dbf58cab8c77eb7bed40a64ae5b8 | Python | 93 | 3 | from .tools import clustering
from .tools.microenv import cci
from .tools.label import label
|
c90ab3f63cc9d72af743b015f92c7e32c19eec5228dcf2401f563b42d198719f | Python | 93 | 2 | from .Indoor3DSemSegLoader import Indoor3DSemSeg
from .ModelNet40Loader import ModelNet40Cls
|
20e92d4766fe89076f321e5a18b962978587b030013ed0ed6eb1faff138a8918 | Python | 94 | 2 | from . import interpolation_nn
from .deep_interpolation import DataSampler, DeepInterpolation
|
49e16a11442f8ad72546b8dfba6fc46a154e9a5d1902491ba13158c8b5923aac | Python | 94 | 3 | import dec
print 'Preparing reuters data. This could take a while...'
dec.make_reuters_data()
|
72c40e6e6abfe10a1380b4e8fd09669d09d85bcf5292388c3775a7f73f37817b | Python | 94 | 4 | def appendtofile(filename, text):
f = open(filename, "a+")
f.write(text)
f.close() |
98f0bba3d759b4d0d087a94bd5b8e2a6fceecc20ae540886e524aec2ba6e4d9f | Python | 94 | 2 | from .conf_ensemble import ConfEnsemble
from .conf_ensemble_library import ConfEnsembleLibrary |
10a52058e32aff50df59bf8e6805afe2b34b77b822f756a275e7cc8c7328c732 | Python | 95 | 4 | """Worker implementation."""
from .worker import WorkController
__all__ = ('WorkController',)
|
79813c87966a441a4d7237f96b93ed9b7a2787f11cbb9106884dc5c969b56930 | Python | 95 | 7 | demonstrator = {
'net': 7,
'ipair': 0,
'istim': 1,
'isi': 500,
'templ': 0
} |
c308660c9bf24083ac82d0cb29c395cc6c824d2a17f04e92e9ff4fb67021dba4 | Python | 95 | 2 | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
aaf918efffa6e608b7b7495a8e79902893d8991d27126dcdd1bc3aeb70ca6086 | Python | 96 | 2 | from tfep.analysis.bootstrap import bootstrap
from tfep.analysis.estimator import fep_estimator
|
bba434016748e05c8130c135b4f5117a05fb38120406abc14282a7f86b182ed8 | Python | 96 | 3 | from ._datasets._datasets import visium_sge, xenium_sge
__all__ = ["visium_sge", "xenium_sge"]
|
7f568ab9be1bb0ce5446260b7a08de148229c1c5a5dab3003efafd36888844cf | Python | 97 | 6 | '''Distributed computation package
This package is a part of BdPy.
'''
from .distcomp import *
|
a01fc2a05599ffde03d56d9a6de1f3ffaa6b39ac6ead63d4a751c5f6771b75a5 | Python | 97 | 6 | __author__ = 'quentin'
from . import input
from . import interfaces
from .input import cameras
|
cb9706ec7f931e31fb672288186041d91ac07473d33b1885e80ffab7a6a0c87f | Python | 97 | 5 | """
.. include:: ../README.md
"""
from __future__ import annotations
__all__ = ['froc', 'count']
|
399c27b9362ff83d311f09287494ad536e432c1f3e0886cdc999cf3f97de2d73 | Python | 98 | 7 | import sys
sys.path.append("src")
from model.SLD import TDNODE
model_dict = {"TDNODE": TDNODE}
|
62ed8c6074852fa02fd66912f7e125ec87f2f9442768b5e2014f71600e7c8ca3 | Python | 99 | 3 | from .kmeans import kmeans
from .louvain import louvain
from .annotate import annotate_interactive
|
c7687275a36d886164668fff3789e4c90bed848f46b5d5daa834b5d6b02f641d | Python | 99 | 3 | # pylint: disable=missing-module-docstring
from .kitti_dataset import *
from .kitti_utils import *
|
1c619e448c2a5224ebe872bb5e9508c8544ce14226c7c9d4ae0c09e6fd4ed337 | Python | 100 | 6 | from setuptools import find_packages, setup
setup(
name="src",
packages=find_packages(),
)
|
777696fc457fb7ef9bee1aed37a14ff2e7aa1e4d4928062b8b041ab27272100f | Python | 100 | 2 | """Image classification estimator"""
from .image_classification import ImageClassificationEstimator
|
bdacf2bab60d5bddf2543f499dc9acfc3e848f7f8f27a9ee04335767ae1871eb | Python | 100 | 1 | """ This module is modified from StyleGAN2-ada (https://github.com/NVlabs/stylegan2-ada-pytorch)"""
|
35f12c881b6aecc94ecd9ff16c03e1d13c1ccad9adcfae64ecc7be277f8d47a8 | Python | 101 | 5 | """GluonCV-Torch."""
from . import data
from . import model_zoo
from . import nn
from . import utils
|
e8d3d3f8416834d02c51a7b6c63a6f655ebb71c4ae5d81331986147cac8afa3c | Python | 101 | 4 | """
Tensorflow loss functions that accept masked true values (with np.nan)
"""
from .losses import *
|
789f80d67abce77fce75ff4a4f7d8e0dcd51e7fc48732f44684fd9822b5b2934 | Python | 102 | 3 | from .external import lack
logger_manager = lack.LoggerManager("spateo", "spateo-temp-timer-logger")
|
7efac980e90cd2095482845735025972b13bb285b536bb67db8eab49f137bf14 | Python | 102 | 2 | from pyrosm.data import get_data, get_path # drop get_path in the future
from pyrosm.pyrosm import OSM |
ad53cf633359c87c7c2fa763ed33c8a8c79a4d8c34946cc098a5ae5c80991fab | Python | 102 | 6 | from setuptools import find_packages, setup
setup(
name="stack",
packages=find_packages(),
)
|
f8a7957549b90f438d69f36d11e7a3717d5d8cf9efe6c6a495f1e70c40d76d5d | Python | 102 | 5 | """
Test fixtures for ethoscope_node.
This module contains reusable test fixtures and utilities.
"""
|
ff32ebf85ef8791fc07177ffe2dad6020fad34a4a57831d37a8bd8531f6e6707 | Python | 102 | 4 | from task_app import create_app
flask_app = create_app()
celery_app = flask_app.extensions["celery"]
|
001ca9aca268b4daa292abe020ef304c45b8ed279ffdc96377c1108c7cb3a8fc | Python | 103 | 5 | from django.db import models
class Widget(models.Model):
name = models.CharField(max_length=140)
|
0b9acabc9eff52c26f2674cba107f91cc6441b955a1bf65369859b2cadf8ef0a | Python | 103 | 4 | from style_ion import simulate
if __name__ == "__main__":
simulate("write_eca", lambda _: 1124.0)
|
2675167331e8cbf772503256f00ba9f2cb68147c37b89aca2bc5b855e8088e75 | Python | 103 | 5 | from setuptools import find_packages, setup
setup(name='src',
packages=find_packages(),
)
|
4bf812072bc62957fadc42f3eb2920de20fe04cdd640be69a53f89975f86a889 | Python | 103 | 3 | """Quantized versions of GluonCV models."""
# pylint: disable=wildcard-import
from .quantized import *
|
a102314e2eb678e5c5d9fb59537018f756871865af5085dd9873f3f0d5b3a779 | Python | 103 | 2 | from __future__ import print_function, division, absolute_import
from .voc import Voc2007Classification |
fd7575aef40eb696a403b9f50f4d19d2c10d1d08140b815043ec2cc8d971c9f3 | Python | 103 | 2 | __author__ = "quentin"
from . import actions, channel_maps, composed_stimulator, stimulators, triggers
|
fdd69e9f3d483b18fb7de456cd4e2fbf74b1fdf792d794bbd54031f6c9504563 | Python | 103 | 7 | from celery import Celery
app = Celery(
'myapp',
broker='redis://',
backend='redis://',
)
|
0c3bcbf253d155c9d61daa85c46dc7187ce0e9e743875dbd8bb4cd11b07d5f9f | Python | 104 | 3 | """Dynamics layers for continuous normalizing flows."""
from tfep.nn.dynamics.egnn import EGNNDynamics
|
42722083156af9f3eb82e3a88403f4191b9dfcb5f9e1c3432e79f02827b0ccf1 | Python | 104 | 8 | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
|
501f12aeb1664abff666ad1040856d581641e4448a075bc78eaea9ebb4ca3789 | Python | 104 | 2 | from .accumulators import GradientAccumulateOptimizer
from .accumulators import GradientAccumulateModel
|
06ff359eb25b6b75cb610735e8188067807f64c6b0dc8c68e692fc3b0d882e96 | Python | 106 | 4 | from .resnet import *
from .kell2018 import *
from . import custom_modules
from .spectemp_filts import *
|
cf669faa48683f375915b9ba196dfc9dec103cad857c05d64ec0d5a38219003c | Python | 106 | 3 | __version__ = "0.2.0"
from .colorization import colorize, colorize_mutiple_runs, colorize_mutiple_slices
|
efce21cdd2806f0e76f89079e681ea4e7adfc7769fcaecaeeef4a135550e00e2 | Python | 106 | 5 | from angorapy.tasks.envs.dexterity.mujoco_model.externals.objects import Block
__all__ = [
'Block',
] |
748cead394f6292f45e859ba7752b3c008114a0a56ba2bf7f73d8337dbd2bf5d | Python | 108 | 7 | from sys import argv
from msp import MSP
msp = MSP()
msp.file = __file__
msp.seed = int(argv[1])
msp.run()
|
1024f576300c060c6891cd9de50d32112de54ce136a70d257cb05ba00e4a095e | Python | 109 | 3 | from .atomistic_nn import AtomisticNN
from .schnet import AtomicSchNet
from .dimenet_pp import AtomicDimeNet
|
149a78a311fc11edc879bb7dd7f36ef045a5251bb87ace42205f5a27e8829acc | Python | 109 | 4 | # -*- coding: utf-8 -*-
# @Author : Yue Liu
# @Email : yueliu19990731@163.com
# @Time : 2022/9/21 0:29
|
7ee8b442342646b1116fbd461ab6a43671280359a13539c5a8b9fe9046d0b25a | Python | 109 | 5 | """
Functional tests for ethoscope_node.
Functional tests test end-to-end workflows and user scenarios.
"""
|
8bcc03c0876a4d35228ca0794e32e9766011220e28fb4d078fe82f94dbd6299e | Python | 109 | 7 | import pytest
class SecurityCase:
def setup_method(self):
pytest.importorskip('cryptography')
|
a9eb6a923e5da75b58adfb6d6dd9ee437a5293302af25dc9fa9cccec0cc09506 | Python | 109 | 4 | from pathlib import Path
DEFAULT_PROMPTSOURCE_CACHE_HOME = str(Path("~/.cache/promptsource").expanduser())
|
df9025acf784df9f144538dbfc01c72e6cbd26eee82029a037c2a1d17c6c41f3 | Python | 109 | 6 | from celery.beat import Scheduler
class mScheduler(Scheduler):
def tick(self):
raise Exception
|
ea0e6a0178986772b737690c79fa30574eebcf7628c36fdcb25c1403682e05ce | Python | 109 | 5 | """Spatialtemporal modeling of spatial transcriptomics
"""
from .interactive import *
from .static import *
|
ef1db2b5154e2b2d09b40293f3bb539cc07417f3eecc567dbc83eaca64972a80 | Python | 109 | 6 | from __future__ import annotations
from .cli_froc_analysis import run
if __name__ == '__main__':
run()
|
06350a7beb4e144405d21f5fe8a12fad84e2b27ecc2d6b086de51295c96ea499 | Python | 110 | 5 | """
Test package for ethoscope_node.
This package contains all tests for the node package functionality.
"""
|
2b742617d483cf9480982da77fc035a58ce75e7422211749f275907af41ae71d | Python | 110 | 7 | __author__ = 'quentin'
from . import io
from . import img_proc
from . import debug
from . import description |
d4116e7f967723f69ca7d84368c4b4f024d5c47ea25680d3028565e15532abc6 | Python | 111 | 2 | from .electronic_states import electronic_states
from .orbitals import IRREPS_ORBITALS, NUM_ORBITALS, ORBITALS
|
11b866c52ed899c6d8d1c41c5f36ee22c6cdff4ce1971f79ba17c372f84a5929 | Python | 112 | 4 | from .pycaffe import Net, SGDSolver
from .classifier import Classifier
from .detector import Detector
import io
|
7c3d4074dcedf0c4738417b45f0f0a406ee8df863644c7cab6b57338793008b3 | Python | 112 | 1 | print('import IPython.display; from bisweb_viewer import Viewer; v=Viewer(9001); eval(await v.createViewer())')
|
957273bc1704b4bab02f9f8f2f9423bc16b5bd77a0e7efae061df6573b77bec1 | Python | 112 | 3 | """Alpha pose for real time human pose estimation"""
# pylint: disable=wildcard-import
from .fast_pose import *
|
ca5a3caaa06156a2014dfad37e379348f76ecf0adb6f66ff89c22b17bab0727f | Python | 112 | 4 | # read version from installed package
from importlib.metadata import version
__version__ = version("organage")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.