repo_id
stringclasses
400 values
commit_sha
stringclasses
400 values
commit_index
int32
0
951
in_repo_split
stringclasses
1 value
cross_repo_split
stringclasses
1 value
test_file
stringlengths
7
121
test_function
stringlengths
1
108
assertion_type
stringclasses
32 values
difficulty
stringclasses
8 values
context_lines
int32
3
600
prefix
large_stringlengths
44
113k
target
large_stringlengths
1
498
anchor_sha
stringclasses
400 values
anchor_index
int32
0
951
qna_source
stringclasses
1 value
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_serialization.py
test_checkpointing
assert
func_call
96
import numpy import torch import torch.nn as nn import torch.nn.functional as F from .adapters import get_adamw_cls, run_load_checkpoint, run_save_checkpoint def are_optimizers_equal(optimizer1_state_dict, optimizer2_state_dict, atol=1e-8, rtol=1e-5): # Check if the keys of the main dictionaries are equal (e.g., ...
set(new_model_state.keys())
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_serialization.py
test_checkpointing
assert
func_call
97
import numpy import torch import torch.nn as nn import torch.nn.functional as F from .adapters import get_adamw_cls, run_load_checkpoint, run_save_checkpoint def are_optimizers_equal(optimizer1_state_dict, optimizer2_state_dict, atol=1e-8, rtol=1e-5): # Check if the keys of the main dictionaries are equal (e.g., ...
set(new_optimizer_state.keys())
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_serialization.py
test_checkpointing
assert_*
func_call
101
import numpy import torch import torch.nn as nn import torch.nn.functional as F from .adapters import get_adamw_cls, run_load_checkpoint, run_save_checkpoint def are_optimizers_equal(optimizer1_state_dict, optimizer2_state_dict, atol=1e-8, rtol=1e-5): # Check if the keys of the main dictionaries are equal (e.g., ...
new_model_state[key].detach().numpy())
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_tokenizer.py
test_roundtrip_unicode_string_with_special_tokens
assert
numeric_literal
83
from __future__ import annotations import json import os import resource import sys import psutil import pytest import tiktoken from .adapters import get_tokenizer from .common import FIXTURES_PATH, gpt2_bytes_to_unicode VOCAB_PATH = FIXTURES_PATH / "gpt2_vocab.json" MERGES_PATH = FIXTURES_PATH / "gpt2_merges.txt" ...
3
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_tokenizer.py
test_overlapping_special_tokens
assert
numeric_literal
86
from __future__ import annotations import json import os import resource import sys import psutil import pytest import tiktoken from .adapters import get_tokenizer from .common import FIXTURES_PATH, gpt2_bytes_to_unicode VOCAB_PATH = FIXTURES_PATH / "gpt2_vocab.json" MERGES_PATH = FIXTURES_PATH / "gpt2_merges.txt" ...
1
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_tokenizer.py
test_empty_matches_tiktoken
assert
collection
88
from __future__ import annotations import json import os import resource import sys import psutil import pytest import tiktoken from .adapters import get_tokenizer from .common import FIXTURES_PATH, gpt2_bytes_to_unicode VOCAB_PATH = FIXTURES_PATH / "gpt2_vocab.json" MERGES_PATH = FIXTURES_PATH / "gpt2_merges.txt" ...
[]
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_tokenizer.py
test_single_character_matches_tiktoken
assert
collection
88
from __future__ import annotations import json import os import resource import sys import psutil import pytest import tiktoken from .adapters import get_tokenizer from .common import FIXTURES_PATH, gpt2_bytes_to_unicode VOCAB_PATH = FIXTURES_PATH / "gpt2_vocab.json" MERGES_PATH = FIXTURES_PATH / "gpt2_merges.txt" ...
["s"]
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_tokenizer.py
test_empty_matches_tiktoken
assert
variable
90
from __future__ import annotations import json import os import resource import sys import psutil import pytest import tiktoken from .adapters import get_tokenizer from .common import FIXTURES_PATH, gpt2_bytes_to_unicode VOCAB_PATH = FIXTURES_PATH / "gpt2_vocab.json" MERGES_PATH = FIXTURES_PATH / "gpt2_merges.txt" ...
test_string
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_tokenizer.py
test_empty_matches_tiktoken
assert
variable
85
from __future__ import annotations import json import os import resource import sys import psutil import pytest import tiktoken from .adapters import get_tokenizer from .common import FIXTURES_PATH, gpt2_bytes_to_unicode VOCAB_PATH = FIXTURES_PATH / "gpt2_vocab.json" MERGES_PATH = FIXTURES_PATH / "gpt2_merges.txt" ...
reference_ids
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_train_bpe.py
test_train_bpe_speed
assert
numeric_literal
24
import json import time from .adapters import run_train_bpe from .common import FIXTURES_PATH, gpt2_bytes_to_unicode def test_train_bpe_speed(): """ Ensure that BPE training is relatively efficient by measuring training time on this small dataset and throwing an error if it takes more than 1.5 seconds. ...
1.5
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_train_bpe.py
test_train_bpe_special_tokens
assert
variable
23
import json import time from .adapters import run_train_bpe from .common import FIXTURES_PATH, gpt2_bytes_to_unicode def test_train_bpe_special_tokens(snapshot): """ Ensure that the special tokens are added to the vocabulary and not merged with other tokens. """ input_path = FIXTURES_PATH / "tinys...
word_bytes
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_train_bpe.py
test_train_bpe
assert
variable
31
import json import time from .adapters import run_train_bpe from .common import FIXTURES_PATH, gpt2_bytes_to_unicode def test_train_bpe(): input_path = FIXTURES_PATH / "corpus.en" vocab, merges = run_train_bpe( input_path=input_path, vocab_size=500, special_tokens=["<|endoftext|>"], ...
reference_merges
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_train_bpe.py
test_train_bpe
assert
func_call
42
import json import time from .adapters import run_train_bpe from .common import FIXTURES_PATH, gpt2_bytes_to_unicode def test_train_bpe(): input_path = FIXTURES_PATH / "corpus.en" vocab, merges = run_train_bpe( input_path=input_path, vocab_size=500, special_tokens=["<|endoftext|>"], ...
set(reference_vocab.keys())
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_train_bpe.py
test_train_bpe
assert
func_call
43
import json import time from .adapters import run_train_bpe from .common import FIXTURES_PATH, gpt2_bytes_to_unicode def test_train_bpe(): input_path = FIXTURES_PATH / "corpus.en" vocab, merges = run_train_bpe( input_path=input_path, vocab_size=500, special_tokens=["<|endoftext|>"], ...
set(reference_vocab.values())
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
stanford-cs336/assignment1-basics
f15d6d0743dc709ff4397328af1777f7e408ce27
7
train
train
tests/test_train_bpe.py
test_train_bpe_special_tokens
assert_*
collection
25
import json import time from .adapters import run_train_bpe from .common import FIXTURES_PATH, gpt2_bytes_to_unicode def test_train_bpe_special_tokens(snapshot): """ Ensure that the special tokens are added to the vocabulary and not merged with other tokens. """ input_path = FIXTURES_PATH / "tinys...
{ "vocab_keys": set(vocab.keys()), "vocab_values": set(vocab.values()), "merges": merges, })
f15d6d0743dc709ff4397328af1777f7e408ce27
7
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/assets/plugins/taggers/plugin_trainable_tagger_config.py
load_from_folder
assert
none_literal
22
import logging from pathlib import Path from typing import Type from steamship import File from steamship.invocable import Config, InvocableResponse, create_handler from steamship.plugin.inputs.block_and_tag_plugin_input import BlockAndTagPluginInput from steamship.plugin.inputs.train_plugin_input import TrainPluginIn...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/agents/test_chat_history.py
test_chat_history_index_init
assert
none_literal
14
import pytest from steamship import Steamship from steamship.agents.schema.chathistory import ChatHistory from steamship.data.tags.tag_constants import ChatTag @pytest.mark.usefixtures("client") def test_chat_history_index_init(client: Steamship): context_keys = {} chat_history = ChatHistory.get_or_create(c...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_e2e_mixins_importer_blockifier.py
test_importer_mixin_and_package_invocation
assert
none_literal
63
import pytest from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH from steamship_tests.utils.deployables import deploy_package from steamship import File, MimeTypes, Steamship, Task, TaskState from steamship.data.plugin.index_plugin_instance import SearchResults @pytest.mark.usefixtures("client") def test_imp...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_example_project_structure.py
test_example_project_structure
assert
none_literal
15
from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship_tests.utils.fixtures import get_steamship_client from steamship.utils.url import Verb def test_example_project_structure(): client = get_steamship_client() demo_package_path = PACKAGES_PATH /...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_package_instance.py
test_package_spec_sdk_version
assert
none_literal
32
import base64 import json import re import pytest import requests from assets.packages.demo_package import TestPackage from requests import ConnectTimeout from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH from steamship_tests.utils.deployables import deploy_package from steamship_tests.utils.fixtures import ...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_returns_list.py
test_returns_list
assert
none_literal
13
from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship_tests.utils.fixtures import get_steamship_client def test_returns_list(): client = get_steamship_client() demo_package_path = PACKAGES_PATH / "returns_list.py" with deploy_package(client,...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_safe_hello_world.py
test_safe_loaded_hello_world
assert
none_literal
13
from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship_tests.utils.fixtures import get_steamship_client def test_safe_loaded_hello_world(): client = get_steamship_client() demo_package_path = PACKAGES_PATH / "safe_loaded_hello_world.py" with ...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_safe_loaded_package_with_bad_import.py
test_safe_loaded_package_with_bad_import
assert
none_literal
16
import pytest from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship_tests.utils.fixtures import get_steamship_client from steamship import SteamshipError def test_safe_loaded_package_with_bad_import(): client = get_steamship_client() demo_package...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_signed_url_package.py
test_signed_url_package
assert
none_literal
19
import logging from assets.packages.signed_url_package import TEST_STRING from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship_tests.utils.fixtures import get_steamship_client from steamship.data.workspace import SignedUrl from steamship.utils.signed_ur...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_config_template_extraction.py
test_config_parameters
assert
none_literal
13
from typing import Optional from assets.packages.configurable_hello_world import HelloWorld from pydantic import Field from steamship.invocable.config import Config, ConfigParameterType def test_config_parameters(): config_template = HelloWorld.get_config_parameters() assert len(config_template) == 4 for...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_demo_app_spec.py
test_package_spec
assert
none_literal
15
from typing import Callable, Optional import pytest from assets.packages.configurable_hello_world import HelloWorld from assets.packages.demo_package import TestPackage from assets.packages.fancy_types import FancyTypes from assets.packages.optional_params import OptionalParams @pytest.mark.parametrize("invocable_han...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_mixins.py
test_package_with_mixin_routes
assert
none_literal
19
import pytest from assets.packages.package_with_mixins import PackageWithMixin, TestMixin from steamship import SteamshipError from steamship.invocable import Invocable, InvocableRequest, Invocation from steamship.utils.url import Verb def invoke(o: Invocable, path: str, **kwargs): req = InvocableRequest( ...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/base/test_configuration.py
test_empty_base_uris
assert
none_literal
25
import os import webbrowser from unittest import mock import pytest from pydantic import ValidationError from steamship import Configuration, SteamshipError from steamship.base.configuration import DEFAULT_API_BASE, DEFAULT_APP_BASE, DEFAULT_WEB_BASE TEST_WEB_BASE = "https://app.test.com/" TEST_APP_BASE = "https://t...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/base/test_serialization.py
test_serialize_client_to_json_works
assert
none_literal
17
import json import pytest from steamship.client import Steamship from steamship.data.block import Block from steamship.data.file import File from steamship.data.tags.tag import Tag @pytest.mark.usefixtures("client") def test_serialize_client_to_json_works(client: Steamship): assert "use" not in client.dict().key...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/base/test_task.py
test_background_task_call
assert
none_literal
19
from __future__ import annotations import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship import SteamshipError from steamship.base.model import CamelModel from steamship.base.tasks import TaskState def test_background_task_call(): client = get_steamship_client() # The ...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_blockify.py
test_file_upload_then_parse
assert
none_literal
14
from steamship_tests.utils.fixtures import get_steamship_client from steamship import File from steamship.base import TaskState def test_file_upload_then_parse(): steamship = get_steamship_client() a = File.create( steamship, content="This is a test.", ) assert a.id is not
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embed_file.py
test_file_parse
assert
none_literal
31
from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index from steamship import DocTag, File, MimeTypes, PluginInstance, Tag _TEST_EMBEDDER = "test-embedder" T = "A nice poem" P1_1 = "Roses are red." P1_2 = "Violets are blue." P2_1 = "Sugar is sweet." P2_2 ...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embedding_index.py
test_create_index
assert
none_literal
22
import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index, random_name from steamship import SteamshipError, Tag from steamship.data.embeddings import EmbeddedItem _TEST_EMBEDDER = "test-embedder" def test_create_index(): client = get_stea...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/test_client.py
test_connect
assert
none_literal
13
import pytest from steamship_tests.utils.client import TESTING_PROFILE from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_name from steamship import Steamship, SteamshipError, Workspace from steamship.data.user import User def test_connect(): """Test ba...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/test_task_dependencies.py
schedule_task
assert
none_literal
18
from typing import List import pytest from pydantic import BaseModel from steamship_tests.utils.fixtures import get_steamship_client from steamship import SteamshipError, Task, TaskState def schedule_task(client, please_fail: bool = False, dependencies: List[Task] = None) -> Task: response = client.post( ...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/tags/test_file_tags.py
test_query
assert
none_literal
17
import pytest from pydantic import ValidationError from steamship import Block, File, MimeTypes from steamship.client import Steamship from steamship.data.tags import Tag def test_query(client: Steamship): a = File.create( client=client, blocks=[ Block(text="A", tags=[Tag(kind="BlockTa...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_chat.py
test_chat_create
assert
none_literal
16
import uuid import pytest from steamship import DocTag from steamship.agents.schema import ChatHistory from steamship.client import Steamship from steamship.data import TagKind from steamship.data.tags.tag_constants import ChatTag, RoleTag, TagValueKey @pytest.mark.usefixtures("client") def test_chat_create(client: ...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_package_version.py
test_version_create
assert
none_literal
17
from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import zip_deployable from steamship_tests.utils.fixtures import get_steamship_client from steamship import Package, PackageVersion def test_version_create(): client = get_steamship_client() demo_package_path = PACKAGES_PATH / "d...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_plugins.py
test_plugin_public
assert
none_literal
15
import uuid import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship import PluginInstance, SteamshipError, Workspace from steamship.data.plugin import Plugin, PluginAdapterType, PluginType from steamship.data.user import User def test_plugin_public(): steamship = get_steamshi...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_task_comments.py
test_task_comment_list_paging
assert
none_literal
32
import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index, random_name from steamship import SteamshipError, Tag from steamship.base.request import SortOrder from steamship.base.tasks import TaskComment from steamship.data.embeddings import Embe...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_workspace.py
test_default_workspace
assert
none_literal
11
import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship import SteamshipError, Workspace from steamship.base.request import SortOrder def test_default_workspace(): client = get_steamship_client() workspace = Workspace.get(client=client) assert workspace is not
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/plugin/integration/test_e2e_async_blockifier.py
test_e2e_async_blockifier_plugin
assert
none_literal
44
from assets.plugins.blockifiers.async_blockifier import ASYNC_JOB_ID, STATUS_MESSAGE from steamship_tests import PLUGINS_PATH from steamship_tests.utils.deployables import deploy_plugin from steamship_tests.utils.file import upload_file from steamship_tests.utils.fixtures import get_steamship_client def test_e2e_async...
None
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/agents/test_chat_history.py
test_chat_history_index_init
assert
numeric_literal
27
import pytest from steamship import Steamship from steamship.agents.schema.chathistory import ChatHistory from steamship.data.tags.tag_constants import ChatTag @pytest.mark.usefixtures("client") def test_chat_history_index_init(client: Steamship): context_keys = {} chat_history = ChatHistory.get_or_create(c...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/agents/test_message_formatting.py
test_search_method_formatting
assert
numeric_literal
21
import pytest from steamship import Steamship from steamship.agents.llms import OpenAI from steamship.agents.react import ReACTOutputParser from steamship.agents.schema import Action, AgentContext, LLMAgent from steamship.agents.schema.chathistory import ChatHistory from steamship.data.tags.tag_constants import ChatTa...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/agents/test_react_parse_output.py
test_parse_output
assert
numeric_literal
17
import pytest from steamship import Block, File, Steamship from steamship.agents.react import ReACTOutputParser @pytest.mark.usefixtures("client") def test_parse_output(client: Steamship): file = File.create(client, blocks=[Block(text="test"), Block(text="Another test")]) block_id = file.blocks[0].id blo...
3
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/agents/test_react_parse_output.py
test_parse_output
assert
numeric_literal
24
import pytest from steamship import Block, File, Steamship from steamship.agents.react import ReACTOutputParser @pytest.mark.usefixtures("client") def test_parse_output(client: Steamship): file = File.create(client, blocks=[Block(text="test"), Block(text="Another test")]) block_id = file.blocks[0].id blo...
5
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/agents/test_react_parse_output.py
test_parse_output
assert
numeric_literal
33
import pytest from steamship import Block, File, Steamship from steamship.agents.react import ReACTOutputParser @pytest.mark.usefixtures("client") def test_parse_output(client: Steamship): file = File.create(client, blocks=[Block(text="test"), Block(text="Another test")]) block_id = file.blocks[0].id blo...
4
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/agents/test_telegram.py
test_telegram
assert
numeric_literal
38
from typing import Dict import pytest import requests from assets.packages.transports.mock_telegram_package import MockTelegram from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship import File, Steamship config_template = { "bot_token": {"type": "s...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/agents/test_telegram.py
test_telegram
assert
numeric_literal
73
from typing import Dict import pytest import requests from assets.packages.transports.mock_telegram_package import MockTelegram from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship import File, Steamship config_template = { "bot_token": {"type": "s...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_e2e_mixins_importer_blockifier.py
test_importer_mixin_and_package_invocation
assert
numeric_literal
52
import pytest from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH from steamship_tests.utils.deployables import deploy_package from steamship import File, MimeTypes, Steamship, Task, TaskState from steamship.data.plugin.index_plugin_instance import SearchResults @pytest.mark.usefixtures("client") def test_imp...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_e2e_mixins_importer_blockifier.py
test_importer_mixin_and_package_invocation
assert
numeric_literal
77
import pytest from steamship_tests import PACKAGES_PATH, TEST_ASSETS_PATH from steamship_tests.utils.deployables import deploy_package from steamship import File, MimeTypes, Steamship, Task, TaskState from steamship.data.plugin.index_plugin_instance import SearchResults @pytest.mark.usefixtures("client") def test_imp...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_e2e_mixins_indexer_pipeline.py
test_indexer_pipeline_mixin
assert
numeric_literal
28
import pytest from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship import Steamship, Task, TaskState from steamship.data.plugin.index_plugin_instance import SearchResults @pytest.mark.usefixtures("client") def test_indexer_pipeline_mixin(client: Steamsh...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_instance_init.py
test_plugin_init_dir
assert
numeric_literal
15
import pytest from assets.packages.package_verifying_instance_init import PackageWithInstanceInit from assets.plugins.generators.plugin_with_instance_init import TestGeneratorWithInit from assets.plugins.taggers.plugin_trainable_tagger import TestTrainableTaggerPlugin from steamship_tests import PACKAGES_PATH, PLUGINS_...
4
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/integration/test_returns_list.py
test_returns_list
assert
numeric_literal
14
from steamship_tests import PACKAGES_PATH from steamship_tests.utils.deployables import deploy_package from steamship_tests.utils.fixtures import get_steamship_client def test_returns_list(): client = get_steamship_client() demo_package_path = PACKAGES_PATH / "returns_list.py" with deploy_package(client,...
3
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_config_template_extraction.py
test_config_parameters
assert
numeric_literal
11
from typing import Optional from assets.packages.configurable_hello_world import HelloWorld from pydantic import Field from steamship.invocable.config import Config, ConfigParameterType def test_config_parameters(): config_template = HelloWorld.get_config_parameters() assert len(config_template) ==
4
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_config_template_extraction.py
test_config_parameter_numbers
assert
numeric_literal
15
from typing import Optional from assets.packages.configurable_hello_world import HelloWorld from pydantic import Field from steamship.invocable.config import Config, ConfigParameterType def test_config_parameter_numbers(): class NumberConfig(Config): x: float y: int config_template = NumberC...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_config_template_extraction.py
test_config_parameter_with_defaults
assert
numeric_literal
25
from typing import Optional from assets.packages.configurable_hello_world import HelloWorld from pydantic import Field from steamship.invocable.config import Config, ConfigParameterType def test_config_parameter_with_defaults(): class DefaultsConfig(Config): w: str = "deeeefault" x: bool = True ...
3
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_config_template_extraction.py
test_optional_config_parameters
assert
numeric_literal
22
from typing import Optional from assets.packages.configurable_hello_world import HelloWorld from pydantic import Field from steamship.invocable.config import Config, ConfigParameterType def test_optional_config_parameters(): class DefaultsConfig(Config): w: Optional[str] = "deeeefault" w2: Option...
8
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_config_template_extraction.py
test_descriptions
assert
numeric_literal
15
from typing import Optional from assets.packages.configurable_hello_world import HelloWorld from pydantic import Field from steamship.invocable.config import Config, ConfigParameterType def test_descriptions(): class DescriptionConfig(Config): x: int = Field(description="Test Description") descripti...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_demo_app_spec.py
test_package_spec_fancy_types
assert
numeric_literal
15
from typing import Callable, Optional import pytest from assets.packages.configurable_hello_world import HelloWorld from assets.packages.demo_package import TestPackage from assets.packages.fancy_types import FancyTypes from assets.packages.optional_params import OptionalParams @pytest.mark.parametrize("invocable_han...
5
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_demo_app_spec.py
test_package_spec_fancy_types
assert
numeric_literal
20
from typing import Callable, Optional import pytest from assets.packages.configurable_hello_world import HelloWorld from assets.packages.demo_package import TestPackage from assets.packages.fancy_types import FancyTypes from assets.packages.optional_params import OptionalParams @pytest.mark.parametrize("invocable_han...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_demo_app_spec.py
test_package_spec_missing_configuration
assert
numeric_literal
19
from typing import Callable, Optional import pytest from assets.packages.configurable_hello_world import HelloWorld from assets.packages.demo_package import TestPackage from assets.packages.fancy_types import FancyTypes from assets.packages.optional_params import OptionalParams @pytest.mark.parametrize("invocable_han...
7
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_demo_app_spec.py
test_package_spec_optional_params
assert
numeric_literal
17
from typing import Callable, Optional import pytest from assets.packages.configurable_hello_world import HelloWorld from assets.packages.demo_package import TestPackage from assets.packages.fancy_types import FancyTypes from assets.packages.optional_params import OptionalParams @pytest.mark.parametrize("invocable_han...
4
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_demo_app_spec.py
test_package_spec_optional_params
assert
numeric_literal
25
from typing import Callable, Optional import pytest from assets.packages.configurable_hello_world import HelloWorld from assets.packages.demo_package import TestPackage from assets.packages.fancy_types import FancyTypes from assets.packages.optional_params import OptionalParams @pytest.mark.parametrize("invocable_han...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_indexer_mixin.py
test_indexer_mixin_and_qa_tool
assert
numeric_literal
18
import pytest from steamship import Steamship from steamship.agents.llms import OpenAI from steamship.agents.schema import AgentContext from steamship.agents.tools.question_answering import VectorSearchQATool from steamship.agents.utils import with_llm from steamship.invocable.mixins.indexer_mixin import IndexerMixin ...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_indexer_pipeline_mixin.py
test_set_file_status
assert
numeric_literal
17
import pytest from steamship import File, Steamship from steamship.invocable import PackageService from steamship.invocable.mixins.indexer_pipeline_mixin import IndexerPipelineMixin @pytest.mark.usefixtures("client") def test_set_file_status(client: Steamship): """Tests that we can inspect the package and mixin r...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_mixins.py
test_package_with_mixin_routes
assert
numeric_literal
20
import pytest from assets.packages.package_with_mixins import PackageWithMixin, TestMixin from steamship import SteamshipError from steamship.invocable import Invocable, InvocableRequest, Invocation from steamship.utils.url import Verb def invoke(o: Invocable, path: str, **kwargs): req = InvocableRequest( ...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_mixins.py
test_package_with_mixin_routes
assert
numeric_literal
35
import pytest from assets.packages.package_with_mixins import PackageWithMixin, TestMixin from steamship import SteamshipError from steamship.invocable import Invocable, InvocableRequest, Invocation from steamship.utils.url import Verb def invoke(o: Invocable, path: str, **kwargs): req = InvocableRequest( ...
5
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_multi_inheritance.py
test_multi_inheritance_instance_init
assert
numeric_literal
32
import pytest from steamship import Steamship from steamship.invocable import PackageService @pytest.mark.usefixtures("client") def test_multi_inheritance_instance_init(client: Steamship): class PackageServiceA(PackageService): a = 0 def instance_init(self): self.a += 1 class Pac...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_multi_inheritance.py
test_multi_inheritance_instance_init
assert
numeric_literal
38
import pytest from steamship import Steamship from steamship.invocable import PackageService @pytest.mark.usefixtures("client") def test_multi_inheritance_instance_init(client: Steamship): class PackageServiceA(PackageService): a = 0 def instance_init(self): self.a += 1 class Pac...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_multi_inheritance.py
test_multi_inheritance_first_class_instance_init
assert
numeric_literal
30
import pytest from steamship import Steamship from steamship.invocable import PackageService @pytest.mark.usefixtures("client") def test_multi_inheritance_first_class_instance_init(client: Steamship): class PackageServiceA(PackageService): a = 0 def instance_init(self): self.a += 1 ...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/app/unit/test_routes_on_superclasses.py
test_l1_routes
assert
numeric_literal
41
from typing import Any, Dict, Type import pytest from steamship import Steamship, SteamshipError from steamship.agents.llms import OpenAI from steamship.agents.mixins.transports.telegram import TelegramTransport, TelegramTransportConfig from steamship.agents.react import ReACTAgent from steamship.agents.schema import...
6
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_blockify.py
test_file_upload_then_parse
assert
numeric_literal
17
from steamship_tests.utils.fixtures import get_steamship_client from steamship import File from steamship.base import TaskState def test_file_upload_then_parse(): steamship = get_steamship_client() a = File.create( steamship, content="This is a test.", ) assert a.id is not None q...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_blockify.py
test_file_upload_then_parse
assert
numeric_literal
28
from steamship_tests.utils.fixtures import get_steamship_client from steamship import File from steamship.base import TaskState def test_file_upload_then_parse(): steamship = get_steamship_client() a = File.create( steamship, content="This is a test.", ) assert a.id is not None q...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_blockify.py
test_file_upload_then_parse
assert
numeric_literal
46
from steamship_tests.utils.fixtures import get_steamship_client from steamship import File from steamship.base import TaskState def test_file_upload_then_parse(): steamship = get_steamship_client() a = File.create( steamship, content="This is a test.", ) assert a.id is not None q...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embed.py
basic_embeddings
assert
numeric_literal
22
from steamship_tests.utils.fixtures import get_steamship_client from steamship import File, PluginInstance, Steamship from steamship.data import TagKind, TagValueKey _TEST_EMBEDDER = "test-embedder" def count_embeddings(file: File): embeddings = 0 for block in file.blocks: for tag in block.tags: ...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embed_file.py
test_file_parse
assert
numeric_literal
44
from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index from steamship import DocTag, File, MimeTypes, PluginInstance, Tag _TEST_EMBEDDER = "test-embedder" T = "A nice poem" P1_1 = "Roses are red." P1_2 = "Violets are blue." P2_1 = "Sugar is sweet." P2_2 ...
6
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embed_file.py
test_file_parse
assert
numeric_literal
52
from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index from steamship import DocTag, File, MimeTypes, PluginInstance, Tag _TEST_EMBEDDER = "test-embedder" T = "A nice poem" P1_1 = "Roses are red." P1_2 = "Violets are blue." P2_1 = "Sugar is sweet." P2_2 ...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embedding_index.py
test_reset_index
assert
numeric_literal
27
import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index, random_name from steamship import SteamshipError, Tag from steamship.data.embeddings import EmbeddedItem _TEST_EMBEDDER = "test-embedder" def test_reset_index(): steamship = get_st...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embedding_index.py
test_reset_index
assert
numeric_literal
35
import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index, random_name from steamship import SteamshipError, Tag from steamship.data.embeddings import EmbeddedItem _TEST_EMBEDDER = "test-embedder" def test_reset_index(): steamship = get_st...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embedding_index.py
test_index_usage
assert
numeric_literal
29
import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index, random_name from steamship import SteamshipError, Tag from steamship.data.embeddings import EmbeddedItem _TEST_EMBEDDER = "test-embedder" def _list_equal(actual, expected): assert ...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embedding_index.py
test_oversize_insert_override
assert
numeric_literal
25
import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index, random_name from steamship import SteamshipError, Tag from steamship.data.embeddings import EmbeddedItem _TEST_EMBEDDER = "test-embedder" def _list_equal(actual, expected): assert ...
4
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_embedding_index.py
test_list_items_paging
assert
numeric_literal
28
import pytest from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_index, random_name from steamship import SteamshipError, Tag from steamship.data.embeddings import EmbeddedItem _TEST_EMBEDDER = "test-embedder" def _list_equal(actual, expected): assert ...
3
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_tag.py
test_parsing
assert
numeric_literal
12
from steamship_tests.utils.fixtures import get_steamship_client from steamship import PluginInstance def test_parsing(): steamship = get_steamship_client() parser = PluginInstance.create(steamship, plugin_handle="test-tagger") resp = parser.tag("This is a test") resp.wait() resp = resp.output ...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_tag.py
test_parsing
assert
numeric_literal
16
from steamship_tests.utils.fixtures import get_steamship_client from steamship import PluginInstance def test_parsing(): steamship = get_steamship_client() parser = PluginInstance.create(steamship, plugin_handle="test-tagger") resp = parser.tag("This is a test") resp.wait() resp = resp.output ...
5
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_tag_file.py
tag_file
assert
numeric_literal
50
from enum import Enum from steamship_tests.utils.fixtures import get_steamship_client from steamship import Block, DocTag, File, MimeTypes, PluginInstance, Steamship from steamship.base import TaskState def count_blocks_with_tag(blocks: [Block], tag_kind: Enum, tag_name: Enum): c = 0 for block in blocks: ...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_tag_file.py
tag_file
assert
numeric_literal
54
from enum import Enum from steamship_tests.utils.fixtures import get_steamship_client from steamship import Block, DocTag, File, MimeTypes, PluginInstance, Steamship from steamship.base import TaskState def count_blocks_with_tag(blocks: [Block], tag_kind: Enum, tag_name: Enum): c = 0 for block in blocks: ...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_tag_file.py
tag_file
assert
numeric_literal
59
from enum import Enum from steamship_tests.utils.fixtures import get_steamship_client from steamship import Block, DocTag, File, MimeTypes, PluginInstance, Steamship from steamship.base import TaskState def count_blocks_with_tag(blocks: [Block], tag_kind: Enum, tag_name: Enum): c = 0 for block in blocks: ...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/operations/test_tag_file.py
tag_file
assert
numeric_literal
73
from enum import Enum from steamship_tests.utils.fixtures import get_steamship_client from steamship import Block, DocTag, File, MimeTypes, PluginInstance, Steamship from steamship.base import TaskState def count_blocks_with_tag(blocks: [Block], tag_kind: Enum, tag_name: Enum): c = 0 for block in blocks: ...
4
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/test_client.py
test_temporary_workspace
assert
numeric_literal
13
import pytest from steamship_tests.utils.client import TESTING_PROFILE from steamship_tests.utils.fixtures import get_steamship_client from steamship_tests.utils.random import random_name from steamship import Steamship, SteamshipError, Workspace from steamship.data.user import User def test_temporary_workspace(): ...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/client/test_task_dependencies.py
test_task_wait_callback
assert
numeric_literal
41
from typing import List import pytest from pydantic import BaseModel from steamship_tests.utils.fixtures import get_steamship_client from steamship import SteamshipError, Task, TaskState def schedule_task(client, please_fail: bool = False, dependencies: List[Task] = None) -> Task: response = client.post( ...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/tags/test_file_tags.py
test_file_tag
assert
numeric_literal
24
import pytest from pydantic import ValidationError from steamship import Block, File, MimeTypes from steamship.client import Steamship from steamship.data.tags import Tag @pytest.mark.usefixtures("client") def test_file_tag(client: Steamship): a = File.create( client, content="A", mime_typ...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/tags/test_file_tags.py
test_file_tag
assert
numeric_literal
30
import pytest from pydantic import ValidationError from steamship import Block, File, MimeTypes from steamship.client import Steamship from steamship.data.tags import Tag @pytest.mark.usefixtures("client") def test_file_tag(client: Steamship): a = File.create( client, content="A", mime_typ...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/tags/test_file_tags.py
test_query
assert
numeric_literal
31
import pytest from pydantic import ValidationError from steamship import Block, File, MimeTypes from steamship.client import Steamship from steamship.data.tags import Tag def test_query(client: Steamship): a = File.create( client=client, blocks=[ Block(text="A", tags=[Tag(kind="BlockTa...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_block.py
test_query
assert
numeric_literal
36
import pytest import requests from steamship_tests import TEST_ASSETS_PATH from steamship import MimeTypes from steamship.client import Steamship from steamship.data import TagKind from steamship.data.block import Block from steamship.data.file import File from steamship.data.tags.tag import Tag @pytest.mark.usefixtu...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_block.py
test_append_indices
assert
numeric_literal
17
import pytest import requests from steamship_tests import TEST_ASSETS_PATH from steamship import MimeTypes from steamship.client import Steamship from steamship.data import TagKind from steamship.data.block import Block from steamship.data.file import File from steamship.data.tags.tag import Tag @pytest.mark.usefixtu...
0
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_block.py
test_append_indices
assert
numeric_literal
23
import pytest import requests from steamship_tests import TEST_ASSETS_PATH from steamship import MimeTypes from steamship.client import Steamship from steamship.data import TagKind from steamship.data.block import Block from steamship.data.file import File from steamship.data.tags.tag import Tag @pytest.mark.usefixtu...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_chat.py
test_chat_create
assert
numeric_literal
18
import uuid import pytest from steamship import DocTag from steamship.agents.schema import ChatHistory from steamship.client import Steamship from steamship.data import TagKind from steamship.data.tags.tag_constants import ChatTag, RoleTag, TagValueKey @pytest.mark.usefixtures("client") def test_chat_create(client: ...
3
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_chat.py
test_chat_append_system
assert
numeric_literal
19
import uuid import pytest from steamship import DocTag from steamship.agents.schema import ChatHistory from steamship.client import Steamship from steamship.data import TagKind from steamship.data.tags.tag_constants import ChatTag, RoleTag, TagValueKey @pytest.mark.usefixtures("client") def test_chat_append_system(c...
1
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor
steamship-core/python-client
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
train
train
tests/steamship_tests/data/test_chat.py
test_chat_append_system
assert
numeric_literal
22
import uuid import pytest from steamship import DocTag from steamship.agents.schema import ChatHistory from steamship.client import Steamship from steamship.data import TagKind from steamship.data.tags.tag_constants import ChatTag, RoleTag, TagValueKey @pytest.mark.usefixtures("client") def test_chat_append_system(c...
2
d58f2a17fc94d04439fc14e5e0fd8a50d221d5b7
240
v2_extractor_at_anchor