sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
2fccd48c81bf62a8c9c4c79e3ce0ff4b79bcb920979eeb02997127edb83a022a
Python
92
7
from ema import ( ExponentialMovingAverage ) __all__ = [ ExponentialMovingAverage ]
03484f9d2edcdbe0d1f13c33e6c01368310ae9c0516a281127956a5ca106c100
Python
93
2
from pycilium.utils.serialize import CiliaAnalysisJsonEncoder # import pycilium.utils.import
5831dacd68f13be9c3033c64049addd6d188355af3a38987dbe420aadcfd636c
Python
93
3
from langchain_core.output_parsers.xml import XMLOutputParser __all__ = ["XMLOutputParser"]
9cb4b3df20ec9680c2adcc2af270198774fc96dfac74807446e25ab45a1131ef
Python
93
5
from django.apps import AppConfig class VisualizeConfig(AppConfig): name = 'visualize'
9c0e719330f9e548eca28a01997b1b432ab95f04bb43e1d1ad9e820fb4984a4f
Python
94
3
from langchain_core.runnables.retry import RunnableRetry, U __all__ = ["RunnableRetry", "U"]
a3f4a3d88054f7c179550aca82ab4467435e6c9cee20d4cf1e8159b2f96e2caa
Python
95
5
from django.apps import AppConfig class ClusteringConfig(AppConfig): name = 'clustering'
0021764d834afc24dfbe674b946e51cb4fe3f43e997e381f43199e29ed410088
Python
96
4
"""Implement a GPT-3 driven browser. Heavily influenced from https://github.com/nat/natbot """
9d3594b1b7c6fc2604e190f4ba8cc9c186c4ae577d5509ab97045f617429cf1f
Python
97
3
from langchain_core.callbacks.file import FileCallbackHandler __all__ = ["FileCallbackHandler"]
e38d05687cfb5a94df421b2b20f4b8e3da94a69a73f666f5669024093a7d3443
Python
97
5
from django.apps import AppConfig class Pl2KilosortConfig(AppConfig): name = 'pl2kilosort'
02754194a5b4f9895e14e38f226669173677bc88ea87120a81c384d1da9817ee
Python
98
3
from langchain_core.load.load import Reviver, load, loads __all__ = ["Reviver", "load", "loads"]
9809c2be2583a6331bd5237f7eab14b2c8cd3b5acf35e4b8d3ccf24f1f900130
Python
98
5
from django.apps import AppConfig class BrainRenderConfig(AppConfig): name = 'brain_render'
9dc038ea5e82745e353a478caf02cd6fcb7455cb1cb85bdf682cab73a6e6143f
Python
98
6
from ._tokenizer import CIFTokenizer, CinDataset from ._model import ( GPT, GPTConfig, )
bb16eb7ddc8f9d9c5f743be6b83af740e98114cc0c2f749f30312600aaa6caf0
Python
99
3
from langchain_core.output_parsers import PydanticOutputParser __all__ = ["PydanticOutputParser"]
48712bac169710ba88d94b780e1f9dca452dede1b07e627ddba80ef8df91b6fd
Python
100
5
from .coordinates import * from .selection import * from .download import * from .density import *
7187e98736d0b6be4ceb45d5c94f66a972a4bfb6ead93208b6b21a8a4413e458
Python
100
5
from utils.my_containers import Register atom_loss_register = Register() from .atom_loss import *
969d02798714c279abc03a3f6c7fc1cfb6fe5a0e2c9027bc52cfea9652f69429
Python
100
3
from langchain_core.load.dump import default, dumpd, dumps __all__ = ["default", "dumpd", "dumps"]
d2a924b64065abbd65eb544d07e62df76122ebe53e57bfd2ad9ae73492be85f8
Python
100
3
# coding: iso-8859-5 # ±¶ÿàáâãäåæçèéêëìíîï <- Cyrillic characters u = "®âðÄ"
3c0a43d9c214dade94679a213a27387c167063a1c1c034106eaf5f6a07aa92a0
Python
101
3
from langchain_core.chat_history import BaseChatMessageHistory __all__ = ["BaseChatMessageHistory"]
6c9f9a6aeb178b7705e66720a61acf77d95ca5883797d536ca353285b86ebdbf
Python
102
3
#from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA # TODO: Implement this!
7c54fa56eef3bd7b726b2926daa33d358c88d13dbe7e42cbd124c25986768e31
Python
102
3
from langchain_core.utils.aiter import NoLock, Tee, py_anext __all__ = ["NoLock", "Tee", "py_anext"]
d6be9febdbdd8594ea67435accb716b234e35e4577a455ae69812e0d41fb2627
Python
102
4
# Don't manually change, let poetry-dynamic-versioning handle it. __version__ = "0.0.0" __all__ = []
ee0207e9e561d542de6b883b3ac8c5193637101c4ded357e64f43ea986939f8b
Python
102
5
import os import sys file_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(file_dir)
792b630699fbd6e58faa180ca18f0fc67d4cd4f8c9f3a37055fe68eedf94b7c2
Python
103
5
import os from pycromanager import Core def test_connect_to_core(launch_mm_headless): mmc = Core()
f7078c8ca5232924dc5a679bdd26f628a6e58fb0b4f904dad52cd4cd131b8f0d
Python
103
3
from langchain_core.callbacks.stdout import StdOutCallbackHandler __all__ = ["StdOutCallbackHandler"]
ac310dd694791b51aec53381681f9e1f03639bf334580d67dfed070c250ac0da
Python
104
2
from .infer_graph_structure import infer_graph_structure from .topological_sort import topological_sort
3b6030e0c544a1a54ca66e89861ed0f4bb264547cf6cc55a1f4f571ba6d8e488
Python
105
3
#from sklearn.discriminant_analysis import QuadraticDiscriminantAnalysis as LDA # TODO: Implement this!
48fc77edc9dd5833d7e1d515aef75c20ab1fac72be8d0685e41a1869cb26e249
Python
105
7
from math import * def myDistFunc(x): y = x/10 + 50*sin(2*pi*x/200) * tanh(x/100) return y
50617561d8b3a75af77e5fc97fd9495c110b6167e035bde621230b06b8c0ed06
Python
105
2
import morgana.DatasetTools.fluorescence.io import morgana.DatasetTools.fluorescence.computefluorescence
7b9ec3ce9d8a116efebe03c1251c028d3603ba76a3485fefded6506bc9f65ba0
Python
105
3
from langchain_classic.tools.retriever import create_retriever_tool __all__ = ["create_retriever_tool"]
cf8b0ccd3037e6a9c07794b92b5f45bbef2bc9260e2039c48187f44a3a10864d
Python
105
3
from langchain_core.tracers.root_listeners import RootListenersTracer __all__ = ["RootListenersTracer"]
de7ebbf359331a5f8ca61c5991a77f1af141814e6bf15bb10f6aba14e719e5f9
Python
105
3
from langchain_core.example_selectors.base import BaseExampleSelector __all__ = ["BaseExampleSelector"]
f3b1f28b133348c8af387289733f635644e5729e5257724d16ad60ac222010dc
Python
105
3
from langchain_core.caches import RETURN_VAL_TYPE, BaseCache __all__ = ["RETURN_VAL_TYPE", "BaseCache"]
50ad1b28ee72a9cd74cd26760b2e0c27c6ecdd38c71d8ebec3b6f90bd84f7d09
Python
106
3
from langchain_core.runnables.fallbacks import RunnableWithFallbacks __all__ = ["RunnableWithFallbacks"]
80086a9b483cd54bc2db47c021b292534ecd39f95a6cda5c612119e2f2c607d6
Python
106
2
from .layers import SpatialDescriptor, StructuralDescriptor, MeshConvolution from .MeshNet import MeshNet
82d937c8ab10541aed5f67ac5b7e3cd0ab4d5d28bb4229be2d775d4053654b6e
Python
106
4
"""Chain that does self ask with search. Heavily borrowed from https://github.com/ofirpress/self-ask """
ab4d966692dd35971759526f5fb54cc96cddfb5a05ff5819b2f98cd676501b97
Python
106
2
from .orbevo.orbevo_wf import EquiformerV2_Eband_Pool from .orbevo.orbevo_dm import EquiformerV2_Eband_DM
7b3210682db417e6f9f91f4028eaa91937ddfe04c11d47de4c4aed93fd2cf98d
Python
107
3
from .train import MolTrain from .predict import MolPredict from .predictor import MOFPredictor, UniMolRepr
7ca27827c8298a3f9b17bc674236e27a8e22e909627e1a8dc38d0504d63bc3ea
Python
108
3
from .matgen import MatGen from .coordgen import CoordGen from .spherenet_light import SphereNetLightDecoder
a01b6c9019eeedcb6e3ff8334ebc31e247beb50b1f0345e3367bc28d554a0473
Python
108
3
from .ema import ExponentialMovingAverage from .utils import create_model from .GVP_diff import GVPTransCond
cd5688f4110d2e5f0ed67ec39efda045f6dcb61924c61d9c23d6d34ac44021e7
Python
108
3
from WeightModel.WeightClass import * from WeightModel.STDP import * from WeightModel.SynapticClass import *
48818b31684c6749a05fbda09b2d0640de52b971f9532aa48e7cac898d5fbd2c
Python
109
7
""" This code is copied and modified from scipy rbf RBFInterpolator """ # TODO # no bias # different scaling
d60ac1ebbc11e82e369c4888fe53740c95082b614f844463639f065010647bed
Python
109
2
from .movies import H5SequenceSet, MovieFileTreeDataset from .statics import FileTreeDataset, StaticImageSet
87cb9c895b6fd3e71c1253d528956d5cfd1c3eb801ac83ec462e2d758a5b796c
Python
110
6
# builtin modules import logging def logOutput(output, logger): for line in output: logger(line)
aba1301b8ca73c850ee1905021d1c84faac8b25a79d1b5b5b07a7a3dbb1e1705
Python
110
5
from .models import * from .utils import * from .train import * from .predict import * from ._version import *
731f4cf1d16d5dcfb59538c7f3cd887c93e77796eef52374b338f39ee89d694c
Python
111
4
from .data_utils import * from .mat_utils import * from .geometric_computing import * from .eval_utils import *
7cc4d233d70c73cdf24f2ae7f37a9939700c641d7b8dec47b561951690cf31a0
Python
111
8
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 11 11:53:40 2020 @author: shni2598 """
1dcc533f84391e0e7434840639468b801c8760c041f8a349460942d95140f5aa
Python
112
3
from pgmpy.parameterization.distributions.nominal import NominalDistribution __all__ = ["NominalDistribution"]
595137d294968aeb2ba469a8f96bb20f88fe16f8d1af9227ab7cac26807da4a1
Python
113
4
from scana.signal import * from scana.sigartist import * from scana.histfit import * from scana.sigproc import *
a1cfdc8c71c158ecd74a4ba743b6a1c017707a1f6d4e422b459e325c139c11e9
Python
113
5
"""Configuration module for BERNN.""" from .training_config import TrainingConfig __all__ = ['TrainingConfig']
a535c4af266b4e9ee3e366b614a3fe75b4e9113e962eab606fa14c5f0a8b7664
Python
114
2
import morgana.ImageTools.fluorescence.computefluorescence import morgana.ImageTools.fluorescence.computeprofiles
71d9033af00422c3b65097aaf35e7676eb7cb683e3114320b2848fe8df71bce7
Python
115
3
from langchain_core.document_loaders import BaseBlobParser, BaseLoader __all__ = ["BaseBlobParser", "BaseLoader"]
cda9a64396fb056e130373f6df4220d885fa8b679430a641bb67356e7217ba15
Python
115
4
from HMSA.hyperparameter_optimization import chemprop_hyperopt if __name__ == '__main__': chemprop_hyperopt()
9673e073274ca1336a188f8501737720beb0490d9ebdf4ada55c05b98bccf4ea
Python
116
2
from .lp_filter_zero_phase import lp_filter_zero_phase from .tikhonov_regularization import tikhonov_regularization
cef4219e1a7d31347ae089826d725d7958fba5fa1f849b848b70d3435171ee05
Python
116
6
import numpy as np def uniform(low,up): def f(size): return np.random.uniform(low,up,size) return f
84d4c2facb95dcdfe2a99ab5cba5afa3d8f43db0d14684ea7cf9d4515d3ef7fd
Python
117
3
from langchain_core.runnables.router import RouterInput, RouterRunnable __all__ = ["RouterInput", "RouterRunnable"]
a6a52405a31210ac30fe78477036b269d891d3ecc29ca4bb8f4b00459f415ff7
Python
117
4
def tolerable(a, b, tolerance): return a == b == 0 or (a + b != 0 and abs(2 * (a - b) / (a + b)) <= tolerance)
c5cd26a3e3683cd2afc09b26dcd84e0c88c774a7de430bf544c5555547d3f318
Python
117
7
# from napari_svetlana import threshold, image_arithmetic # add your tests here... def test_something(): pass
6bce3f7db1677f9e256dfdc789fd2f545b17cb16466ce338e654b8edb345f328
Python
118
3
from bindsnet.environment.environment import Environment, GymEnvironment __all__ = ["Environment", "GymEnvironment"]
e521a98b2cc22b72c92aedf5fd62b26f7a226f5d829c542e8389a0934fd365c1
Python
118
4
import morgana.MLModel.io import morgana.MLModel.overview import morgana.MLModel.predict import morgana.MLModel.train
83937ca35dc7409263ea38728bc090af762155e3a0f5aae23bcb1596188f6778
Python
119
1
# This file is a part of the `allegro` package. Please see LICENSE and README at the root for information on using it.
9bd2cb51e007c24f6790b0384006e4df5020860f9d17b955bc41536983c3da31
Python
119
6
from torchvision.models import * from torchvision.models.detection import * from .zoo import * __version__ = "0.1.1"
b302ca2a9c8e6eb921742503742574bc3a6caee9d94770dc68b198bd28c3194b
Python
119
12
import pytest import os import importlib # -- Feature Loaders def test_get_features(): assert 4 == 4 pass
c43bb97b8e5b256f0fc86685ba5f6d7a791b8d9fff32d7d1d45a2aa6a33e06c0
Python
120
3
from langchain_core.tracers.run_collector import RunCollectorCallbackHandler __all__ = ["RunCollectorCallbackHandler"]
0752e7ba4f1ae611df84661d91c0622f4280a6989e59a32beb27359bb1d88435
Python
122
2
import morgana.DatasetTools.straightmorphology.computestraightmorphology import morgana.DatasetTools.straightmorphology.io
4c521a8864be27066b7a3798cea55d371b025d96fb3c45bd2cad2ce37fddc545
Python
122
3
from langchain_classic.agents.openai_assistant.base import OpenAIAssistantRunnable __all__ = ["OpenAIAssistantRunnable"]
63a9c98da437f9619bbfc4b5538472a52a7e417af2c622733e3ca79f318ff011
Python
122
3
from langchain_core._api.path import as_import_path, get_relative_path __all__ = ["as_import_path", "get_relative_path"]
f5d012aaad333ca1fc77cb50c3cc9ed727766aaaf122419a0ff7f0637a4ccc1b
Python
122
4
from .evaluate import evaluate from .load_data import load_data from .params import set_params from .logreg import LogReg
fe5aed6f9d67a1264d10a9b36e682ff1c456579dddaa2a95212fa35d0718f157
Python
122
3
from langchain_core.documents import BaseDocumentTransformer, Document __all__ = ["BaseDocumentTransformer", "Document"]
f9e16ff855d9e5638abe40ae561393719d58933885937a5f51fde7fe1978e3c1
Python
123
11
from pycromanager import ZMQRemoteMMCoreJ core = ZMQRemoteMMCoreJ() core2 = ZMQRemoteMMCoreJ() del core del core2 pass
fe73e74d20240727a0498018cd37c379aab0c4a60f72fb29b7e796951d590cff
Python
123
6
__version__ = "0.0.1" from ._reader import napari_get_reader from ._writer import napari_get_writer, napari_write_image
29f1580a4729c5b78a97a25fa4d5999a4c51d6cb8772942e6a9226f83bf63e53
Python
124
3
from langchain_core.utils.env import get_from_dict_or_env, get_from_env __all__ = ["get_from_dict_or_env", "get_from_env"]
366270c459f99dc2a55dc52dc600ec31c697a927ebcf6b69072e73c8837569ee
Python
124
3
"""Get sdcflows version.""" import sdcflows print(sdcflows.__version__, end="", file=open("/tmp/.docker-version.txt", "w"))
601523fae92a15cbc9e7094c387aeb1f3400e56e10f4fc54b33442b50ff5aef0
Python
124
2
from .fuse_batchnorm import fuse_batchnorm from .remove_activation import remove_activation, remove_sigmoid, remove_softmax
86a82399ca4209f536801c01be9c304bd1ed048a3ade08b7f8e96dbb91f4387f
Python
124
6
"""Launch the SMdRQA UI: ``python -m SMdRQA.ui``.""" from SMdRQA.ui import launch if __name__ == "__main__": launch()
a7c8441c11fb075f0155d8bd5f25561bbe94c9b43fdc9544b74aa7d09d609302
Python
124
7
from abc import ABC, abstractmethod class FoldModel(ABC): @abstractmethod def predict(self, seq): raise NotImplemented
ef1b982aca59ba847854020a5141dcd74965be3986a008588ecbac41b50d7893
Python
124
3
from langchain_core.prompts import BasePromptTemplate, format_document __all__ = ["BasePromptTemplate", "format_document"]
1535fa1d8a0baa18f4276be0f41d13bc3ad80c7a99d12940accd49ef1bb37da7
Python
125
6
import pandas as pd import matplotlib.pyplot as plt data = pd.read_csv('./data.csv') plt.plot(data[:1000]) plt.show()
1f883d6feeeb0258da14f001a33ff604e82286ab36a01360b7ebd5cfb5a21459
Python
125
6
import numpy as np import pandas as pd url = "https://dataverse.no/api/info/metrics/filedownloads?parentAlias=ntnu"
330d6afea108b5a4d415166fc2696e1485c5cc7c1b0a805a2892c87b0a3b91f1
Python
125
5
# -*- coding: utf-8 -*- # :noTabs=true: from .multicore import MultiCore_HPC_Driver from .slurm import Slurm_HPC_Driver
4f50af67f174fa8a1a65ff9854d8540837fd11c52e81409597cc11714328c1e0
Python
125
5
from .base_rnn import * from .conv_rnn import * from .traj_rnn import * from .transformations import * from .common import *
78327b324fe5e60be929514b5ed5649e005784a9276e41217b5b7ccb1454ab34
Python
125
5
DEFAULT_WINDOW_WIDTH_MS = 200 DEFAULT_TARGET_IP_ADDR = "tcp://10.42.0.44:5558" DEFAULT_SAVE_PATH = "./waves.csv"
dbae04587f699d64e1485a954098bfc927c16ed562195e1de3deab7322fde836
Python
125
3
from langchain_core.vectorstores import VectorStore, VectorStoreRetriever __all__ = ["VectorStore", "VectorStoreRetriever"]
1b73558d2e0ff42292e6f1c1342b1fd8a966cd56a0783a4b7c3b497746032e60
Python
126
5
"""Constitutional AI. The Chain runs self-critique based on the Constitutional AI method proposed by (Bai et al., 2022). """
71a16a0b292f3204fe40608c469c0db31aeb9fe15ea9cbce35fe5f81fa87060e
Python
127
7
# from napari_svetlana import napari_get_writer, napari_write_image # add your tests here... def test_something(): pass
7cf9a3ddebd1bcb8d8991d8445c3dcd431adcb6634bb81fa0866f1f0983fd501
Python
127
4
'''utilities for loading and saving keras models. ''' from .utils import load_model from .utils import save_model_architecture
8b8350d90b8d559e8ee8e9a5cac44c695b63ebf206d2fdba8aa8f82e4a2ab17f
Python
127
5
import sys from pathlib import Path REPO_ROOT = Path(__file__).parent.parent.parent.resolve() sys.path.append(f"{REPO_ROOT}")
abb66da8c9bfb03af21b25c139926d0bfb85921f300c33017d115f90ca10f512
Python
127
5
from cgatReport.Tracker import TrackerSQL class IsoformTracker(TrackerSQL): """Base class for trackers in this report"""
0ebd8d41bbf8e9a638e3030bcf6d408b58e6bf36c884f616e3262fe862e555b2
Python
128
3
from langchain_core.prompts.few_shot_with_templates import FewShotPromptWithTemplates __all__ = ["FewShotPromptWithTemplates"]
4538d24d3a9ae336a7adca72865112935fcda514b003ae3bb7f7999261e77e09
Python
128
5
# -- coding: utf-8 -- # @Time : 2022/10/15 16:04 # @Author : Biao Zhang # @Email : littlebiao@outlook.com # @File : __init__.py
7b4abcc31fbce76261000ad591367dfd7e583d875b3dac92d3da19b371e6ab8a
Python
128
4
import Treepedia.metadataCollector import Treepedia.Greenview2Shp import Treepedia.GreenViewCalc import Treepedia.createPoints
7b7b63ea9f14dd34361a8e81be1985ebf3fe16a6df586c26b5b533425b0b0f83
Python
128
5
# -- coding: utf-8 -- # @Time : 2022/10/18 17:14 # @Author : Biao Zhang # @Email : littlebiao@outlook.com # @File : __init__.py
9728598f4792ace38b95f04b50b55cccc4c60d6f276050ab86246e229241350c
Python
128
5
# -- coding: utf-8 -- # @Time : 2022/10/19 20:43 # @Author : Biao Zhang # @Email : littlebiao@outlook.com # @File : __init__.py
cc1b2d424a3044e881b703316aae11777630138973d19f282eeed079c16c275b
Python
129
4
import mimic3benchmark.mimic3csv import mimic3benchmark.subject import mimic3benchmark.preprocessing import mimic3benchmark.util
055ba458e9287545323d7ebb47c12946f5bd7340aac5a4c3f188e215853c8f97
Python
130
7
# -- coding: utf-8 -- # @Time : 2022/10/15 12:12 # @Author : Biao Zhang # @Email : littlebiao@outlook.com # @File : __init__.py
c84c3721a61447c0ac405c7420850f13e39a49d333464938b8348785426e96fb
Python
130
5
from langchain_core.chat_history import InMemoryChatMessageHistory as ChatMessageHistory __all__ = [ "ChatMessageHistory", ]
511905232012e15f470223d0ba22e08b9986cc175517945f6916102a1c82848d
Python
131
3
from langchain_core.callbacks.streaming_stdout import StreamingStdOutCallbackHandler __all__ = ["StreamingStdOutCallbackHandler"]
99ac14ad2ab97358690fdca3c503f8e8db40e7847091f3c13e29ff3a6df34b24
Python
131
5
# -- coding: utf-8 -- # @Time : 2022/10/15 16:12 # @Author : Biao Zhang # @Email : littlebiao@outlook.com # @File : __init__.py.py
c1de941a34f52eb3860df782448c7639879d66ba11208014871c131d0bd3ce03
Python
131
5
# -- coding: utf-8 -- # @Time : 2022/10/15 17:15 # @Author : Biao Zhang # @Email : littlebiao@outlook.com # @File : __init__.py.py
109197a9a1f0d5caa2b302f63e75a70204c5ea02945298ac4d74f0d6eb042857
Python
132
4
# File: __init__.py # The function extracts the spikes and the markers from a .h5 dataset # authors: Stefano Diomedi # date: 10/2022
e8c038fb34b3da43e4cc5a549fbfe54370f64d8470bb352c4a621cc5c745a229
Python
132
8
from .model import HMSAModel from .dmpnn import DMPNN, DMPNNEncoder __all__ = [ 'HMSAModel', 'DMPNN', 'DMPNNEncoder' ]