sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
f0339ab511dffcdf2e57ca67a13d8b6686fe9409cd2a0c22f8abe8e6a2831dce | Python | 631 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import KNNRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports... |
f5dd7edfeb1da2ad3fbfa280f421814a046dc044f459096daec6e3e6792d420f | Python | 631 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import YouRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports... |
1207609eb68671d9bcfb3653c4604541cd87078306edce72bcd03dd3111418f1 | Python | 632 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import Meilisearch
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
5552645552720bc1088d7c8acc8bf500dc0b681c1c534ff572003a00993b83cb | Python | 632 | 16 | """
Script used to decompress all data downloaded from Harvard Dataverse.
Please read the README.md and follow the instructions where to download the data.
Author: jonas.braun@epfl.ch
"""
import os
from copy_data import decompress_imaging, decompress_headless_predictions, decompress_other
import params
if __name__ == ... |
86f30fc21233d4f652f81a62dcba2792cd47e743f931e4247c7869bd521eed46 | Python | 632 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import Yellowbrick
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
87969fe2ba41ec333953ec807a99d334c4217f6b0b94920b6495bf1cb711e9a0 | Python | 632 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import LambdaWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports... |
d91ce92852a2d7df7569618af28b1d90aabc6ca69d9b2f2af3a911debd1fe8ae | Python | 632 | 21 | """Derivations of standard content blocks from Google (VertexAI) content."""
from langchain_core.messages.block_translators.google_genai import (
translate_content,
translate_content_chunk,
)
def _register_google_vertexai_translator() -> None:
"""Register the Google (VertexAI) translator with the central... |
3e8d7aaebc3896080baf25c2503e58ea8331e2c6b80ae7bd7c52aae73ca715c7 | Python | 633 | 18 | # third party modules
import torch
from torch_geometric.nn import knn_interpolate
class FPModule(torch.nn.Module):
def __init__(self, nn, k=3):
super(FPModule, self).__init__()
"""This module acts as an unpooling/interpolation layer. Taken from pytorch-geometric examples."""
self.k = k
... |
9c0bb1294ae905e98597120db915ff28d3a72bbe066136222e0ecd7f4a0edafa | Python | 633 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import NavigateBackTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.... |
bdc6b78467ad99be2e9cc00ad734a5fa55101800ac9d325083c2ec77ac70dc3c | Python | 633 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import StdInInquireTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports.... |
eebfd7e1522233cf3b6450fead3ef4824e0fbf50840beec0b9b27ff91f4a260e | Python | 633 | 23 | import sys
sys.path.append('../source')
import tinaui
folder = '../test/sampledata/ocn'
# load already skeletonized data
t1 = tinaui.load_status(folder, load_imagedata=True)
# relace the discrete coordinates in the network by smooth connections
tinaui.replaceEdgesBySplines(t1,name='initial',copy='smooth')
# perform ... |
c4b3940af18ac4f34bb889b589cdae17e9f98bbdae0fd7ff63e5ddbb75c5a4d7 | Python | 634 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import SRTLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
ce1e818dbbaa313f9131887a35060077254183696e1bb135fbb1f6c9adc5b07c | Python | 634 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import GitLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
d4f3c1e5d54f633ce450975f03fe6c9fad376a8c1699e4632cd735ade1fc053d | Python | 634 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import AwaEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
2418f207056595c7c4335583fa1b63f57c3f32691d9dfb28645e8c1f81e770a3 | Python | 635 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utils.openai import is_openai_v1
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
469850d44b54e8d8016e9fa6dc8aa2b95c08163a318d0a83ddd2502785dd08ba | Python | 635 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import PowerBIDataset
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
d0832ef1aad76e299551b8c0ad6aca44a7b4c3a845060b39cb9fe40579533cc3 | Python | 635 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import NasaAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
ea820ec00c9dd0be6f8c117232ca85ffae8fa3a986b8aafe7cfacc67fc26bc00 | Python | 635 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import JiraAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
61a27434cfe529a2bec92fcb5f28056fc199d1c03a32cc9f39a251ddba06fc65 | Python | 636 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import WikipediaQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports... |
72a23ba85e551ef1dd0147f512ee68219c4bc33b2b6199d4b1465cf4d689031a | Python | 636 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import YouTubeSearchTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports... |
d5c76258030073c7995c3f627beaac6802ed93a912a5c23f19499a79ebc64b6e | Python | 636 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import StackExchangeTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports... |
e8f41f5d26b474653a726b6f31327fe87342b660b7a2cfd79a4030889457d184 | Python | 636 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.memory.zep_memory import ZepMemory
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
f6fba02e9ad46a15b031c428b97f98bc9b4a3644c4c529f40128d0ab85f4bc4b | Python | 636 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.konko import ChatKonko
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
0ef86d5a661b7a0727a9da04fbd44ae2ba4908ceaf681137ee12bc61a2739083 | Python | 637 | 20 | from langchain_core.documents import Document
def test_str() -> None:
assert str(Document(page_content="Hello, World!")) == "page_content='Hello, World!'"
assert (
str(Document(page_content="Hello, World!", metadata={"a": 3}))
== "page_content='Hello, World!' metadata={'a': 3}"
)
def tes... |
1c29aeed3ab4009908b170694a674c31dfb6bba8a6a30018db71eec0400bdcd9 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import KayAiRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
2aa68012d3be1eb43c462fe59b717c1d7de4a7384548966bee42017f5230e524 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import RoamLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
4d1faccdefd574dbf7956769db3a83136ff4f0412300c5bdf44b068f233cb1a7 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import JSONLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
597dfdf257019b7c645daca47022869526f2977e41c23614b4039baac51dd10e | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import TomlLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
5ec540da277859f3c8b81feb3579f4b9e13cb65e74f533ef021eec8cffff7b3f | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import IuguLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
7165961e43880cecaeeeaabf96a2e20101e195a5686a6f3ff208178f485d7362 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import TextLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
7279e09bb00ea6d836a4d07fe955a68cbff0fb5f1004d7ec41c8d21fbda05443 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import TFIDFRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
87cdc6c7109e305ef40133d72a774ee761b2e135bc530ced32515dca9e821524 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import ArxivRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
8b8a42023733be1a7adb2db4a6fd13279aa44e5a7b5f0280ebae13dbd461cbd4 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.llms import QianfanLLMEndpoint
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports... |
a18cb8de3e946573a225294557d4b8900bd843e243c02ec16ac889c8dbe3f8bb | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import VespaRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
a26254bb4482cdc54dedf22f2b061e73cc497a7354bedc3cc8f9b20d965961d3 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.llms import SelfHostedPipeline
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imports... |
a70b833b46774f8da99bb0b2a43e21360c50e2971d9a385aceb921e55c3763a2 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import MetalRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
dc4cf1c41183c5041903efc9d8fe9764513a5cd9a6a4e6cf149963bd42746bb7 | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import JinaEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
f1d0eae53a6728f9c6ad554e7f9293173430164b025380f8b1498b0dfafd116b | Python | 637 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import ArceeRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
0cc36cc882ad3a29c6ca50731b6bde6d4056aa038398f98eb929b338cc915959 | Python | 638 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import SingleStoreDB
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
a40acaa5b7c8cf785b8aaaa99554cc6537bb9dfd5f1019b03556285ea7782d8b | Python | 638 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import ArxivAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
c5ae56e5dc5894c871568175a3c262d0023342e83766d888ac5c49cd0bdb9062 | Python | 638 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.docstore.wikipedia import Wikipedia
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional im... |
0b7284002d25916e32175bb5ba7d86ab2865f797434358c27d129469a187bfe7 | Python | 639 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.gigachat import GigaChat
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
2d59d66ecd038fd7601ae0330dd1cf4aa9dd2d52d1980b1a324b848ced8c5655 | Python | 639 | 16 | import torch.nn.functional as F
from torch import nn
from TCN.tcn import TemporalConvNet
class TCN(nn.Module):
def __init__(self, input_size, output_size, num_channels, kernel_size, dropout):
super(TCN, self).__init__()
self.tcn = TemporalConvNet(input_size, num_channels, kernel_size=kernel_size, ... |
3135bf15ec73a20b6bbddf858f3bcbe691f8951b20b1cc4a524b52932416d440 | Python | 639 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.jinachat import JinaChat
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
345fc2e76cb332f99bc5d6f0cf7b87eace141e9cceba26bfba71d59bde915d34 | Python | 639 | 23 | from langchain_core.messages import AIMessage, AIMessageChunk
from pydantic import BaseModel
class _AnyIDMixin(BaseModel):
def __eq__(self, other: object) -> bool:
if isinstance(other, BaseModel):
dump = self.model_dump()
dump.pop("id")
other_dump = other.model_dump()
... |
91e4ef2778365903c298ceab25d7ccf43b3972113a3a01bdfa1a1ade71606f93 | Python | 639 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import CurrentWebPageTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
0de7ba2b6b5d51066b488dc0a4ea2c003afe47166246a317c52db22565fd0e64 | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import IMSDbLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional im... |
176512840a4b87f13b24e5e1bc75c44b860663f4afe1d1b57cd0d86cad1a1e33 | Python | 640 | 15 | PREFIX = """Answer the following questions as best you can. You have access to the following tools:""" # noqa: E501
FORMAT_INSTRUCTIONS = """Use the following format:
Question: the input question you must answer
Thought: you should always think about what to do
Action: the action to take, should be one of [{tool_name... |
1a0172cea0da2c0de95412ffc9ad1422179b78fa52763059a74d2a19abac5456 | Python | 640 | 30 | from sys import argv, exit
import pandas as pd
input_file = argv[1]
disease = argv[2]
eqtl_hits_per_gene = dict()
cnt = 0
with open(input_file) as fh:
for line in fh:
if cnt == 0:
cnt += 1
continue
line = line.rstrip()
vals = line.split('\t')
genes = val... |
27c1993c0b3e60181f5641959ebf916e142534142f9a4cacd1f6b9ba62be3478 | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.llms import HuggingFacePipeline
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
5a98f2f6fcb1b4fc17dbfe76b3e6c58a0a80eeab19d2af6b06c12075f5c8926f | Python | 640 | 20 | import numpy as np
from skimage.io import imsave
import os
"""
This script converts the npy file of the Panuke dataset containing the images to tif single RGB images.
"""
# Charger le fichier npy
folder = "/home/cazorla/Images/Panuke/Part 1/Images"
data = np.load(os.path.join(folder, "images.npy"))
# Boucle pour enr... |
5c4e938afb0505f8df945df0c9c5979cc212d0bfa9c58e1112ba30a5916d202f | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import MHTMLLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional im... |
64b52e9a5a655311fceb2f506a84fd5f103574159d385a25b214f16289a7dc7e | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import FaunaLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional im... |
94dcbbb80c547d51a829b899f111d18f2a4867a1aeee3c884b13b1aad46f13a9 | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import PubMedRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
a2fda899f627c84dffd4e7522d6229a02bb738acc1b9e5697da558078345014e | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import ArxivLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional im... |
bca3f9ff23a7c5329ad0e0c38748126dd0e227a2ecacb07b5a500011018eff3f | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import SpacyEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
ed2352907c1f9234c28e0c4889085d6fd4af94cf78e76596a704de97a42e85d8 | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import ErnieEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
fc635076d4b9d397f87d88fefd15a8667d7e943eb9bc113ef195532f113b36b6 | Python | 640 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.llms import HuggingFaceEndpoint
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional import... |
003d85483a33f45f426118c1a234a67fc0bcac7d49bb0fe168f9b525dc564797 | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.mlflow import ChatMlflow
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
04c7f2800b3180853ce3cdba322f404a1ea9505eed277d567f9ea43656653935 | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.openai import ChatOpenAI
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
1a96c10c4da2073708a68dd101fbfe5ca38ed492327135850a786650ed35f97f | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import TwilioAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
2cb65b5203dcf12ffc93a2f8e9d3f857d28bada5b48d5cd88c1bd978263fb3a9 | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import PubMedAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
2de6502a339a29858695f4ad2589bef83c24689510ebfbec3962df5c2aff9569 | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import BESVectorStore
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
3d17072e3b6c6b68ab009d13b10b31657556bb6b41f2344fcd9614deaae1a38b | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores.nucliadb import NucliaDB
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional ... |
7eff0329c7413f7e639ecf1bf343872221acae3d0988b678d0f02228e029051a | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.ollama import ChatOllama
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
827415deb33c80a476ea7d2172cd3ce4a0241ad00003118a9053e65e1e231f4f | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.vectorstores import MatchingEngine
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
8375eb8cc772a50c9110196dc26c82029ddc8c866a02b235ad0f340c6e152354 | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import ZapierNLAWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impo... |
a6ecf89c32c3bf66e222e8f995250936baee49e1d188b2291bdbb9012fcaea4f | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.cohere import ChatCohere
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
d735495a5907d3e6ea82a23365a4d73aa86c083aa2447568ab65a76aebc987c7 | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.graphs.graph_store import GraphStore
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
e37bc0ee09d834a8143d00394f01b3112db238b1df8a27b7afa11c00f2170fc9 | Python | 641 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_models.tongyi import ChatTongyi
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
f4129f64413ec05794385dd19e8962fc28b0f165901a835f2cd6f8c158519653 | Python | 641 | 19 | import pytest
from openff.utilities import requires_package as requires_pkg
from openff.toolkit.topology import Molecule
from openff.toolkit.typing.engines.smirnoff.forcefield import ForceField
@pytest.mark.xfail()
@requires_pkg("openff.interchange")
def test_basic_construction():
top = Molecule.from_smiles("C")... |
1a394bab9a25659a33873fd17a5b62286357aff55c15287bdc59180d089999a9 | Python | 642 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.agent_toolkits.nla.tool import NLATool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional... |
a9324d7370502e4d55f45f3a4572644e3eecb00e0801d6e4bb63a6d9b3e4eccb | Python | 642 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import SteamWebAPIQueryRun
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
ae24f53364b0fadcd6261d340122ae835bb7ed148e60bdb9011a7247328438db | Python | 642 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.tools import EdenAiParsingIDTool
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional impor... |
01007ae06a9f025ffaf8eb924f794c2557d54dd57155678b45fdf747684088f1 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import DuckDBLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
097191c0e3e3cd0723a2b5ee151124e98b23129b582a0891e8aa0bb28a763861 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import AcreomLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
16d72172ca58ba970580512393d476449b9f470a9bc7f250056f150167eb3970 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import StripeLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
1df2d8d6c2dbbd0b9f2dbe4ec0a51761e66f8ace101d2a34f88a4274c8507370 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import BSHTMLLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
22c7e3bb0766a660bff27c9ac469f3d8818f0c4fc766aaf7b7a8d9e13af5cd14 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import TrelloLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
343e4a6ff6d22c1ff703ca1811e805ae9e5bc924fa901a9a4a541f3fc7253e59 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import OpenAIEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
4480d6d0835ed397aacef498903bd2bd6fdbda43d779d9bbfbbb9d785ab646a0 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import CohereEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
59ca23414cc9541965845f61a409987da28ac4f54b7984a8a182c3de536705f9 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import S3FileLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
61a56a82f7258456e21f6ce6b809aeb1d9b43aff3ed034555effb5fc389c6f0a | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import EdenAiEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
675f6b7abba1be48c74a2d2b1a3291258650d0f8071eb92e722c625a6191e206 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import VoyageEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
76bb0ad47170d63b60dc62e61c06dc12b9437fab07647fcc6aba210cc31b1eab | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import PubMedLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
7c4148482b01437c711e237b40643a60dbe35acb50f4f28ef6aa66a0ec662e9a | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import ArcGISLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
90f9b8eeb2d2ff54397de7fc85441c5d5ba670f2f9883c1297890b0de3b79014 | Python | 643 | 24 | from langchain_classic.prompts.chat import __all__
EXPECTED_ALL = [
"MessageLike",
"MessageLikeRepresentation",
"MessagePromptTemplateT",
"AIMessagePromptTemplate",
"BaseChatPromptTemplate",
"BaseMessagePromptTemplate",
"BaseStringMessagePromptTemplate",
"ChatMessagePromptTemplate",
... |
9365838b76612b7ac90c6cf191d29c4585ac170528bc577be828b31eef293b3f | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import MlflowEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
93cb7cd0785ac762b343635a659b937ac67463d06c268e5798e31cf6f6af6ca4 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.retrievers import OutlineRetriever
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
b6333747f6ca3eaaa50efd87d616cb51480eae6304e0ceef50d38e2862dcc7a5 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import OllamaEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
c6079a7751830817787d4320eaa7feb5ac429add6a83135919d777227cc4afff | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import MWDumpLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
cf7c09b2b146b4316f635f3d70677b1cac87b720876a7934599d83791ae5f35c | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import EmbaasEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
d22940905e23a4fc5e8f98bc2ea248556f22dd9fb8952359eee44216e0eaaa63 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import JoplinLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
d9b39b4f877074e941a50d346f4d5b6ad0a04bcf76f70b9f16cd090a8531051c | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import CoNLLULoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
e15ae211565bb99ad60ffb508f3619d92967a2677d90aae8e98ad59aac9a65fe | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import IFixitLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
ea91aec8a166e0d6f82c532b750b4354279001b4ff06d74356837d23cc882fcc | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.document_loaders import BibtexLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional i... |
f73dd752ab5d6b158adfaefc2cbad2387f15219daf4d9a4bb7eed420826e52d6 | Python | 643 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.embeddings import OctoAIEmbeddings
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
54992a155a25e38f66f272e6af926e5c8be20ec15e72d8ed6bd62774c3112bc4 | Python | 644 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.utilities import OutlineAPIWrapper
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional imp... |
5a187fb1e667fe34b9e534900bb7a1e9564c98bb35394cbda972235fbb369937 | Python | 644 | 23 | from typing import TYPE_CHECKING, Any
from langchain_classic._api import create_importer
if TYPE_CHECKING:
from langchain_community.chat_loaders.gmail import GMailLoader
# Create a way to dynamically look up deprecated imports.
# Used to consolidate logic for raising deprecation warnings and
# handling optional ... |
617be189b2cf34dd3d75667beab4c0470953562580955e6bd8d052f8837ab424 | Python | 644 | 25 | from utils.io import preprocess_data
import numpy as np
from paths import TRAINING_DATA_PATH
import glob
PATHS = glob.glob(TRAINING_DATA_PATH + "/*")
all_data = []
all_oxy = []
all_ds_idx = []
for ds_idx, path in enumerate(PATHS):
base_filename = path.split("/")[-1].split("\\")[-1]
spectra, oxy = preprocess_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.