sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
0f034c9bb16b81c86db798aba692b6062334ee54f0aea49b2b9032b51f5f7022
Python
654
21
import torch import numpy as np from torch.autograd import Variable def data_generator(N, seq_length): """ Args: seq_length: Length of the adding problem data N: # of data in the set """ X_num = torch.rand([N, 1, seq_length]) X_mask = torch.zeros([N, 1, seq_length]) Y = torch.z...
a9387c2587b466da7b71aa8ee5ac45910f021300728a36d359482595b764ffa5
Python
654
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores.xata import XataVectorStore # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
e6d08de474ab73685dae3696b80299a65eedfa05e2c53baa5bac1acbba5f0285
Python
654
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import EdenAiExplicitImageTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
efaeb47e04bd61e9587b61a69811753b6ef96f7ea6512d20654f4e7c0dbd75ac
Python
654
29
"""Base callback handler that can be used to handle callbacks in langchain.""" from __future__ import annotations from langchain_core.callbacks import ( AsyncCallbackHandler, BaseCallbackHandler, BaseCallbackManager, CallbackManagerMixin, Callbacks, ChainManagerMixin, LLMManagerMixin, ...
07ceef7ec675253e8b1a323d061478d6a5298265f7a72ba2fe1bd14ee2d2cb2f
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import SelfHostedHuggingFaceLLM # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional i...
1957249bc2bd0065e70d9fb4c58cf3d590bdba3a5021682b3c301d87bd33c47d
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import BlackboardLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
23201aa4963ece6db69659c71fb1b094bde77db11d71250a905f0ee2fe9d1432
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import MaxComputeLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
3a3238f5e4668eb6138280185ef4fd8fd6d2424a0ba5d2f0438cf2d69c1fbcca
Python
655
13
import os import sys from loguru import logger as log from tqdm import tqdm log.add('test_10_fold.log') os.system(f"pyenv local yolov7 ") for iou_tresh in tqdm([0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95]): for i in [1,2,3,4,5,6,7,8,9,10]:# log.info(f...
45c423d9d05a09991909f41e930e07937dce5daf32c65c3a4d1fc16c18bef1f5
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities.github import GitHubAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
4846ffab54f8c8c468f6f231e9982011d9bf1de091cf83a284fc423846b03dbf
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import SharePointLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
507cb487bf4a14f485afae938276fd9934ff153e96a496221e26e5435a9753c8
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities.gitlab import GitLabAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
5bb1ba7641c2dee9ccef19c8a0ae4eb644fe85e6edd27d468c76b11a024de6dd
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import MergedDataLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
67d27ac3f2091dec5ef0f0a5183bf1740eaaa119541d26d4d25fad33560faa28
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import GooglePalmEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
8f934e8bf3f99d5f3fcf92a3dbb4f4bb75ff8b6f09382315eb643b88cd1c5ee5
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import SelfHostedEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
9fd1a7e9d61b50dcf26668129fd444ad2617b527889c2b942edbf5725853f508
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ModelScopeEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
ae10f00dc0e30fed99b0cc88f47d1a4dd1d94c4f99fa980c336335ed80036d3e
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import DocusaurusLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
b0dc8897f93efa4691251b9c87b4479e8b5ff1e8cc317e37fb78f61d67cdf762
Python
655
27
import torch _MODELS = {} def register_model(cls=None, *, name=None): """"A decorator for registering model classes.""" def _register(cls): if name is None: local_name = cls.__name__ else: local_name = name if local_name in _MODELS: raise ValueError...
c333178aeb2cabfd63c04204a80f415a4972556b08602fa8c12d2805dcfd7657
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import XinferenceEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
c4065b33266049f3f033d68308bbfd3f33f889627790afe1e2c87403a100b2a5
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import ToMarkdownLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
f322465aec28fd466fc8e0b210921b176e00ff6eed6f75ae1913b9e88175db77
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import ConcurrentLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
f57897015ca095f44aa30f8caeda4dabab35abe4c9e41c681b9739b4c1a98069
Python
655
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import DatabricksEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
0057d7fd92f150453246470f3572b619dcf213dba2f6b7ce5ab218bbad637535
Python
656
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import SceneXplainAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
0cbe962fb6cee0025ba7b5bbd61002a67cca170c695973f07de9a5881b5c1e59
Python
656
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_loaders.slack import SlackChatLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
50ca61eea06be4f8fc23dc2aae2a299e40dcd42fb1068352787c9edd4683e02e
Python
656
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.vectorstores import SupabaseVectorStore # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
610d3bc2186b2bb56e8d4ce712ad98cd7dc8ee296738ff7dc3d9ade4695166ef
Python
656
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.fireworks import ChatFireworks # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
bf80a43b6025f740eec75e9730e2b15048c40fc58425a0b55087e47f4af7cfdb
Python
656
23
from voxcell import VoxelData import numpy as np import sys import flatmap_util as fmutil flatmap_nrrd = sys.argv[1] pixel_res = int(sys.argv[2]) output_nrrd = sys.argv[3] fmap_vd, fmask = fmutil.load_flatmap(flatmap_nrrd) fx_d, fy_d = fmutil.get_discrete_flat_coordinates(fmap_vd.raw, pixel_res, fmask) pix_uniq, cou...
cf0a92549607c0b9fc99e6f12bc29b8285b051a3671248509c297200c1b54d22
Python
656
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 .compute_timeseries import ( compute_time...
d08f89a332f6d8e0102ab33954b1c24c3f404760d3f60d15d598f98b543dbc63
Python
656
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import GoldenQueryAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
f3098779aef44dffa5e6a8894bd08ec0478d0ac390ba7da073bfafb0c185a893
Python
656
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.amadeus.base import AmadeusBaseTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
2f342c2bd1db5c4272c22729d178463f0fb0040d9214fea9c0893e924ac6e63a
Python
657
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import AzureCogsText2SpeechTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
44f366a79f86dc7f2a51805d81eadfc3fc8d9c7d0ab6c6071a6790163859145a
Python
657
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.rspace import RSpaceLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opt...
5ebce84f768d3d49c5fae4953a59ad79181e9265198326874e64f144db08abaf
Python
657
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.nuclia import NucliaLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opt...
628c35a6cfed40e1c7d9410738b2c44921db8bb1a02c248443c67b64462a9388
Python
657
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import EdenAiParsingInvoiceTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
7c8d4f01bd5929a98941cc2857f20c0cf6738c42f67216c0b63bda32c9e6b9fe
Python
657
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.agent_toolkits.nla.toolkit import NLAToolkit # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling op...
8a072ab5ea6bffe20149f902495f1cf5692576d518e7cb8310a3dacc94c0ff81
Python
657
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import EdenAiTextModerationTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
da431ccd398bba4e115d3f8705606636b42e5db44bf5526b705c69203b41a63a
Python
657
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import AzureCogsSpeech2TextTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional ...
122e2e6ea7bef6d531796304570f0a06bdb7095d9e13ddd485465031c8bd52ac
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import AirbyteJSONLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
187ee89adea18d7e186443c2962c1eec9459bf20ac40515fccdc274f7bb44f1a
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import BrowserlessLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
32dd2965303c900db7b9be93bacdee5952f5025ac79e43d8a776749510c9a51a
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import BraveSearchLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
4d6178612e1f1938cc6f6f5fa431195354c2c0c31c9bd19348b4cc413e37db3f
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import GoogleDriveLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
4f2dea76f12ef6159a5db6a89182030055db4967ea11ae6b3ee4fd44d52a9882
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import WeatherDataLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
53656729db1b9e28ee898602aa7f4f0af429ab4ad571b311d07ea8091788bd45
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import ReadTheDocsLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
557e7465c6b43051d942e05e69494c37a5cda2307d5580741c6b1a26827a85bb
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import DiscordChatLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
ad68483908f2a6b0930555f8dbe538b8bb5a7b56a833e9cfb4ead68791ee4d87
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import SeleniumURLLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
aee80d68c6b83b4bc05fad87a1519f0822fb640db6352a21a2a5afd6c5709b1d
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import AzureOpenAIEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
d842350ced430aecd2d0e061e30ed7f40975f13404e1be843eb0176e64e456f9
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import RedditPostsLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
e7dc4f35d84bb7dc943368c363e852f8ec1c8e368d325b4984c43405ae6790eb
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import S3DirectoryLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
f8bf7c1e671d30d5256458669a7a4e9f1a9eb68d8fff2ad41ddd31b1d8809a8e
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import AzureAIDataLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
fba55a0a932c4cc8e9b3c735b5e21ea7bd3bdb05a1963fcca3b1af6e3731bb95
Python
658
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import DatadogLogsLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
091053b4d9815d533b2b3a79c9dc9cf4bf2529f5d99bb19fceb872cc6781ccad
Python
659
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import GoogleSerperAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
0d0ab5a42208e4c851771f939520abe03488742c92b6a31321063da83662f363
Python
659
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.docstore.in_memory import InMemoryDocstore # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
107a6136fe833d9e5f992d985dadda61e5e2a6a1d2481ac81556b61464dbf9ea
Python
659
32
import pywt import matplotlib.pyplot as plt import numpy as np import pandas as pd data = pd.read_csv('./data.csv') signal = data['num'].values # Perform wavelet decomposition w = pywt.Wavelet('haar') coeffs = pywt.wavedec(signal, w, level=2) # Draw wavelet components plt.subplot(411) plt.plot(signal...
54844edfafaa97c7c772150e80832371c8527424d5b94a335e3f2dd0c34be42b
Python
659
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import GooglePlacesAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
5aed75fb502e48eff83e52e4a23077785714a9edca5d9f916ceed768e55192d4
Python
659
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import GoogleTrendsAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
cc69d740329464a3154ee6bec9f738504ab5f13d93192c9b33c37fcf04ad769d
Python
659
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import AlphaVantageAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
e48be334184f75368a0c8ca1185c205f2c0bf664ec5302d1a4ef294e6dee55f0
Python
659
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import WolframAlphaAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
e4df9e887a6a35c17bbaf1cf8f7f0aa08c32119793b05342ad8352403eb81f19
Python
659
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import GoogleSearchAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
0e3d734cbd7c382cb7207a24a859c896261acf88ef5a50b912a2eca18394b8cb
Python
660
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import ElevenLabsText2SpeechTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
1985a46fb4ccb2e6b8aa3e0394b18b62b4e6b73df591a77914755ec2077d05dd
Python
660
27
"""Unit tests for the Constitutional AI chain.""" from langchain_classic.chains.constitutional_ai.base import ConstitutionalChain TEXT_ONE = """ This text is bad. Revision request: Make it better. Revision:""" TEXT_TWO = """ This text is bad.\n\n""" TEXT_THREE = """ This text is bad. Revision request: Make it be...
e2d704695c4d678f01dc67f5d7fddfa6e351845d7b14ad0bb5e2164cc5325fd0
Python
660
23
import pandas as pd import numpy as np import re def convert_epicv2_to_v1(input_file, output_file): print("Loading data...") betas = pd.read_csv(input_file, index_col=0) print("Extracting base names...") base_names = betas.index.str.replace(r'_[BT][CO]\d+$', '', regex=True) print("Convert...
fdc64f34fc877f2a808a5089115d29ac9f7b966b9ba303f7453ab833a84c08e8
Python
660
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import EdenAiObjectDetectionTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optional...
1761f0b814d83f61b007ad20e1a6a08ed5227b896d47f043e40c985f17e1bf85
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.parsers.txt import TextParser # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling ...
214f78548f8c829d9302c95a5a3e7a7117a6683b64c0043d7a9e55c59c61c687
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import OpenCityDataLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
2b70336bbffdd28326d3d5af764680186cc3df4bcb9baae1d33294295044ec98
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import OBSDirectoryLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
3de1a4638ea9354699e0e19d980128543df33fbc273f87e6fdd40a21e7c34a2b
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.retrievers import ChatGPTPluginRetriever # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
52d7cc5651bc316616656252fe2da53156e754f2711535462f57d314b3b5e1f9
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import ImageCaptionLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
567015208b4885cc1a47a58f6590d3447eb3ffef534faceaab0c957a3b299e13
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import GeoDataFrameLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
5764217bc07b50bdda4372a97b3f93567caeac795c63622a150a4e88a0546de0
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chains.llm_requests import LLMRequestsChain # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opt...
686abbf7b0a1493dabbed44c6d7a87e7767821c2e0d7909352e0cfff8018b5b6
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import OneDriveFileLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
6f84cdf6c159cae5c3624f42c77a2822f13bfacd4c983e199e29f6ff947af1b3
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import LarkSuiteDocLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
77556619356343ff02e120bbb52645051875db654fffdd4f1242d9644e8a33c1
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import CubeSemanticLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
8417b338c9b3d55f1a479b2df0e58abfbabc4f8a91e64c49268526a23e6fb6ab
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import RecursiveUrlLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
8a54e5322fbafff4cf055b7e52461635c855e5729e90fd42bd18eb7a7f75ce0a
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import YoutubeAudioLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
96a97bff20d7d7fb3ce163ee7f6f3c215b81d1c8f7450263c4c63ae7d1ebdc97
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import GCSDirectoryLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
c2a18a216cb02bf35dfb7b1095c7a6a195d2c77bf6f3fee21497a08791218e56
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import TwitterTweetLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
de76296fffba38c8c25dc35b457b6720a05df716a76070b3d2bb20a913991b3b
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.chat_models.databricks import ChatDatabricks # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling op...
dffe5964885eeb28f5176ce6e10365ab263b9bb1afec29405b98a54f1e56c2f6
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import ApifyDatasetLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opti...
eea19ecfa3bcf63e8c31516bd101b52fb4bb7063d1a51fc40f1f20603a21b0f5
Python
661
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import JohnSnowLabsEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
059929ed5625d8ecdaf661f7ea2f887ac4e1757523acba0d0c8f32079df4c0b7
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.generic import GenericLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling o...
1517e455e38af7a6d502d955bbd9e1980f3753af2f6f8fbe6e4331573e884b53
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.agent_toolkits.json.toolkit import JsonToolkit # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling ...
2379676875cdb7c0436c7c407078ae0cda99316694eaf02d5e8ef7276d5300e9
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders.onenote import OneNoteLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling o...
2bdfcbd0178a66ba6a07877e2da798981a18cb2a5e936a30dfa5a4f8021fa44d
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import GoogleFinanceAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
2d3889d95f582e13e18304ee0f6003817d59015bcaa6a7ebd3624468de0cb83a
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import GoogleScholarAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
4ce36d595c653c327fba6b0f83549a7562dfb51a3fd0a1d0325f12eabb2e0839
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.agent_toolkits.jira.toolkit import JiraToolkit # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling ...
9149c747d0c952bd70f679e4c1aa1be5f666f51ceae9c25ee5c183bd35ce84e5
Python
662
22
#!/usr/bin/env python import gzip import tempfile class AnnotationsBed: def __init__(self, annotations): self.annotations = annotations def __enter__(self): self.tempfile = tempfile.NamedTemporaryFile('wt') with (gzip.open if self.annotations.endswith(".gz") else open)(self.annot...
97162548c0ac31d4d130e6a754a1c3e6255b87140ecaa0cdafd3d98d5dd5eff3
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.playwright.base import BaseBrowserTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling op...
9b9434b89211f9284a6942a3e3340a2114c30771cc99159b8272338e92647cc8
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.agent_toolkits.nasa.toolkit import NasaToolkit # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling ...
dc56f8b8706dffcdb528b4e8d841c0269d12d4bff75eb43b893e20d5d1450537
Python
662
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import StackExchangeAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling option...
5fa18de469f007dde841719180e960f418cf95ce8ff5f139bdaeb821f7ae6e89
Python
663
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools.golden_query.tool import GoldenQueryRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling o...
af325bacffdf9cbd5ffc432ac882294004953a2b128a2601f38190e6b8fc18a1
Python
663
17
from torch import nn from TCN.tcn import TemporalConvNet import torch.nn.functional as F 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, dropout=drop...
cfc61af2123051566d3ee87b088986368b4b0521ead8ab7c9faa017f9ba9e2ca
Python
663
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import AzureCogsImageAnalysisTool # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
7134b526876b1287b61b413195eebf03a6a3866fbc11b9a5e7b4c33f708a8724
Python
664
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import AsyncChromiumLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opt...
8c46a376afe8efaeef9e5c23ac9b1baa5b7378a452c0a14a5ca7dacadb359028
Python
664
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.document_loaders import MastodonTootsLoader # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling opt...
b9160c89b4999f8aaa56c5cf458e8f84d5c2c60b8c5e6abff7b285bcc1e5a688
Python
664
25
"""Tool for asking for human input.""" from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.tools import HumanInputRun # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warn...
cd10372dec0870c31a88cad94a49d159b45f2ed30f2ae9b40fd9cfe27ac7f2d9
Python
664
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import ElasticsearchEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
ee42b6b6490c982bbb13f8428efbb631ff78a59049633dc7574ae318d525d750
Python
664
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.llms import HuggingFaceTextGenInference # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optiona...
fddca6b01950e78be18d82540f754f73ee599bb83c8cd2db3da28dd8daa6cf13
Python
664
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.embeddings import TensorflowHubEmbeddings # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
04e67dc8b47ef9245690dd6fcc592421509180728f75d3f81543ff0061301e9d
Python
665
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import OpenWeatherMapAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
3df9b8ecd50e024c97fdae2e6f9444a6ae1a084819b167fa56211db2a1552d3a
Python
665
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import MetaphorSearchAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...
62a476fda467ed6f8d5d5c5290626a2a524d84d34ef06cb76e8aa97c00d2fbb8
Python
665
23
from typing import TYPE_CHECKING, Any from langchain_classic._api import create_importer if TYPE_CHECKING: from langchain_community.utilities import MerriamWebsterAPIWrapper # Create a way to dynamically look up deprecated imports. # Used to consolidate logic for raising deprecation warnings and # handling optio...