sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
658ee4ddf0f6c38b7017a76dfd05da554c1f708645d4e270461f140322043852 | Python | 665 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import OpenSearchVectorSearch
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opti... |
82ca2d2f36ee2a7c1eaae2a65b96c07a89cbba81ea39bf8c69dc4aa9133e9e5c | Python | 665 | 31 | # Copyright (c) 2021, David Williams, Reza Sameni
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import numpy as np
import scipy.linalg as la
def NSCA(x,I,J):
B = np.cov(x[:,I])
C = np.cov(x[:,J])
... |
8ff19351eccd6b85e7f2ae608e22877b4efc2ecf800187240b8638282c5c204f | Python | 665 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import DatabricksVectorSearch
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opti... |
997ea4dd5fcc0bd0eafc337fd7565ff441b1f4e13847472ca1959557d6692953 | Python | 665 | 17 | from patato.core.image_structures.reconstruction_image import Reconstruction
from patato.unmixing.unmixer import SpectralUnmixer, SO2Calculator
def linear_unmixing(spectra, wavelengths):
r = Reconstruction(spectra, wavelengths,
field_of_view=(1, 1, 1)) # field of view is the width of the ... |
d44cf336349a669357abdea90ee39ec8e9497f996795fa76037ac490e89e1a8b | Python | 665 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import DocArrayInMemorySearch
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opti... |
f45d657600272d65c2f17cba0a4ebc38fcbe9049ecdfe7dd4f8d0c14b99662be | Python | 665 | 27 | from langchain_core.runnables.config import (
EmptyDict,
RunnableConfig,
acall_func_with_variable_args,
call_func_with_variable_args,
ensure_config,
get_async_callback_manager_for_config,
get_callback_manager_for_config,
get_config_list,
get_executor_for_config,
merge_configs,
... |
76e04f4c453d85a03f96cece5e36d498f8d450b5921ecd1c9b85616527b2e857 | Python | 666 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.memory.motorhead_memory import MotorheadMemory
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling ... |
7e378c2181168f34a7f57281e3fd0d8424fd3b63758aa9611d03ea4f1edde3f7 | Python | 666 | 14 | """
This package contains all tools that are useful for training system identification models
as well as things that can be applied to neural network training in general.
This includes:
- context_managers: managing device state and eval state
- cyclers: objects for cycling through the data
- early_stopping: contr... |
8f64b06b56d6c6f7216a7858cbcaa031241caf0903dca6d4b1cfbfb515b99c37 | Python | 666 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores.docarray.base import DocArrayIndex
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
928e0f9990085cd21b70100383678ef8b754aa02b3d07da3cf475730c88b6ee4 | Python | 666 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.human import HumanInputChatModel
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling op... |
b09bf7175772309cd9c9a9b4571894344d0ce0882917313d402e4cc1517a38b0 | Python | 666 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GoogleCloudTextToSpeechTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling option... |
c029e3a0d0e466f4559077dd004feeba2321326a28f1b72eec6d4d1c62fe75e2 | Python | 666 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import AzureCogsFormRecognizerTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling option... |
21ec3e83af393e08e53b0dd6ba1f6e91558913afd3a67a6b362d971420f642cb | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import TencentCOSFileLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling op... |
32b7ae832bb1bc73e65baac2d360f6ddb83f341723cc735d12c02e809d790644 | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import SlackDirectoryLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling op... |
385b52a3fd2687b07dbb9d9ccc5cd479e5e13fcdd32ceabc8e49a8d6c23bcbc2 | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import HuggingFaceHubEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opti... |
48b3ac9cf1341cdc9c2e993a8758da8ec49b9cab3efa8d82dbddcdc1823f69d2 | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import FileSystemBlobLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling op... |
58c50c28e232293b33433c6d65a4cdf7013e08a9fb35e7de6d6d67c3e086bc99 | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import RemoteLangChainRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opti... |
63311a89a606e6ed823c516c1eeb3005e0aa5dc3e31fbe7445ed676a17287315 | Python | 667 | 23 | """Contains tests for the Conv2D-layer LRP implementations"""
import numpy as np
from tensorflow.keras import Model
from tensorflow.keras.layers import Reshape, Input
from explainability.layers import ReshapeLRP
def test_reshape_lrp():
input = Input((4,4))
layer = Reshape((2, 2, 2, 2))(input)
model = M... |
9f47b44e910a34893f679513e9362872ad4260f4d8dba759a07360abd37332ea | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.gmail.toolkit import GmailToolkit
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
c1a4af09d262fa4c4c6aa09f2ad9e1e00f33b80332c492a1f3e60a71ab2c84c6 | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.steam.toolkit import SteamToolkit
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
cfef92016bfa5e13f43aebc1571ac5c31e0323bd43d2e07323a3a97a82cf882d | Python | 667 | 25 | """Google Places API Toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import GooglePlacesTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warning... |
ec043ec6458199e8cdd7c6fc9d8f8fcc7ce67e9c96c46895f52c58db855cc267 | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import ModernTreasuryLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling op... |
fb19fbef86e6b60ded472a8f3e3f5685e56f35efb14a9e6d22c8065df5ebf081 | Python | 667 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.slack.toolkit import SlackToolkit
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
445bcb653bee14006f79f0cf6c6ab1fe80d570204200f31d004ab5b416845d08 | Python | 668 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.redis import RedisTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
5afdc320183893df8d2b22368e8853477933f15433da4d890771a47afcf0eb62 | Python | 668 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.azure_openai import AzureChatOpenAI
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
ca7695ab2c6887b689c43392cd504cc329c77998e18e47743dd59587fa16f8be | Python | 668 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.eleven_labs.models import ElevenLabsModel
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
e5c35d019ac76610abae3b7b29db4f8097d773faddfe28af265366fba85ce6e5 | Python | 668 | 27 | import numpy as np
from pycromanager import multi_d_acquisition_events, JavaBackendAcquisition
def external_trigger_fn(event):
# TODO: send signal to external device here
return event
with JavaBackendAcquisition(
directory="/Users/henrypinkard/megllandump",
name="tcz_acq",
post_camera_hook_fn=e... |
3d0fd9dfee2a965f417c1a2a4e211b47af5a875b6c4e2c9b185bb99f4db7c12b | Python | 669 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.sql.base import create_sql_agent
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
b211063dd6e8b6b299b3043248e8825c1e377c21ffff917cda98720dd5b5d6b5 | Python | 669 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers.databerry import DataberryRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling ... |
e49f8ff2b30ea8c4e72f2eed988cefc7f7bcee4a47d73fd8bd1347770b5e582e | Python | 669 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders.base_o365 import O365BaseLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
0167e5b78390b2e088465c7052bd44e0bcaeb7773f3ab352f3c90f5a51e4282b | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredXMLLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
0bda86b4a40eb91692dd9b894d84cacd7aed59991519f325ed189d5c7ce4cec4 | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredRTFLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
2ee98d6ab5b3e64143eb328b06f5458d29d5d42915fee766e55df5f9cb2f8871 | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredRSTLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
41dc17531cc548f0bdb9289dcd141e74191e932466b1e8930875f671a22fc91f | Python | 670 | 20 | #TO BE UPDATED
from NeuronModel.NeuronClass import neuronClass
class fire(neuronClass) :
parameters = {'save': True, 'spike': True, 'g' : 0.1, 'kappa' : None}
def __init__(self,**kwargs):
neuronClass.__init__(self,**kwargs)
neuronClass.subclass(self,fire.parameters,**kwargs)
def iterate(s... |
47ac0b3b68a5739c69b16d0ee0ba61f6c2aa9c3560bcf18960bb15afdc8c2b09 | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import NotionDirectoryLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
4e91979bf128ab7763482660a3107318630455979a04adebaead8b15a20b7685 | Python | 670 | 17 | from pathlib import Path
path_to_here = Path(__file__).resolve().parent
path_to_root = path_to_here.parent
path_to_data = path_to_root.joinpath("data")
path_to_resources = path_to_root.joinpath("resources")
path_to_images = path_to_root.joinpath("images")
path_to_plates = path_to_images.joinpath("plates")
path_to_lea... |
5c70df19276e03548ea306e52f35a32fafb5526441624f3da482656fc192aa1e | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredODTLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
6737a9fde6d192becc26996e26b9564787d8b0cddc4505333e06eee4f45ed15c | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import QianfanEmbeddingsEndpoint
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opt... |
798138a53c18be98610afc1ef2b277d29577d04059d8ed695d5420660fc797d8 | Python | 670 | 13 | """
Classes to define the optimization problem for EPI MRI Distortion Correction.
Files:
- `EPIMRIDistortionCorrection`: The EPI-MRI distortion correction problem, including image models and regularization.
- `ImageModels`: Image modeling (interpolation) functionality for EPI-MRI images.
- `InitializationMethods`: Dif... |
7b17d80770155afb37481741747dce6d8b7eebbbc004c19744790a37190d4164 | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredURLLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
aa7e461322f2566e0012e21aeef9fcdafadb496ea1be34b550f9ca67f67e95ff | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import PolarsDataFrameLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
b7edbe41fe75a36bcb39007e9ca555f62d02c302550094d5af7ce4db5d045afc | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import MlflowAIGatewayEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opt... |
b8b3095994d19df5181d7a63d338061efc3c4b7d08b89e8deeebbdf3a3832efa | Python | 670 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredTSVLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
3430b29b91e4916b171c0a1a13eebd5e5de4987bef5dc3050577ad7d9e40d882 | Python | 671 | 25 | """For backwards compatibility."""
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import SerpAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation war... |
6d66f4633c0fc446b91c5e7b75cbaab6f1694dc6b202c2c481c851ab7845b8cd | Python | 671 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_transformers import LongContextReorder
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
6df6f14bcf4e2ff8dec2e13cce8b7574b43ed94a10f7decadd9fc35f87adb561 | Python | 671 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_loaders.imessage import IMessageChatLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
70f94e66f54db0e0bed9dce294caba7be720e67d547adcd1e1a9518acec19541 | Python | 671 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_loaders.whatsapp import WhatsAppChatLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
944ac4242f7c0a4a7761ae24b5e4ccf79bab2555c98a740233e303df0370ec08 | Python | 671 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import DuckDuckGoSearchAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling opt... |
c6e562553d62a20944bd1a7904ae4bf2edcbba22c517f688f947e601cc057e9f | Python | 671 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_loaders.telegram import TelegramChatLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
cd05b87eebbb52b89e9b750fce4202fe7e7bda443321726d0a99a81483263cf0 | Python | 671 | 26 | # read input files
import numpy as np
def read_settings(file_name):
f = open(file_name)
lines = f.readlines()
f.close()
settings = [line.strip().split() for line in lines]
return settings
def read_configurations(file_name, indexes):
f = open(file_name)
lines = f.readlines()
f.... |
f626a4b8abc54c7fbb21705196d5d4106cc65a3ba1e9eecfbb64e48940a633cb | Python | 671 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import MongoDBAtlasVectorSearch
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling op... |
08d4a073dd05b47b44431c8ba5c6041b38345aa00290f634ed45ea16741658f2 | Python | 672 | 26 | from typing import Any
from langchain_core.document_loaders import Blob, BlobLoader
from langchain_classic._api import create_importer
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
DEPRECATED_LOOKUP = {
"Blo... |
c78ca6eb8433dda3489e2f1c129681929002828e8f518611a6e8db9d7d291940 | Python | 672 | 25 | """Keep here for backwards compatibility."""
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import SQLDatabase
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecat... |
04192b9f1cb0c5ec2d516d420fbd57c82664122f0d68d22b788e23c866fbac0e | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.chroma import ChromaTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handli... |
16a5f2f4d4214e512f238963ef3e79aa642e40be5ccadc0c61b5159397ed1a62 | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.google_jobs.tool import GoogleJobsQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
2834f7d21893abed8e05d4b333311a9f0f180d1a99f706ae832a095da41ea3be | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chains.graph_qa.hugegraph import HugeGraphQAChain
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handli... |
6b66a72c3ca7f466a562e8715671a1e4917d3c7cdd64e06fe5ca78329dcf0b44 | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.qdrant import QdrantTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handli... |
7ea90603272a5bf8791563f848a1692707b288000b78c3cc5d866f9442543e7b | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import JavelinAIGatewayEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling op... |
86abb0d6f295aa851f4e5299eaffc36a573971f6701da597c0c1b74c083d2586 | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chains.graph_qa.sparql import GraphSparqlQAChain
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
9bac3e4b66f99521d4a64f89b70fd9a381246bc59dfc39b9e4c8fa380d3bf942 | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.google_lens.tool import GoogleLensQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
b62f2d4e070d89898a7fac3716c6dcddf710bebf825804ec668e4b13298c7cbc | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import ElasticSearchBM25Retriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling op... |
b8c9a91693570d0f14c92ae237f4babcdccdb46c87d6f9067aebd593d771479a | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredEPubLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling ... |
bee99d165e5e8f38ffce9b149585de22a0360c34c354a3758d54f8e415794236 | Python | 673 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredHTMLLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling ... |
6904d8a76f00a38be9e0e7bca99074227de6a044cf6458384a702585aeac2617 | Python | 674 | 34 | from logging import Logger
from pathlib import Path
from typing import List
from ..data import AnnotationTable, WorldlineTable
from ._utilities import default_args
@default_args("0")
def jump_to_frame(
dataset: Path,
annotations: AnnotationTable,
worldlines: WorldlineTable,
window_state,
arg: str... |
b81aee34c179c35469ebd5b8cf46ab48de2279c68db99cc321679dd78dde037a | Python | 674 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.dingo import DingoDBTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handli... |
37cfe79809c131470d3dea35083e1aa7fc357579be31a52b186750bd3c2cf916 | Python | 675 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools.nuclia.tool import NucliaUnderstandingAPI
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
ca088b9ca091fdc96dceb770b0f804d5a8bb0eae6e124ec1c4d82bb3a9204ccb | Python | 675 | 21 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import SentenceTransformerEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
de1bee4a8356a2414471719b1986f9782cd1c1b12270217b323b81d86924098e | Python | 675 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chains.openapi.chain import OpenAPIEndpointChain
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
2cd7421f6223cef28e79213925df4ece062085025f84d63149c4310e1b685efb | Python | 676 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredImageLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
8979e267adc69890ae2a7e132b76beb252c2998768e92d411c28199c7ab39dfc | Python | 676 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import UnstructuredExcelLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
98e6412dac7e05d6cd022af1fbe0eba76838269f8be7764e35a02f3b1546a511 | Python | 676 | 32 | from .process_roi import (
initialize_roi_dict,
process_roi_mask,
threshold_roi_mask,
dilate_binary_roi_mask,
)
from .extract_csf import (
extract_local_csf_mask,
extract_local_csf_time_series,
add_local_csf_time_series_to_confound_file,
)
from .func_timeseries import (
compute_functio... |
b6ec854a3cc26f424d76b2a506cce64ab99afb84d889858bf9077e30e7cc6b82 | Python | 676 | 23 | """Tests for the v3 dispatch path on Runnable.astream_events / stream_events."""
from __future__ import annotations
import pytest
from langchain_core.runnables import RunnableLambda
def _double(x: int) -> int:
return x * 2
def test_v3_on_plain_runnable_raises_not_implemented_sync() -> None:
runnable = Ru... |
ddb5979a02cc8404547d4b1a8a4c31cd277e1ffcd1c64330ad3c0dc63c8a480c | Python | 676 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import TensorflowDatasetLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
0835d90c958e5748e0f82c2f42fe60d4ff3a5ea77468b166531ecb2c5896fd08 | Python | 677 | 23 | from langchain_core.prompts import PromptTemplate
REFINE_PROMPT_TMPL = """\
Your job is to produce a final summary.
We have provided an existing summary up to a certain point: {existing_answer}
We have the opportunity to refine the existing summary (only if needed) with some more context below.
------------
{text}
---... |
5175fcf9b879b754e96c95e734ff91ff1abc352992969d9350e3edc440cf1d8e | Python | 677 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.amadeus.toolkit import AmadeusToolkit
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# han... |
c15346bc9aa4345059788a33da66594d660373169abfc8fd6ba1f0cdbdb37bad | Python | 677 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chains.graph_qa.arangodb import ArangoGraphQAChain
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handl... |
096b8b77466b710a1c8f8428622501ecf0ca4bc428bc9a6148bb5754b37dc07e | Python | 678 | 27 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.llms import VLLM, VLLMOpenAI
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.
... |
2d91d790a5123d5ff3bc8203bd32d91c29fb7f5fd0b62c5197852f8b75165f08 | Python | 678 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.astradb import AstraDBTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# hand... |
3c21b6afd1226216344c11ffc0772aa19781a466e3bb25facf498dbe6be48326 | Python | 678 | 16 | # Copyright Generate Biomedicines, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... |
680d5515743c23e1e60a10c438031cb727b582d4f65abedd13374231bf22c71c | Python | 678 | 25 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders.parsers.registry import get_parser
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# hand... |
fa64a945523c3118bedc35c4b89e70fd410ac0aab3908d6672cc46c48cd8912f | Python | 678 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.myscale import MyScaleTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# hand... |
03511c0dc7fe0232aa40c8db66e39f811156fc16e086900e90ddc492ea7cdbe8 | Python | 679 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import GoogleSpeechToTextLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
7ed35610de33e48cb00b74433276956304e99f436a5396af1b17fae5eeacce57 | Python | 679 | 25 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.gitlab.toolkit import GitLabToolkit
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handl... |
9a59d252cd68161edb949315f682055b8bf59c085f285ec5c28b55ad70bf9042 | Python | 679 | 25 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.zapier.toolkit import ZapierToolkit
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handl... |
9ac59047b2837099ba575dd0ce629ddcad601b07b8fe7d89eb18f00a8775fbf4 | Python | 679 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import MosaicMLInstructorEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling ... |
ba5992656f664f23bd4db37498a5918ae88f6b6988078db8f42d91fcc0959081 | Python | 679 | 25 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.office365.toolkit import O365Toolkit
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# hand... |
e2438e64e6dc961e32842ad16d3688ece52ad3677c9460e1ee3a19ee344a5b04 | Python | 679 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import HuggingFaceDatasetLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handlin... |
e3c5a933c03e20a3779d96c92c6077d83af084b079d57d8fd07a174be93a1809 | Python | 679 | 25 | """Wolfram Alpha API toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import WolframAlphaQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation war... |
fa4e54cbdf24eb2cfc4fd24776115853a9bc7977447b4d072a470f6765d2a781 | Python | 679 | 20 | """`langchain-core` defines the base abstractions for the LangChain ecosystem.
The interfaces for core components like chat models, LLMs, vector stores, retrievers,
and more are defined here. The universal invocation protocol (Runnables) along with
a syntax for combining components are also defined here.
**No third-p... |
36f4b4daff8ee40c940dd9266bc94488d9b96765d3a1660c606dc2327a2f3a4f | Python | 680 | 25 | """DuckDuckGo Search API toolkit."""
from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import DuckDuckGoSearchRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation ... |
aa29c05bdd331c27830dca6edf23dc2b720dd3616f1be524e92eee2ac10e0180 | Python | 680 | 24 | import pytest
import torch
from torch.nn.functional import elu
from neurovisfit.models.nonlinearity import EluNonLinearity
from neurovisfit.models.nonlinearity import NonLinearity
@pytest.fixture
def sample_input():
return torch.randn(3, 4, 5)
def test_non_linearity_raises_not_implement_ederror():
non_line... |
b2322948bafb3fea14c076f2b290a03ff4e26641a70f5acf2625bb0a1fd254dd | Python | 680 | 25 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders.parsers.msword import MsWordParser
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# hand... |
803a7c29220a479f2646ba78ab611875956fce62b3f99cfe9aad8e791f4f790e | Python | 681 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import AzureCogsTextAnalyticsHealthTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling o... |
ffa7c894f1211d8c39681909ad54820200777997fc2f2881116f2757da5f58fd | Python | 681 | 25 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.json.base import create_json_agent
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handli... |
a9276b97b6b16cbb98d64eca52b14894285dc77bd6ced670289c85b92c84cf26 | Python | 682 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import WeaviateHybridSearchRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
ba291b65986710f4c93341fa57009902007a3677ae37c483a73dd53f97f796ce | Python | 682 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import PineconeHybridSearchRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling... |
0b4cc6a24bb1201ce95ae98df9270be73fb1152ed20e286166b5db6d21cde513 | Python | 683 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.pgvector import PGVectorTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# ha... |
0d81a666cd15819944907d6f7f34c16a08b14a7d3a60edb5b53444e8cae7e8a2 | Python | 683 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chains.graph_qa.nebulagraph import NebulaGraphQAChain
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# ha... |
324245a7f0ae19d627869f6db3cc7418c399fc5e8069e98f49d608477b18649b | Python | 683 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.weaviate import WeaviateTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# ha... |
86832611fd9c7ad424c7a9f9310d784f05518a51b522df3582b10ffaddf68580 | Python | 683 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.query_constructors.pinecone import PineconeTranslator
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# ha... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.