sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
21db77b76bb2581f624bb97bef3f7ce623d6b013ff839d6128c7ea91e1a9704c | Python | 179 | 7 | from langchain_classic.schema.cache import __all__
EXPECTED_ALL = ["BaseCache", "RETURN_VAL_TYPE"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
959db75ee4841f217103f1449e4c030a688dad14863afbf40b876934963edb7a | Python | 179 | 9 | import numpy as np
def identity(x):
def f(size):
if size[0]!=size[1] :
print('Not right')
else :
return x*np.eye(size[0])
return f |
bee93601f94144af437e22a086a59ed36a51a16c80850dc224e3615b52c1b598 | Python | 179 | 8 | from .geometric_edge_features import GeometricEdgeFeatures
from .scale_edge_features import ScaleEdgeFeatures
__all__ = [
"GeometricEdgeFeatures",
"ScaleEdgeFeatures"
]
|
19c2621198c6726ebdb7c6fc61c7a73c649544fdef294a39089795f6bad26f17 | Python | 180 | 4 | from pgmpy.parameterization.cpds.linear_gaussian import LinearGaussianCPD
from pgmpy.parameterization.cpds.tabular import TabularCPD
__all__ = ["LinearGaussianCPD", "TabularCPD"]
|
e14cca026cedd9b9ad3b146df71ca62471b60ad24d64fdb32f59a6d73a927071 | Python | 180 | 7 | from langchain_classic.schema.chat_history import __all__
EXPECTED_ALL = ["BaseChatMessageHistory"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
88b06fe594599158b86e58f7f709e2c86d40e7fff416a9c44ff4682a27afd250 | Python | 181 | 3 | anon_data_dir = '/home/sinhah/datasets/anonymous_data'
compl_data_xnat = '/home/sinhah/scan_data/compliant_data'
compl_data_bids = '/media/sinhah/extremessd/open_neuro/toy_dataset'
|
a908d940ccb550cb83eb5cb93b25e737ef513df34b30085442601f532bfb9951 | Python | 181 | 9 | """
OpenFF Force fields
"""
from importlib.metadata import version
from openforcefields.openforcefields import get_forcefield_dirs_paths
__version__ = version("openforcefields")
|
51a9d742f47897e644622ee62f1509bb655aa683fe57b45dc5af9b9fefd7c0c8 | Python | 182 | 5 | """Load question answering with sources chains."""
from langchain_classic.chains.qa_with_sources.loading import load_qa_with_sources_chain
__all__ = ["load_qa_with_sources_chain"]
|
fb75efe4cf80e77a42a19b2cc90d6a512920f1ba35868d6f29ca4955a9d17569 | Python | 182 | 7 | from omicscope import Nebula
class Test(object):
def test_input_nebula(self):
df = Nebula('tests//data//MultipleGroups//omics_file')
assert len(df.groups) == 4
|
b10534161cd0e6658139aa60f97857256529c1751c6decfd9e6e775ed0639de6 | Python | 183 | 7 | """Chains for evaluating ReAct style agents."""
from langchain_classic.evaluation.agents.trajectory_eval_chain import (
TrajectoryEvalChain,
)
__all__ = ["TrajectoryEvalChain"]
|
3a39ad32247e0919d75f4b9ce427f3bc1333de70370fbac60ed1173dfbb7ffc4 | Python | 185 | 7 | from langchain_classic.schema.runnable.fallbacks import __all__
EXPECTED_ALL = ["RunnableWithFallbacks"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
568831c9656effd9e75a655b8e5c1e6afab1a43a5763910134ddea715e5d39cb | Python | 185 | 7 | import omicscope as omics
class Test(object):
def test_input_nebula(self):
df = omics.Nebula('tests//data//MultipleGroups//omics_file')
assert len(df.groups) == 4
|
1a3d32e1813f493faa30863c485472c9aabe9872267c6353c9c8cff0bc80a73a | Python | 188 | 5 | from .arenas_configurations_proto_pb2 import *
from .arena_configuration_proto_pb2 import *
from .items_to_spawn_proto_pb2 import *
from .vector_proto_pb2 import *
from .__init__ import *
|
aa95066f68213d691dd45606ee6424efc55d210b688b527ec708a3c92f8178c5 | Python | 188 | 6 | from .batch import Batch
from .data import Data
from .dataloader import DataLoader, Collater
from .dataset import Dataset
__all__ = ["Batch", "Data", "Dataset", "DataLoader", "Collater"]
|
e4543abcdb8a06de100ed960cdac166f9f65f773c9a330c269993ee507882005 | Python | 188 | 8 | from submiter.network_submiter import NetworkSubmiter
class Submiter(NetworkSubmiter):
def __init__(self, *args, **kwargs):
super(Submiter, self).__init__(*args, **kwargs)
|
edb8b5939191b4c9eee76f88a17cfdd0dd52dd4db31f0c44b670e6d38a60b35f | Python | 189 | 7 | from langchain_classic.schema.document import __all__
EXPECTED_ALL = ["BaseDocumentTransformer", "Document"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
0faa5ccdc7dbbf60e44cacdf03cdc62f531b27721c1f097b5a300b14d2d11cb5 | Python | 190 | 7 | from langchain_classic.schema.runnable.router import __all__
EXPECTED_ALL = ["RouterInput", "RouterRunnable"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
2e80ccb92a6e8237fc4a255f27ed251c8ebf4ca3b6b017de2e821834ed45728e | Python | 190 | 7 | def process_description(app, ctx, lines):
if ctx.command.name == "main":
del lines[:3]
def setup(app):
app.connect("sphinx-click-process-description", process_description)
|
b29432fc258eb8f1bc68b1cf773b297e7b049c1c2fb5bd279da30fda6a78adc4 | Python | 190 | 6 | from distutils.core import setup
from Cython.Build import cythonize
import numpy
setup(ext_modules=cythonize('random_survival_forest_cython.pyx'),
include_dirs=[numpy.get_include()])
|
0b1ccab9683cb4b87317d915543b6e954a33151440486fcc9b52a9ce88b4b3d2 | Python | 191 | 7 | from langchain_classic import docstore
EXPECTED_ALL = ["DocstoreFn", "InMemoryDocstore", "Wikipedia"]
def test_all_imports() -> None:
assert set(docstore.__all__) == set(EXPECTED_ALL)
|
0edbdd191f7e909b752b0550a7d862c862560d990ea9ff5d8c8dcae9c6005468 | Python | 191 | 6 | """Base interfaces for tracing runs."""
from langchain_core.exceptions import TracerException
from langchain_core.tracers.base import BaseTracer
__all__ = ["BaseTracer", "TracerException"]
|
c4c2b2afa0e88dd3920d3926ae6d3b02d46fcf11e64434bac9bbaa4c7c61661f | Python | 191 | 7 | from utils.my_containers import Constructor
dataset_register = Constructor()
from .omics import NewSmilesOmicsDataset, process_data
def get_dataset(name):
return dataset_register[name]
|
f81d79f49fc0d692dd98de862d1df23364bf2a8cc959ac0a68573bbc8db15da5 | Python | 191 | 14 | """Schemas for tracers."""
from __future__ import annotations
from langsmith import RunTree
# Begin V2 API Schemas
Run = RunTree # For backwards compatibility
__all__ = [
"Run",
]
|
4ee36e6f2d37edc52d840b501f283df4b9caaddf2c3fe4210b4ac21b83f2bfc8 | Python | 192 | 6 | from langchain_core.sys_info import print_sys_info
def test_print_sys_info() -> None:
"""Super simple test to that no exceptions are triggered when calling code."""
print_sys_info()
|
13dbf401ed606a9de391cfca3a2a3c6229e0e4d3a202fa6ccd0b45b383372506 | Python | 193 | 5 | # -*- coding: utf-8 -*-
# Define self package variable
__version__ = "0.4.25"
__description__ = 'DNA methylation analysis downstream to Nanopolish for Oxford Nanopore DNA sequencing datasets'
|
5fa643dc3c867dfe1e1d8a9a54e22f8fddd4cc621139812c6f095c52d7e4a3a3 | Python | 193 | 12 | from langchain_classic.load import __all__
EXPECTED_ALL = [
"dumpd",
"dumps",
"load",
"loads",
]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
5df63673f46fb2981ee822d6c4f4e8fa6eea8daa2cd8488abdde61acbebe4893 | Python | 194 | 9 | from .bval_bvec_io import (
encode_nrrd_gradient,
read_bvals,
read_bvecs,
write_bvals,
write_bvecs,
)
from .nhdr_write import write_nhdr
from .nifti_write import write_nifti
|
d0d9bc8c10c35caf19c139e830963ff14ad6c6e75c12ebb6f5c7d01093497b0a | Python | 194 | 11 | import numpy as np
objmask = np.random.randint(0, 1024, size=(1024, 1024))
obc = 0
print(objmask, obc)
print((objmask == obc).shape)
yx = np.argwhere(objmask == obc)
print(yx)
print(yx.shape) |
e195c309e8c130c63a4ba21a6add6f19188828f22a5aed48122dd5295f328c61 | Python | 194 | 10 | # Consumer ##########################
import zmq
IP_ADDR = "tcp://10.42.0.44:6667"
context = zmq.Context()
zmq_socket = context.socket(zmq.PULL)
zmq_socket.connect(IP_ADDR)
zmq_socket.recv()
|
33a1d04683a267bb9f119f89c471fc47d22aa7d6821664211271b1066a0b287e | Python | 195 | 11 | import os
import torch
class DiffusionCommon:
def get_sample_model(self):
if self.ema is None:
return self.eps_model
else:
return self.ema.ema_model |
966e2441417f7393e2b4c071c3efc903230e0dbf9076505c016102d16b8d5526 | Python | 195 | 12 | import pytest
from hbayesdm.models import dd_cs
def test_dd_cs():
_ = dd_cs(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
ddfb2d208984f1065ade2ffea4b75097b9ea8a5ce80abca3825f1cd226af69b8 | Python | 195 | 12 | import pytest
from hbayesdm.models import pst_Q
def test_pst_Q():
_ = pst_Q(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
049d270a0f29797762f9fe00d0a8a0abab46f33dbfcd8316d973263bdb98428c | Python | 196 | 7 | from langchain_classic.prompts.few_shot_with_templates import __all__
EXPECTED_ALL = ["FewShotPromptWithTemplates"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
742b904a4f5a8928d5304922db41d978dbabd9f4ceccb5cd98f69b791b1fb838 | Python | 196 | 6 | from langchain_core.utils.function_calling import (
convert_to_openai_function as format_tool_to_openai_function,
)
# For backwards compatibility
__all__ = ["format_tool_to_openai_function"]
|
24adf804e2835ff56e8ce71c547d807968747c529de9feb4e6699126761d3a64 | Python | 197 | 8 | def getResidueID(residue):
cid = residue.get_parent().get_id()
_, num, ins = residue.get_id()
if(len(ins) == 0):
ins = ' '
return "{}.{}.{}".format(cid, num, ins)
|
b13869c16703c2e489c2aa6858995a5db639d2b43b706d760c2e4556e05c1f16 | Python | 197 | 5 | """
from PhiSNet SE(3)-equivariant prediction of molecular wavefunctions and electronic densities
<https://arxiv.org/abs/2106.02347>
"""
from .exponential_bernstein_radial_basis_functions import * |
3e2d87777d1ecd40cc7e78ef7429cc66b52a3a8a31e8704922095353f4d2bee4 | Python | 198 | 12 | import pytest
from hbayesdm.models import prl_rp
def test_prl_rp():
_ = prl_rp(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
44db0becfaf7718a99be94129214cac9b12dd880aa8576aa1a9b6f2faca6033f | Python | 198 | 12 | import pytest
from hbayesdm.models import dd_exp
def test_dd_exp():
_ = dd_exp(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
9417cec512c0dfccd4c868b893c551a3a159b69f600202aa36fad4107de3f364 | Python | 198 | 12 | import pytest
from hbayesdm.models import gng_m4
def test_gng_m4():
_ = gng_m4(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
9f2f0ca0f9de8d6a920f12cd342dc600648473da672fd0449316f2684de40a05 | Python | 198 | 12 | import pytest
from hbayesdm.models import gng_m3
def test_gng_m3():
_ = gng_m3(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
a8a6c23a5f974f04ff865e98ed6f3a774504823be223536624fa89ea3037b5ee | Python | 198 | 12 | import pytest
from hbayesdm.models import gng_m1
def test_gng_m1():
_ = gng_m1(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
ad8b7861ed0ff38442efb196a41f7c9c3ec459679b49dd9c1b9f388be5e89bf1 | Python | 198 | 12 | import pytest
from hbayesdm.models import gng_m2
def test_gng_m2():
_ = gng_m2(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
c8b3747ec86127db060e6ce13e28fcb14a4238a51e9622c380447d5608df82b1 | Python | 198 | 12 | import pytest
from hbayesdm.models import cgt_cm
def test_cgt_cm():
_ = cgt_cm(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
dd6bf5a181b4fa4b73a2818ffb54b688592268ee3311d4c46be601888c59b31a | Python | 198 | 7 | from langchain_classic.schema.prompt_template import __all__
EXPECTED_ALL = ["BasePromptTemplate", "format_document"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
420c838b57c833fecf8518aca762ee21ab6b89234cca4a0ed3c710ad426ed5f5 | Python | 199 | 6 | # third party packages
import numpy as np
def oneHotEncode(targets, nb_classes):
res = np.eye(nb_classes)[np.array(targets).reshape(-1)]
return res.reshape(list(targets.shape)+[nb_classes])
|
4745c6291969988eac3c983e961734cf277db05bbf10db8091dca2661e6848b8 | Python | 199 | 7 | from langchain_classic.schema.vectorstore import __all__
EXPECTED_ALL = ["VectorStore", "VectorStoreRetriever", "VST"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
1d9daaa4253ab33abc2eaa5d77fa552cee578974a104dbe74ea755848753496e | Python | 201 | 12 | import pytest
from hbayesdm.models import igt_orl
def test_igt_orl():
_ = igt_orl(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
3a9f06893aa586cc7c81a70a8f2abd5db70db159367c1bc88ede082a90ff69f9 | Python | 201 | 12 | import pytest
from hbayesdm.models import ra_noLA
def test_ra_noLA():
_ = ra_noLA(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
41d260bafc715892fe2de1117fc4b22599a3637e369e31079793cc34bd4f942c | Python | 201 | 12 | import pytest
from hbayesdm.models import ra_noRA
def test_ra_noRA():
_ = ra_noRA(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
5a4489e9e5745f1c5a2aee1977a58868e54efa7b64255fce8ca6f2a45cbabced | Python | 201 | 12 | import pytest
from hbayesdm.models import wcs_sql
def test_wcs_sql():
_ = wcs_sql(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
62d6f77a5691887a2887bb10ce02e1924fe5e7ddd02f5b2d09f3cc84486d7b19 | Python | 201 | 12 | import pytest
from hbayesdm.models import ts_par6
def test_ts_par6():
_ = ts_par6(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
929e23d3bdbc8b2b3105154bddd006b76f2e0153ff42f5d1c315a587d86fd473 | Python | 201 | 12 | import pytest
from hbayesdm.models import igt_vpp
def test_igt_vpp():
_ = igt_vpp(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
940b5edb63d61a0be51c14bca74b5adebf7796abc9e439e5abe24e165bba7649 | Python | 201 | 12 | import pytest
from hbayesdm.models import ts_par7
def test_ts_par7():
_ = ts_par7(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
a3cd42d6806087f14e173b5300ca0074052a454c8ffb16ca3db8ce2e35408203 | Python | 201 | 13 | #!/usr/bin/python
import sys
import json
def run(doc):
if 'start' in doc['input']:
sums = 1
else:
sums = doc['input']['sum'] + 1
output = { "output": { "sum": sums } }
return output
|
e18290ce1033a2f420c4d91d6c8fba790a0921198b2aee1a899292634e9e897a | Python | 201 | 12 | import pytest
from hbayesdm.models import cra_exp
def test_cra_exp():
_ = cra_exp(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
ea27c17e1ca46ee358cf4a75232cf2f72e57ac76dc93b30601562eaf2284cbaf | Python | 201 | 12 | import pytest
from hbayesdm.models import ts_par4
def test_ts_par4():
_ = ts_par4(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
ea3a392222e184b7a7e52f7dace60b2f30232ad3d1703f0da6fa2667fbd59eab | Python | 201 | 12 | import pytest
from hbayesdm.models import prl_ewa
def test_prl_ewa():
_ = prl_ewa(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
b09005f2d7b9c315c36a69bb4970453a5ecd8d03158fa9b00c9cca8dd52c09d7 | Python | 202 | 7 | from langchain_classic.schema.agent import __all__
EXPECTED_ALL = ["AgentAction", "AgentActionMessageLog", "AgentFinish"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
0d3e521127dd4d0befdbf3b60c9b9c0ab651c5f4d9dc4265645206fe518b0aa5 | Python | 203 | 11 | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 27 11:21:35 2020
@author: nishe
"""
from cfc_analysis import bandpassSig
from cfc_analysis import find_Hilbert
from cfc_analysis import find_MI_cfc
#%% |
60a342453988ed96bb4e97fcde2bac7981753683bf3b8343230ae6eba0c37bc2 | Python | 203 | 10 | from utils.my_containers import Constructor
network_register = Constructor()
from .wrapper.miga import MIGA
def get_network(cfg):
network = network_register.build_with_cfg(cfg)
return network |
39b1df2c63e3a8d5f5c5f422662f9b78fc663c6d2da56c16fd645c322d72d53a | Python | 204 | 12 | import pytest
from hbayesdm.models import ug_delta
def test_ug_delta():
_ = ug_delta(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
4a82ad5d90094b9ab8c867c5600faf943d90d5073c4a1d3bbfdf0e4dda4967b2 | Python | 204 | 12 | import pytest
from hbayesdm.models import peer_ocu
def test_peer_ocu():
_ = peer_ocu(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
4d6a7a73138d9aa5e9f4e36b8ea10a8af1fc0948f66f8ae24b0742598daca3a2 | Python | 204 | 12 | import pytest
from hbayesdm.models import ug_bayes
def test_ug_bayes():
_ = ug_bayes(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
549d65f338d595f791475595df86f864ee6f9aff5711591898a175d4b599d734 | Python | 204 | 7 | from utils.io import preprocess_data
import numpy as np
PATH = r"H:\learned spectral unmixing\training_processed\ACOUS/ACOUS_train.npz"
spectra, oxy = preprocess_data(PATH, 21)
print(np.shape(spectra))
|
d89529901b68c2abc8b9143fdcaa59790072b27c8f562f683cffeff4a7e29f2d | Python | 204 | 12 | import pytest
from hbayesdm.models import hgf_ibrb
def test_hgf_ibrb():
_ = hgf_ibrb(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
e0ae90a596543a62951d38c8bb87fb65af3e0cf2a8452b614580cc9719b66484 | Python | 204 | 8 | from setuptools import setup
from setuptools import find_packages
setup(
name="edNEGmodel_UQSA",
packages=find_packages(),
package_data={'data': ['initial_values/*.dat']},
version="1.0")
|
97c87ff72fe9505ab6913f2782924fbfddc6d1cb4752fba868a43194dddad21d | Python | 205 | 8 | from langchain_core.runnables.passthrough import (
RunnableAssign,
RunnablePassthrough,
aidentity,
identity,
)
__all__ = ["RunnableAssign", "RunnablePassthrough", "aidentity", "identity"]
|
14e94ed9e12354d626ea21ecfe3b81d50a83331e2dbe62b60c795b6c298aba56 | Python | 206 | 9 | #!/bin/python3
import os
zipfiles = os.listdir()
zipfiles = list(filter(lambda x: x.endswith(".zip"), zipfiles))
for zipfile in zipfiles:
cmd = "unzip %s" % (zipfile)
print(cmd)
os.system(cmd)
|
abe3b3240cd9af97d0f4866b08c5feb0ce2f9718c85d145181f5ae4c25a177d9 | Python | 206 | 7 | from langchain_core.documents import __all__
EXPECTED_ALL = ["Document", "BaseDocumentTransformer", "BaseDocumentCompressor"]
def test_all_imports() -> None:
assert set(__all__) == set(EXPECTED_ALL)
|
02e36176941ed27dd848afe3bf7f86837f70722d48ba0a605faff79ad7548c6b | Python | 207 | 12 | import pytest
from hbayesdm.models import pstRT_ddm
def test_pstRT_ddm():
_ = pstRT_ddm(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
17e6bfb682f6e594387927e143ffaf7ae9f7ff77baed3a4207ed87ace440e32e | Python | 207 | 12 | import pytest
from hbayesdm.models import bart_par4
def test_bart_par4():
_ = bart_par4(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
1a2cecce1ce2b0426516aea34a1f3dea1f1975f3391d9e9016321304ab0d391b | Python | 207 | 11 | from langchain_classic import smith
EXPECTED_ALL = [
"arun_on_dataset",
"run_on_dataset",
"RunEvalConfig",
]
def test_all_imports() -> None:
assert set(smith.__all__) == set(EXPECTED_ALL)
|
4278ab9d314b4d97b6cac769913ce8b1618addaf8047e280eff887ec8d671636 | Python | 207 | 12 | import pytest
from hbayesdm.models import alt_delta
def test_alt_delta():
_ = alt_delta(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
b4e1223fcd2648b6d8b70cea5674b03417663f996ae001aab8d9abd27b887e7a | Python | 207 | 11 | """Serialization and deserialization."""
from langchain_core.load.dump import dumpd, dumps
from langchain_core.load.load import load, loads
__all__ = [
"dumpd",
"dumps",
"load",
"loads",
]
|
bea84f6d234d40d371b6cbd83cd6778e53e5d854b06bce3436d237abceff0ec2 | Python | 207 | 12 | import pytest
from hbayesdm.models import bart_ewmv
def test_bart_ewmv():
_ = bart_ewmv(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
e56d94026c6317eb3f2147db1da2bb15824527736b41a94767020abded1731e9 | Python | 207 | 12 | import pytest
from hbayesdm.models import alt_gamma
def test_alt_gamma():
_ = alt_gamma(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
d2bbcab5d32479c9c7e42a1ad905ba8a7a7809471e3e2eb52f2bab3bf1b7faf6 | Python | 209 | 8 | #!/usr/bin/env python
# coding: utf-8
# Copyright (c) venkatesh-sivaraman.
# Distributed under the terms of the Modified BSD License.
version_info = (0, 10, 5)
__version__ = ".".join(map(str, version_info))
|
a09c26287a82629d25f225c0fc3c9f6709977427dfddf0af7877acc26ae8c004 | Python | 210 | 12 | import pytest
from hbayesdm.models import cra_linear
def test_cra_linear():
_ = cra_linear(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
11f1936b21f8269418ef836cf4a398d195b9273bdd07d2521b22a3aa3d37a77b | Python | 211 | 8 | from langchain_core.utils.input import (
get_bolded_text,
get_color_mapping,
get_colored_text,
print_text,
)
__all__ = ["get_bolded_text", "get_color_mapping", "get_colored_text", "print_text"]
|
a7975fbfc65fc42493728d5505da08ea5178eaf736c696ea87c1102948fca4f5 | Python | 211 | 11 | class BaseError(Exception):
"""
Error class for all local exceptions in this code base
"""
pass
class PredictionResultExistsError(BaseError):
pass
class FileExistsError(BaseError):
pass |
935371fa9dea4c445ea7b294ff2045022010c18bf9fbef40a36d94c69b8a045e | Python | 212 | 6 | from langchain_classic.chains.structured_output.base import (
create_openai_fn_runnable,
create_structured_output_runnable,
)
__all__ = ["create_openai_fn_runnable", "create_structured_output_runnable"]
|
ad75545238a8a13f70fc01bcb011d0bdf5d800a5a311329fca230bad6b554c28 | Python | 212 | 11 | from langchain_core.utils.json_schema import (
_dereference_refs_helper,
_retrieve_ref,
dereference_refs,
)
__all__ = [
"_dereference_refs_helper",
"_retrieve_ref",
"dereference_refs",
]
|
1d6aefdb7a33ab2083524dfab13968cc6e2b8159d3249a58f7a1ff7800535492 | Python | 213 | 12 | import pytest
from hbayesdm.models import ra_prospect
def test_ra_prospect():
_ = ra_prospect(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
82d4d67788227f8fb36d97d9988776b2afce15e842ce01d9e956b01e6dce345d | Python | 213 | 11 | ## Params for dnn pathway v3 - network12
alpha = 0.001
epochs = 50
batch_size = 128
activation = 'elu'
epochs_prime = 0
alpha_prime = 0.01
dense1_prime = 0
prepath_neurons = 0
epochs_prime2 = 0
dense1_dropout = 0
|
bc4b1a86fe269ad0118cf69d3a53dbf4a37426dda33d1141afb069088a3530d5 | Python | 213 | 12 | import HMSA.data
import HMSA.features
import HMSA.models
import HMSA.train
import HMSA.args
import HMSA.constants
import HMSA.hyperparameter_optimization
import HMSA.nn_utils
import HMSA.utils
import HMSA.rdkit
|
e754faf543d71b45a402ecc5a401235c0c6f9903426c8bcdea62b488100a4f7b | Python | 213 | 11 | ## Params for dnn pathway v3 - network8
alpha = 0.001
epochs = 0
batch_size = 128
activation = 'elu'
epochs_prime = 25
alpha_prime = 0.01
dense1_prime = 0
prepath_neurons = 0
epochs_prime2 = 50
dense1_dropout = 0
|
dcac27ffb96526d7f395df0ba262245ff093f11b4bcb310662bfa8656792932d | Python | 214 | 11 | ## Params for dnn pathway v3 - network10
alpha = 0.001
epochs = 50
batch_size = 128
activation = 'elu'
epochs_prime = 25
alpha_prime = 0.01
dense1_prime = 0
prepath_neurons = 0
epochs_prime2 = 0
dense1_dropout = 0
|
208fb3f4888c7c0280fc1d78c107b20ac4229a2c3443744a595e063ef942a8a5 | Python | 215 | 11 | ## Params for dnn pathway v3 - network11
alpha = 0.001
epochs = 50
batch_size = 128
activation = 'elu'
epochs_prime = 25
alpha_prime = 0.01
dense1_prime = 0
prepath_neurons = 0
epochs_prime2 = 20
dense1_dropout = 0
|
3120822090efbea5783b775f85697c0c7b0ecad42e4ab159b8bfce8598df5d8d | Python | 215 | 11 | ## Params for dnn pathway v6 - network2
alpha = 0.001
epochs = 50
batch_size = 128
activation = 'elu'
epochs_prime = 25
alpha_prime = 0.01
dense1_prime = 0
prepath_neurons = 10
epochs_prime2 = 20
dense1_dropout = 0
|
933ded053569b34a33d5864120a159d83316b6f4de581d6c63255c6df13ad6a9 | Python | 215 | 10 | from setuptools import setup, find_packages
setup(
name='Clust3D',
version='1.1',
packages=find_packages(),
author_email="orepap@uoi.gr",
description='Clust3D - 3D Clustering tool'
)
|
a7a21b53033bbdea14a5fc9e014c0454ee764be7a7e54d30b4750e5233563070 | Python | 215 | 10 | __version__ = "0.2.4"
from ._widget import AutocorrelationTool
from . import autocorrelation
from . import ClickLabel
from . import crosscorrelation
from . import functions
__all__ = (
"AutocorrelationTool",
)
|
aebef43607b8e5ea094308c05a767182beb768b70453e8b0da5185040165348c | Python | 215 | 11 | ## Params for dnn pathway v3 - network7
alpha = 0.001
epochs = 50
batch_size = 128
activation = 'elu'
epochs_prime = 25
alpha_prime = 0.01
dense1_prime = 0
prepath_neurons = 0
epochs_prime2 = 0
dense1_dropout = 0.3
|
5193beb0d46770fad296389c6070e38b2e8cec7a7643b8783e360dd9dc8ca91e | Python | 216 | 12 | import pytest
from hbayesdm.models import choiceRT_ddm
def test_choiceRT_ddm():
_ = choiceRT_ddm(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
662e4120f49e15b9c91e3fe89cae4e98ceb915a678f9ee6e7b43d494b1c0b52e | Python | 216 | 12 | import pytest
from hbayesdm.models import dd_cs_single
def test_dd_cs_single():
_ = dd_cs_single(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
995257c83cc1fed1f2c406919332bd63263b981373d1c78e8deefaba99bc9277 | Python | 216 | 11 | ## Params for dnn pathway v3 - network9
alpha = 0.001
epochs = 50
batch_size = 128
activation = 'elu'
epochs_prime = 25
alpha_prime = 0.01
dense1_prime = 0
prepath_neurons = 0
epochs_prime2 = 20
dense1_dropout = 0.3
|
9c50d27546ad5ed86e02d5d0f0108028e75acf01c229563f2d6cbd63fb57f076 | Python | 216 | 12 | import pytest
from hbayesdm.models import task2AFC_sdt
def test_task2AFC_sdt():
_ = task2AFC_sdt(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
b68cf37b97aad07be1ed59b5effebd075636d1bd83619eb680d951383a503444 | Python | 216 | 12 | import pytest
from hbayesdm.models import pstRT_rlddm1
def test_pstRT_rlddm1():
_ = pstRT_rlddm1(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
d7e038991605043d63fe535579af0c3864c2526749765f9e6741c12ce1f40a4c | Python | 216 | 12 | import pytest
from hbayesdm.models import pstRT_rlddm6
def test_pstRT_rlddm6():
_ = pstRT_rlddm6(
data="example", niter=10, nwarmup=5, nchain=1, ncore=1)
if __name__ == '__main__':
pytest.main()
|
9c7a0815d53d8ff4adf663db87204941833212c589a715403dda4df0b9ff53aa | Python | 217 | 5 | from .GCN import GCN, GNN
from .discriminator import Discriminator
from .attention import Attention, NodeAttention, SemanticAttention, LocalAttention
from .fc import FullyConnect, FullyConnect2
from .GCN2 import DGCN
|
292d6a7b450c766433a04496c3af7ac96b50ca0e3f6525e3e2434eb4b7d61655 | Python | 218 | 8 | """A Tracer implementation that records to LangChain endpoint."""
from langchain_core.tracers.langchain import (
LangChainTracer,
wait_for_all_tracers,
)
__all__ = ["LangChainTracer", "wait_for_all_tracers"]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.