sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
36b396200d041a48b3b7eef727959b9dcbd26020a20570101b631c625786f7dd | Python | 133 | 3 | from langchain_core.utils.iter import NoLock, Tee, batch_iterate, tee_peer
__all__ = ["NoLock", "Tee", "batch_iterate", "tee_peer"]
|
239a3769b8f6990b796b2d756b027275c5e10bf85e200a18ee534efb905da7a9 | Python | 135 | 3 | from bindsnet.analysis import pipeline_analysis, plotting, visualization
__all__ = ["plotting", "visualization", "pipeline_analysis"]
|
4388b34979064329c4f93b9eea8ff44ff260aae24cf9683e4d097e88edb911e1 | Python | 136 | 6 | import pycircos.pycircos as pc
import pycircos.tree as pt
Garc = pc.Garc
Gcircle = pc.Gcircle
Tarc = pt.Tarc
Tcircle = pt.Tcircle
|
640fa8f09b6bbd195d5e5a30f376ab5c43d924bebd736abaf9c09c9608bce728 | Python | 136 | 5 | from langchain_core.example_selectors.length_based import (
LengthBasedExampleSelector,
)
__all__ = ["LengthBasedExampleSelector"]
|
327c14c4286eaf45be40ffa3395319e3ada050d943e0786564174cbe098744e9 | Python | 137 | 3 | from langchain_core.vectorstores import VST, VectorStore, VectorStoreRetriever
__all__ = ["VST", "VectorStore", "VectorStoreRetriever"]
|
75b1ff6e5e03f8b486e3231e9081a8305944094598316a5e622fa0c1fec1fddf | Python | 137 | 7 | from .config_handler import YamlHandler
from .metrics import Metrics
from .util import (
pad_1d_tokens,
pad_2d,
pad_coords,
) |
19577107fdc2188862f350b1b7b51d9c094ea1e0ca9d2667e297157ee22ea03e | Python | 138 | 4 | from .iva_g import iva_g
from .iva_l_sos import iva_l_sos
from .helpers_iva import whiten_data
from .consistent_iva import consistent_iva
|
4386289f06a98bb29e050bb70f24b2a1e0d0498ae44807f12bf3f0e9a19fcd9e | Python | 138 | 6 | import shutil
print ("Erasing...")
shutil.rmtree("R:/Temp/Threads3/")
shutil.copyfile('./required_files/Values.csv', './Calibrated.csv') |
7abd2ef0b484168a59d1e74898d23d6c316598326f460526441a0010b4b467cf | Python | 138 | 9 | from django.contrib import admin
from .models import Map
class MapAdmin(admin.ModelAdmin):
pass
admin.site.register(Map, MapAdmin) |
867d76c4001800ba155214e28d37621750063775fa1b4cad8dfca3a79ac589c6 | Python | 138 | 6 | """ARGNet
By scpeiyao scpeiyao@gmail.com
a deep neural network for antibitotic resistance genes identification"""
__version__ = '0.1.0'
|
314d587d52b8bbb786bb40446b28cb279cfd10572e92c17b33260b9382493b77 | Python | 139 | 10 | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 28 18:00:22 2022
@author: gui_d
"""
import os
os.system('cmd /k "perl ..\\bin\\circos"')
|
325c24261bddb6ffe3f467578cdfbd9faba58fccc8653fb8a99e35688aacb7da | Python | 139 | 6 | import shutil
print ("Erasing...")
shutil.rmtree("R:/Temp/Threads16/")
shutil.copyfile('./required_files/Values.csv', './Calibrated.csv') |
3659d78b3866d531b797fa8a348d2a1c9887921f6ada3463b79cc626c83f0420 | Python | 139 | 5 | def is_interactive_env() -> bool:
"""Determine if running within IPython or Jupyter."""
import sys
return hasattr(sys, "ps2")
|
577c4f08a7447f252aad28a9ef792b7c6468e3600a47402cbc3a0f93c1eb99da | Python | 139 | 7 |
import numpy as np
def myDistFunc(x):
y = 1 + np.sign(x / 10 + 50 * np.sin(2 * np.pi * x / 200) * np.tanh(x / 100))
return y
|
98600e6e98e52c74c0926340c645d292ba3deb58cb264d8b467eb8240d185a75 | Python | 139 | 3 | from lips.dataset.airfransDataSet import download_data
directory_name='Dataset'
download_data(root_path=".", directory_name=directory_name) |
a464a39880382fa770c6d215b5c9cb4b00d0b367111373293470b55b5744807f | Python | 139 | 7 | """
Simple access to all tables
"""
from chreyesees.db import schema
from chreyesees.processing import *
from chreyesees.analysis import * |
d8013dfe5def0da869eac53e2b8871a3202e8f5e735d5efa0c6dcc7a0a759318 | Python | 139 | 6 | import shutil
print ("Erasing...")
shutil.rmtree("R:/Temp/Threads10/")
shutil.copyfile('./required_files/Values.csv', './Calibrated.csv') |
d881e0e575104d012810cbad19aebafedcce4ad36c9109c30d774df55cc9092a | Python | 139 | 4 | """Chain that tries to verify assumptions before answering a question.
Heavily borrowed from https://github.com/jagilley/fact-checker
"""
|
0a144f2f9828b1f4ddc74d2627cbda7196e35459440188567b6e4e96f62d1e87 | Python | 140 | 3 | from .modules import GammaLoss, GaussianLoss, PoissonLoss
from .np_functions import corr
from .zero_inflated_losses import ZIGLoss, ZILLoss
|
651b42ecbc28f0bd09da4860ba2d34093d6e5a444253104436b6901f76e8595a | Python | 140 | 5 | import pandas as pd
def dataframe_from_csv(path, header=0, index_col=0):
return pd.read_csv(path, header=header, index_col=index_col)
|
e4b12d041d9e250e26a4a1b70c4f26b580eac1a29e5d690d6db772a0b2f0902e | Python | 140 | 7 | from abc import ABC, abstractmethod
class InverseFoldModel(ABC):
@abstractmethod
def predict(self, pdb_filepath):
raise NotImplemented |
c118ec8dfd5d33e3c8244a44950bf38dea8dcd881380272b680915686eecde57 | Python | 141 | 8 | from django.urls import path
from . import views
app_name = 'psth'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
] |
de9d823e382b61a6604f3210ec990f12b5c2ded394fb22395524513439342d78 | Python | 141 | 3 | from qm9.data.utils import initialize_datasets
from qm9.data.collate import PreprocessQM9
from qm9.data.dataset_class import ProcessedDataset |
57e8ecd87d777977a0433b6490cea3a1cda54660fa5c92648fa9394409c8597f | Python | 143 | 4 | """Chain that interprets a prompt and executes python code to do math.
Heavily borrowed from https://replit.com/@amasad/gptpy?v=1#main.py
"""
|
a5aa07172fc5cfa0667ae32c61c45f67fd2d1f61c2326a7cb1ec3a1f4eb45695 | Python | 143 | 3 | from .tanh_saturation import tanh_saturation
from .common_mode_noise_canceller.common_mode_noise_canceller import common_mode_noise_canceller
|
e01745264ffe28ce4ead2eba20694dc839898a0907bdef74b322db98a54a15a0 | Python | 143 | 5 | from langchain_classic.chains.elasticsearch_database.base import (
ElasticsearchDatabaseChain,
)
__all__ = ["ElasticsearchDatabaseChain"]
|
527b6cebf921d8a0a4d13292fa3b19d1edd02546bdbcb5d8b44c09ac528ed7d0 | Python | 144 | 8 | from django.urls import path
from . import views
app_name = 'mapping'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
] |
fab3cd9a42f6cd250e18901ce8e337334932a7109adbf4c2f8bc99b8fded7196 | Python | 144 | 3 | from .geometric_computing import xyztodat, xyztoda, dattoxyz
from .graphbp import GraphBP
from .features import dist_emb, angle_emb, torsion_emb |
dc9f26afeda2a92c20514b69f8bcb2a6bacdeb58053957aa5a3119d681c59480 | Python | 145 | 8 | from .inherited import (
inheritedFCLayer,
singleInputInheritedFCLayer,
cosSinLayer,
cosLayer,
sinLayer,
PILayer
) |
06ecc2e4eb878f39d693e44ce986c3a0300284eb4c1b022e62a2969a9092be24 | Python | 146 | 9 | from django.contrib import admin
from .models import Trial
class TrialAdmin(admin.ModelAdmin):
pass
admin.site.register(Trial, TrialAdmin) |
24ea89d9a142ae38822583faf59b692ab68d1d4cd01fd1b9ad66909a73b0a519 | Python | 146 | 9 | from django.contrib import admin
from .models import Scene
class SceneAdmin(admin.ModelAdmin):
pass
admin.site.register(Scene, SceneAdmin) |
dee6e550c73038c6be7e8ca1a49446b2b9d666f25c8da3118b9c26238f2cff93 | Python | 146 | 4 | from langchain_classic.agents.output_parsers.self_ask import SelfAskOutputParser
# For backwards compatibility
__all__ = ["SelfAskOutputParser"]
|
9ad8f9fed3efee95c21441a69fab8c6e0b3344ed9d3e5f8599150b215f73d03e | Python | 147 | 4 | # setup.py
from setuptools import setup, find_packages
setup(name='trajectory_reconstruction_tradeoff', version='1.0.0', packages=find_packages()) |
b235f4459eb45934d3d99c3767d2d3928496ec74f21f87d57fe31ca44f1641eb | Python | 147 | 3 | import morgana.DatasetTools.morphology.io
import morgana.DatasetTools.morphology.computemorphology
import morgana.DatasetTools.morphology.overview
|
b46014e0d2e78c7c9fd0429c83a1eb770b734af6f1b0f1ee1605ff25b34e5711 | Python | 147 | 8 | from django.urls import path
from . import views
app_name = 'clustering'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
] |
35ba63803e1c8f8f1295a91bb598e8ba5c600ed4793adbaef18d3d3e4bb5d30a | Python | 148 | 6 | import pytest
@pytest.mark.compile
def test_placeholder() -> None:
"""Used for compiling integration tests without running any real tests."""
|
3cb75074d635d84b51e47b829665829479588a834f26faa4936f9c2bc8299462 | Python | 148 | 8 | from django.urls import path
from . import views
app_name = 'pl2kilosort'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
] |
78afeb1e9f8260df9e886677b02deaf399e028fab2f8d41292a734ba58bec470 | Python | 148 | 5 | from langchain_classic.chains.query_constructor.base import (
load_query_constructor_runnable,
)
__all__ = ["load_query_constructor_runnable"]
|
949c4f712ef6b70a518e649ef097eea67d07c6aea9b3631cfed50304628a51d6 | Python | 148 | 3 | from langchain_core.utils.strings import comma_list, stringify_dict, stringify_value
__all__ = ["comma_list", "stringify_dict", "stringify_value"]
|
9ebf4ab16ef65856c68fbab6c93d1c58abf878f6b41c8a3aea5e72cb7a727940 | Python | 148 | 5 | from .statistics import *
from .relative_entropy import *
from .statespecific import *
from .visualization import *
from .metrics import *
|
3e4da6aed8b05371abd831372e55090009b2f024d6b0f2066015ebf0959549c6 | Python | 149 | 6 | from PeakcallingReport import *
from cgatReport.Tracker import *
class BamSummary(CallingTracker, SingleTableTrackerRows):
table = "bam_stats"
|
92a6d2104f3e1677c47d08921af48e7df821c2d7d0a4e95d51e8d846e80cd389 | Python | 149 | 7 | from setuptools import setup
from setuptools import find_packages
setup(
name="edNEGmodel",
packages=find_packages(),
version="v2.0.0")
|
ccb2b793e8590407d5b32e275620786007d10de40601dcac048a8b746cf706f1 | Python | 149 | 7 | from setuptools import setup
import site
import sys
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
setup(package_data={'sincFold': ['tools/*']})
|
ce2bbb9b9b8e04a82e5f1d50c1b12522a50405d3272d06854d81b0e783798395 | Python | 149 | 3 | from langchain_core.agents import AgentAction, AgentActionMessageLog, AgentFinish
__all__ = ["AgentAction", "AgentActionMessageLog", "AgentFinish"]
|
ee6176f7bc47a8da312b3a15a713b9af6a7ea100d7461fc3414e9df734d91713 | Python | 149 | 8 | from django.urls import path
from . import views
app_name = 'brain_render'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
] |
5d85dd8d74fb26d39e5d8912082e44826e7e8821b9e5dec8bd5bc9db7c80a461 | Python | 150 | 4 | from langchain_core.exceptions import TracerException
from langchain_core.tracers.base import BaseTracer
__all__ = ["BaseTracer", "TracerException"]
|
ac77c418fa1d0f1d6ce5cc44e662ea75851647aa82fe698779da60e41f39ea34 | Python | 150 | 5 | """Keep here for backwards compatibility."""
from langchain_classic.chains.example_generator import generate_example
__all__ = ["generate_example"]
|
b18ea97b2b0c9e0e5a493956f0ff20fda58a240694216182eecb66124192b39a | Python | 151 | 5 | from langchain_classic.chains.openai_tools.extraction import (
create_extraction_chain_pydantic,
)
__all__ = ["create_extraction_chain_pydantic"]
|
b82d3785af5fdd57906e66b0531b3175f14fae4070a406abb19ca6d0fcf26cbc | Python | 151 | 5 | """DDSurfer surface inference for left, right, or both hemispheres."""
from inference.predict import main
if __name__ == '__main__':
main('both')
|
68f72cf672dc21862b428d03d79da8296fd99f8ffb9b5c42a37792ca64b3b858 | Python | 152 | 5 | class HardwareSequences:
def __init__(self):
self.device_names = []
self.property_names = []
self.property_device_names = [] |
d39fd8809010524e70d0faea249d2a1d9aa13c4d4222946a882924c160bb4a93 | Python | 152 | 7 | import os.path
from web.options.options import WORK_OUT_DIR
"""Init work out dir"""
if not os.path.exists(WORK_OUT_DIR):
os.makedirs(WORK_OUT_DIR) |
0ebcc320b179c4fda4822e720901ea2e66e9e2d78616aa846168124f43ea2295 | Python | 153 | 7 | #!/usr/bin/env python3
import sys
for line in open(sys.argv[1]):
ssline = line.strip().split('\t')
if ssline[0] == sys.argv[2]:
print(line.strip())
|
b5b55e24af4f1474207b762f032455bbdf6cc21cf25afb32b7c4c3df8977d1a2 | Python | 153 | 6 | from langchain_core.prompts.prompt import PromptTemplate
# For backwards compatibility.
Prompt = PromptTemplate
__all__ = ["Prompt", "PromptTemplate"]
|
4b727bb2a022fa65f0b29bcaef0c3e7fef97a004c5db78c2386ab25d118a89d2 | Python | 154 | 9 | from django.contrib import admin
from .models import Cluster
class ClusterAdmin(admin.ModelAdmin):
pass
admin.site.register(Cluster, ClusterAdmin) |
9c3188de435b743e6fb6743153bc0f1040acf4536d3032c1b5d662fd479fea5a | Python | 156 | 10 | """Declaring MySQL database
"""
import datajoint as dj
dj.conn()
schema = dj.Schema('colormedulla')
schema_modeling = dj.Schema('colormedulla_modeling') |
8f2490411f5b41f8ed801d9b8bd0a3816c8dcf622964c27b4d82165ca21facee | Python | 157 | 8 | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('ajax', views.display, name='display')
] |
267f8e7a2fcf1257138e0f960ca1ede5bbef86845e6a4e9c8d86dbc797d3a1f1 | Python | 158 | 9 | from django.contrib import admin
from .models import Analysis
class AnalysisAdmin(admin.ModelAdmin):
pass
admin.site.register(Analysis, AnalysisAdmin) |
075864e95373c4ef931f398f8bd914c66da16845909532dd101ed6d186aed256 | Python | 159 | 6 | from langchain_classic.chains.summarize.chain import (
LoadingCallable,
load_summarize_chain,
)
__all__ = ["LoadingCallable", "load_summarize_chain"]
|
25e66f083643005e0d81ca6063428399a55be85189779d1812dc2e14b035e5ac | Python | 159 | 8 | import math
import torch
@torch.jit.script
def ShiftedSoftPlus(x: torch.Tensor) -> torch.Tensor:
return torch.nn.functional.softplus(x) - math.log(2.0)
|
b34c64319e1a12bc8c973f1eb7a20bfe53a4a6b8a8ae46d53e19f3b4aa7e7eb8 | Python | 159 | 7 | # -*- coding: utf-8 -*-
import sys
import os
sys.path.insert(0, os.path.abspath('..'))
from svtyper import classic, statistics, utils, parsers, singlesample
|
298976c40f537fbb9af26b9bb5e1983857e780b5ccaa52139f6360a6a1e04204 | Python | 160 | 9 | #!/usr/bin/env python3
import subprocess as sp
import shlex
import sys
jobid_list = ', '.join(sys.argv[1:])
sp.check_call(shlex.split(f"qdel {jobid_list}"))
|
509d721622a1e264c913b3e0bc68ad0c9b439a22e15b0094c8a35f2dbba924ef | Python | 160 | 13 | #!/usr/bin/env python3
import sys
def main() -> int:
print("Hello World!") # noqa: T201
return 0
if __name__ == "__main__":
sys.exit(main())
|
4b203195e8c4e0db0ae6642ec2aeae8be6c8e0ed860ee2b239ed9ab58fa3b0cb | Python | 161 | 3 | from .perov_5_config_dict import conf as perov_5_conf
from .carbon_24_config_dict import conf as carbon_24_conf
from .mp_20_config_dict import conf as mp_20_conf |
fb831b196914de774a49884d1bb3829393d342d83ffac3db8a470d1f5ddcc0da | Python | 161 | 7 | from langchain_classic.schema.chat import __all__
EXPECTED_ALL = ["ChatSession"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
2d4743a4b4bdc4adcd273d48af1ff145e580910fffb16828d2603c57866cacb8 | Python | 162 | 7 | from langchain_classic.schema.memory import __all__
EXPECTED_ALL = ["BaseMemory"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
71ef06515b70498dcad20a211717a61219b655cfd54ef9900fbe5bbb2c629974 | Python | 162 | 7 | from .preprocessing import *
from .features import *
from .statesinfo import *
from .clusters import *
from .comparison import *
from .dimensionality import *
|
b54dc264a4256a732a90ca0868a566794607ced2ea178763920f4cfccc27f7ed | Python | 162 | 12 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 7 18:01:35 2021
@author: mariano
"""
# env settings
strHome = '.'
strData = 'data/'
|
2c1b4bf0785c681dcaef3f25c2edc0acbc2a425fd061cfb6eae554f9edb17086 | Python | 163 | 7 | from langchain_classic.schema.prompt import __all__
EXPECTED_ALL = ["PromptValue"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
2f15baf4f512ad453fcc627158ba8e15e91baea65a4968330dbdf42cf72d6f2a | Python | 163 | 6 | from .annotations_display import *
from .annotations_io import *
from .dataclass_helpers import *
from .io import *
from .shapes import *
from .transform import *
|
a586d5598d724ed0c57a4d83ab46134e46b898026efca971310ebf92eab06b76 | Python | 165 | 3 | from .load_intan_rhd_format import read_data, get_n_samples_in_data
from .intanutil.read_header import read_header
# from .intanutil.notch_filter import notch_filter |
b58b25de5c37f7531538b22d5d47024cef1a7899e51f34123c96053be1559d22 | Python | 165 | 9 | from langchain_classic.chains.question_answering.chain import (
LoadingCallable,
load_qa_chain,
)
__all__ = [
"LoadingCallable",
"load_qa_chain",
]
|
99ee0f50731c6aafeff1833ce988189aed97f6d3a7102933e7f5dea0a179bf74 | Python | 166 | 7 | from langchain_classic.schema.embeddings import __all__
EXPECTED_ALL = ["Embeddings"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
2488aba858498663c3c57272a11c6145d77121adb90321da516f6d90914570f2 | Python | 168 | 3 | from .distribution_encoders import GammaEncoder, GaussianEncoder
from .firing_rate import FiringRateEncoder
from .zero_inflation_encoders import ZIGEncoder, ZILEncoder
|
89a1a0e35b43e7da6ef4876532bb5a1ed80a6d158f8df448fcc6938a7742659e | Python | 168 | 7 | from langchain_classic.schema.retriever import __all__
EXPECTED_ALL = ["BaseRetriever"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
8a696ab6296912ed00e056a5c9a7f40a82de6e4e8ef111e72c41ba459ee32dd3 | Python | 168 | 6 | from langchain_core.tracers.stdout import (
ConsoleCallbackHandler,
FunctionCallbackHandler,
)
__all__ = ["ConsoleCallbackHandler", "FunctionCallbackHandler"]
|
e2ce40c00a68ffab76a557e81573a0154f6c34d7695430f8e01e2bc8ec09309a | Python | 168 | 5 | """DEPRECATED: Kept for backwards compatibility."""
from langchain_core.utils.formatting import StrictFormatter, formatter
__all__ = ["StrictFormatter", "formatter"]
|
3576d7c6d0556b48988cb4af1b1dd79f166e4d47929a849f6f923f3b6e453665 | Python | 169 | 6 | import torch
def rmsd(x_pred, x, mask, eps=1e-10):
rmsds = (eps + torch.sum((x_pred - x) ** 2, dim=-1)) ** 0.5
return torch.sum(rmsds * mask) / torch.sum(mask) |
6aafc9f4664bd0b6c152f3ffee2f6c102eaf0c25c4c187cc310f0f1b43fafdc9 | Python | 169 | 9 | from torch import nn
ACTIVATION_REGISTRY = {
"relu": nn.ReLU(),
"silu": nn.SiLU(),
"gelu": nn.GELU(),
"tanh": nn.Tanh(),
"sigmoid": nn.Sigmoid(),
}
|
e7f6906f498c745eb71793ce16d2c08aef06cee9cfff4025764334ada7a4024c | Python | 169 | 6 | from . import plotting as pl
from . import distances as ds
from . import io as io
from . import trajectory as tr
from . import opt as opt
from . import downstream as dw
|
316394a2594440725526de5a995b5f514e7c9fbd7c62cc6b00a85012b836d9fe | Python | 170 | 5 | from .painn import PaiNN
from .lightning import PaiNNLightning
from .painn_foundation import PaiNN as PaiNNFoundation
__all__ = [PaiNN, PaiNNLightning, PaiNNFoundation]
|
aada9a6c802fec189f24addc51fbdbaad975175b7232a78d2883fd6c711cc70b | Python | 170 | 4 | from bindsnet.network import monitors, nodes, topology
from bindsnet.network.network import Network, load
__all__ = ["Network", "load", "nodes", "topology", "monitors"]
|
d6f249401b954eef76741808ad7ac25161c65ab5e366266208200c593ae8fb41 | Python | 170 | 9 | from . import rppo
from .rppo import ExperimentConfig, ActorCritic
from .cell import EnvParams
__all__ = [
"ExperimentConfig",
"ActorCritic",
"EnvParams",
]
|
f8daad3184db387cb47f3080ab2a58e6b4f5ea62af4d56ec5fba18ece074280c | Python | 170 | 8 | """
Unit and regression test for the arsenic package.
"""
# Import package, test suite, and other packages as needed
from openff import arsenic
import pytest
import sys
|
42c2b1bafb8dcf1db7de14054bde92077a2c9e7f14e612148c0359a26f021eb6 | Python | 171 | 3 | from .lrp import LayerwiseRelevancePropagator, LRP
from .restructured_lrp import RestructuredLayerwiseRelevancePropagator, \
RestructuredLRP
|
45bf3699218613c459daaf1cc420c8c3a35ff649fb511f62d4a1a2ce7e3a43c3 | Python | 171 | 6 | # -- coding: utf-8 --
# @Time : 2023/5/14 10:05
# @Author : Biao Zhang
# @Email : littlebiao@outlook.com
# @File : __init__.py.py
# @Description: This file is used to ...
|
18b803900c3fb9d18118e88beed57e368917ca73776762d54a67c30fa8de353e | Python | 172 | 4 |
def tolerable(first_point, second_point, tolerance):
if (abs(2*(first_point-second_point)/(first_point+second_point)) <= tolerance): return True
else: return False |
ca4d3ca0b6406237846225d9c887354dba16d5eecb5ef4c4823ce54803bb0430 | Python | 172 | 7 | from langchain_classic.schema.storage import __all__
EXPECTED_ALL = ["BaseStore", "K", "V"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
280d01a305c02c14b4bec4a57c01541e089e16e2acc36fc665b4c7f77c863b1e | Python | 173 | 4 |
def tolerable(first_point, second_point, tolerance):
if (abs(2*(first_point-second_point)/(first_point+second_point)) <= tolerance): return True
else: return False
|
9b2709fb6eeb69caf896bee9db0e74feb20255af8ed1311c9e61a5f751f1be7a | Python | 173 | 8 | from ._tags import OBJECT_TYPES, TAG_REGISTER, all_tags, check_tag_is_valid
__all__ = [
"OBJECT_TYPES",
"TAG_REGISTER",
"all_tags",
"check_tag_is_valid",
]
|
bf9105cf6e63fbd57f732a482ed2d76a13ad2aad800940c67a3f07065ff2b9e2 | Python | 173 | 5 | from .runner import run_genie
from .runner import run_genie_mem
from .runner import run_genie_multi_pheno
__all__ = ['run_genie', 'run_genie_mem', 'run_genie_multi_pheno']
|
89b8628da6327f4ebf4286fd6075eb487cf10f548af08a57ea58a2985599c900 | Python | 174 | 7 | from langchain_classic.schema.exceptions import __all__
EXPECTED_ALL = ["LangChainException"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
97e4954428c14ce5923f05f38f3b05d0692e03113c78e6719f052a0b62d43df3 | Python | 174 | 5 | """Callback Handler streams to stdout on new llm token."""
from langchain_core.callbacks import StreamingStdOutCallbackHandler
__all__ = ["StreamingStdOutCallbackHandler"]
|
9b7bf87a7f08be932de06671d4def6c38d2860c6b2714670de10c03083aab624 | Python | 174 | 5 | from langchain_classic.agents.format_scratchpad.tools import (
format_to_tool_messages as format_to_openai_tool_messages,
)
__all__ = ["format_to_openai_tool_messages"]
|
48b4ab543bb0a39f2899cbe06e6c0973418868566983824e78398bff55921f96 | Python | 175 | 3 | from .model import LayerwiseRelevancePropagator, LRP, \
RestructuredLayerwiseRelevancePropagator, RestructuredLRP
from .utils.strategies import LRPStrategy
|
eadb8e96034bf6157f4d2e6d34833b9bfd396b5fce966ccb9c16597ae402fd04 | Python | 175 | 7 | from langchain_classic.schema.runnable.branch import __all__
EXPECTED_ALL = ["RunnableBranch"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
ee1cc5e45873e10fd063dad9b583b497f5220caad4d93cb887f708341789fd68 | Python | 175 | 4 | import morgana.ImageTools.locoefa.io
import morgana.ImageTools.locoefa.computecoeff
import morgana.ImageTools.locoefa.initialize
import morgana.ImageTools.locoefa.reconstruct
|
4dad06ca85143243810c5c3e59b2b86ae5289a39d07a10f17b2709b342fd2f5d | Python | 176 | 6 | from langchain_core.tracers.evaluation import (
EvaluatorCallbackHandler,
wait_for_all_evaluators,
)
__all__ = ["EvaluatorCallbackHandler", "wait_for_all_evaluators"]
|
bf1c00ac971804c9ce59491e8949743e403dc9bf46e2afedfee102bbb14c4d4a | Python | 177 | 7 | from langchain_classic.prompts.prompt import __all__
EXPECTED_ALL = ["Prompt", "PromptTemplate"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
09deea93bdc8c3fbd31ad312adff9f5a74c8253d33310ce9e13b75f23c9100b7 | Python | 178 | 8 | """All unit tests (lightweight tests)."""
from typing import Any
def assert_all_importable(module: Any) -> None:
for attr in module.__all__:
getattr(module, attr)
|
8d03aebc4e5ab01636d686691678917f443f47f48b3bdf0ba72e6d9db330f6d5 | Python | 178 | 7 | from langchain_classic.schema.runnable.retry import __all__
EXPECTED_ALL = ["RunnableRetry", "U"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.