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
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_go_handler.py
test_get_execution_commands
assert
numeric_literal
17
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.go_handler import GoHandler class TestGoHandler: def test_get_execution_commands(self) -> None: """Test getting execution commands.""" handler = GoHandle...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_interactive_session.py
test_run_executes_code_and_returns_output
assert
numeric_literal
83
import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import Cons...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_interactive_session.py
test_run_executes_code_and_returns_output
assert
numeric_literal
85
import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import Cons...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_java_handler.py
test_get_execution_commands
assert
numeric_literal
17
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.java_handler import JavaHandler class TestJavaHandler: def test_get_execution_commands(self) -> None: """Test getting execution commands.""" handler = Ja...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_javascript_handler.py
test_get_execution_commands
assert
numeric_literal
17
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.javascript_handler import JavaScriptHandler class TestJavaScriptHandler: def test_get_execution_commands(self) -> None: """Test getting execution commands.""" ...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_k8s_utils.py
test_retry_on_websocket_error
assert
numeric_literal
24
from unittest.mock import MagicMock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.k8s_utils import retry_k8s_api_call class TestRetryK8sApiCall: def test_retry_on_websocket_error(self): """Test retry on WebSocket handshake error.""" # Mock ApiExcepti...
3
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_k8s_utils.py
test_retry_on_websocket_error
assert
numeric_literal
25
from unittest.mock import MagicMock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.k8s_utils import retry_k8s_api_call class TestRetryK8sApiCall: def test_retry_on_websocket_error(self): """Test retry on WebSocket handshake error.""" # Mock ApiExcepti...
2
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_k8s_utils.py
test_no_retry_on_other_api_exception
assert
numeric_literal
21
from unittest.mock import MagicMock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.k8s_utils import retry_k8s_api_call class TestRetryK8sApiCall: def test_no_retry_on_other_api_exception(self): """Test no retry on non-WebSocket ApiException.""" # 404 ...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_kubernetes.py
test_open_waiting_for_pod
assert
numeric_literal
52
import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import ContainerError, NotO...
3
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_kubernetes.py
test_open_waiting_for_pod
assert
numeric_literal
53
import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import ContainerError, NotO...
2
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_kubernetes.py
test_execute_command_success
assert
numeric_literal
49
import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import ContainerError, NotO...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_kubernetes.py
test_execute_command_with_stderr
assert
numeric_literal
36
import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import ContainerError, NotO...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mcp_server.py
test_execute_code_basic_success
assert
numeric_literal
60
import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import Mi...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mcp_server.py
test_execute_code_with_visualization
assert
numeric_literal
64
import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import Mi...
2
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mcp_server.py
test_all_languages_have_examples
assert
numeric_literal
40
import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import Mi...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_micromamba.py
test_init_with_all_docker_session_params
assert
numeric_literal
31
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.micromamba import MicromambaSession from llm_sandbox.security import SecurityPolicy class TestMicromambaSessionInit: @patch("llm_sandbox.micromamba.docker.from_env") @patch("llm_sandbox....
2
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_micromamba.py
test_execute_command_wraps_with_micromamba_run
assert
numeric_literal
35
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.micromamba import MicromambaSession from llm_sandbox.security import SecurityPolicy class TestMicromambaSessionExecuteCommand: @patch("llm_sandbox.micromamba.docker.from_env") @patch("ll...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mixins.py
test_execute_with_timeout_no_timeout
assert
numeric_literal
24
import io import tarfile import time from pathlib import Path from unittest.mock import MagicMock, Mock, patch import pytest from llm_sandbox.core.mixins import CommandExecutionMixin, FileOperationsMixin, TimeoutMixin from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import CommandEmptyError, Not...
5
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mixins.py
test_execute_command_success
assert
numeric_literal
41
import io import tarfile import time from pathlib import Path from unittest.mock import MagicMock, Mock, patch import pytest from llm_sandbox.core.mixins import CommandExecutionMixin, FileOperationsMixin, TimeoutMixin from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import CommandEmptyError, Not...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_plot_clearing.py
test_shell_command_compatibility
assert
numeric_literal
68
import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_sandbox.data import ConsoleOutput, FileType, PlotOutput def create_mock_plot_data(count: int = 1) -> bytes | list[PlotOutput]: """Create mock plot ...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_plot_clearing.py
test_clear_plots_parameter
assert
numeric_literal
89
import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_sandbox.data import ConsoleOutput, FileType, PlotOutput def create_mock_plot_data(count: int = 1) -> bytes | list[PlotOutput]: """Create mock plot ...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_plot_clearing.py
test_clear_plots_parameter
assert
numeric_literal
93
import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_sandbox.data import ConsoleOutput, FileType, PlotOutput def create_mock_plot_data(count: int = 1) -> bytes | list[PlotOutput]: """Create mock plot ...
2
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_podman.py
test_execute_command_success_no_stream
assert
numeric_literal
45
from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import Comman...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_base.py
test_initialization
assert
numeric_literal
21
import time from typing import Any from unittest.mock import MagicMock import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.base import ContainerPoolManager, ContainerState, PooledContainer from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig from llm_sandbox.pool.exceptio...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_base.py
test_recycling_on_release
assert
numeric_literal
29
import time from typing import Any from unittest.mock import MagicMock import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.base import ContainerPoolManager, ContainerState, PooledContainer from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig from llm_sandbox.pool.exceptio...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_base.py
test_close_cleanup
assert
numeric_literal
22
import time from typing import Any from unittest.mock import MagicMock import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.base import ContainerPoolManager, ContainerState, PooledContainer from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig from llm_sandbox.pool.exceptio...
2
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_config.py
test_enum_iteration
assert
numeric_literal
12
import pytest from pydantic import ValidationError from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig class TestExhaustionStrategy: def test_enum_iteration(self) -> None: """Test iterating over enum.""" strategies = list(ExhaustionStrategy) assert len(strategies) ==
3
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_config.py
test_default_values
assert
numeric_literal
13
import pytest from pydantic import ValidationError from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig class TestPoolConfig: def test_default_values(self) -> None: """Test default configuration values.""" config = PoolConfig() assert config.max_pool_size == 10 asse...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_config.py
test_custom_pool_sizes
assert
numeric_literal
13
import pytest from pydantic import ValidationError from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig class TestPoolConfig: def test_custom_pool_sizes(self) -> None: """Test custom pool size configuration.""" config = PoolConfig(max_pool_size=20, min_pool_size=5) assert co...
5
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_config.py
test_max_container_uses_minimum_validation
assert
numeric_literal
12
import pytest from pydantic import ValidationError from llm_sandbox.pool.config import ExhaustionStrategy, PoolConfig class TestPoolConfig: def test_max_container_uses_minimum_validation(self) -> None: """Test max_container_uses must be >= 1 when not None.""" config = PoolConfig(max_container_use...
1
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_exceptions.py
test_init_with_timeout
assert
numeric_literal
13
import pytest from llm_sandbox.pool.exceptions import PoolClosedError, PoolExhaustedError, PoolHealthCheckError class TestPoolExhaustedError: def test_init_with_timeout(self) -> None: """Test PoolExhaustedError initialization with timeout.""" error = PoolExhaustedError(pool_size=5, timeout=30.0) ...
5
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_factory.py
test_create_with_default_config
assert
numeric_literal
22
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import UnsupportedBackendError from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.factory import create_pool_manager class TestCreatePoolManager: ...
0
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_factory.py
test_create_with_custom_config
assert
numeric_literal
22
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import UnsupportedBackendError from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.factory import create_pool_manager class TestCreatePoolManager: ...
5
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_backend.py
test_docker_specific_features
assert
bool_literal
40
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import MissingDependencyError, UnsupportedBackendError from llm_sandbox.security import SecurityPolicy from llm_sandbox.session import create_session class TestBackendS...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_cpp_handler.py
test_init
assert
bool_literal
20
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.cpp_handler import CppHandler class TestCppHandler: def test_init(self) -> None: """Test CppHandler initialization.""" handler = CppHandler() as...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_docker.py
test_init_with_custom_params
assert
bool_literal
43
import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import ValidationError from llm_sandbox.const import DefaultImage, SupportedLanguage from llm_sandbox.data ...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_go_handler.py
test_init
assert
bool_literal
20
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.go_handler import GoHandler class TestGoHandler: def test_init(self) -> None: """Test GoHandler initialization.""" handler = GoHandler() assert ...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_interactive_session.py
test_wait_for_remote_file_success
assert
bool_literal
133
import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import Cons...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_javascript_handler.py
test_init
assert
bool_literal
20
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.javascript_handler import JavaScriptHandler class TestJavaScriptHandler: def test_init(self) -> None: """Test JavaScriptHandler initialization.""" handle...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_language_handlers.py
test_is_support_plot_detection_true
assert
bool_literal
15
import logging import pytest from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.factory import LanguageHandlerFactory from llm_sandbox.language_handlers.python_handler import PythonHandler class TestAbstractLanguageHandler: def test_is_support_plot_detection_true(sel...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_libraries_param.py
test_libraries_with_skip_environment_setup
assert
bool_literal
32
from unittest.mock import MagicMock, patch from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.session_base import BaseSession from llm_sandbox.pool import PoolConfig, create_pool_manager class TestPoolManagerLibrariesParameter: @patch("llm_sandbox.pool.docker_pool.docker.from_e...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mcp_server.py
test_get_commit_container_true
assert
bool_literal
32
import json import os from unittest.mock import MagicMock, patch import pytest from mcp.types import ImageContent, TextContent from llm_sandbox import SupportedLanguage from llm_sandbox.const import SandboxBackend from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import Mi...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_micromamba.py
test_init_with_defaults
assert
bool_literal
28
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.micromamba import MicromambaSession from llm_sandbox.security import SecurityPolicy class TestMicromambaSessionInit: @patch("llm_sandbox.micromamba.docker.from_env") @patch("llm_sandbox....
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_podman.py
test_init_with_custom_params
assert
bool_literal
51
from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import Comman...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_docker.py
test_health_check_healthy_container
assert
bool_literal
26
from unittest.mock import MagicMock, patch from docker.errors import NotFound from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.docker_pool import DockerPoolManager class TestDockerPoolManagerHealthCheck: @patch("llm_sandbox.pool.docker_pool.doc...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_kubernetes.py
test_health_check_healthy_pod
assert
bool_literal
29
from unittest.mock import MagicMock, patch from kubernetes.client.exceptions import ApiException from llm_sandbox.const import SupportedLanguage from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.kubernetes_pool import KubernetesPoolManager class TestKubernetesPoolManagerHealthCheck: @patch("k...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_session.py
test_artifact_session_init
assert
bool_literal
24
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.exceptions import SessionNotOpenError from llm_sandbox.pool.session import ArtifactPo...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_r_handler.py
test_init
assert
bool_literal
24
import logging import re from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportPlotError, PackageManagerError from llm_sandbox.language_handlers.base import PlotLibrary from llm_sandbox.language_handlers.r_handler ...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_ruby_handler.py
test_init
assert
bool_literal
20
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.ruby_handler import RubyHandler class TestRubyHandler: def test_init(self) -> None: """Test RubyHandler initialization.""" handler = RubyHandler() ...
True
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_data.py
test_console_output_creation
assert
string_literal
30
from dataclasses import FrozenInstanceError import pytest from llm_sandbox.data import ConsoleOutput, ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import ( CommandEmptyError, CommandFailedError, ExtraArgumentsError, ImageNotFoundError, ImagePullError, LanguageHandlerNotIni...
""
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_data_missing.py
test_console_output_defaults
assert
string_literal
13
import warnings from llm_sandbox.data import ConsoleOutput, ExecutionResult, FileType, PlotOutput class TestDataClassDefaults: def test_console_output_defaults(self) -> None: """Test ConsoleOutput with default values.""" # Test with all defaults output = ConsoleOutput() assert out...
""
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_docker.py
test_process_stream_output_with_other_exception
assert
string_literal
40
import io import tarfile import tempfile from collections.abc import Generator from unittest.mock import MagicMock, Mock, patch import pytest from docker.errors import ImageNotFound, NotFound from pydantic_core import ValidationError from llm_sandbox.const import DefaultImage, SupportedLanguage from llm_sandbox.data ...
""
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_kubernetes.py
test_process_non_stream_output_invalid
assert
string_literal
32
import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import ContainerError, NotO...
""
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_r_handler.py
test_plot_detection_config
assert
string_literal
22
import logging import re from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportPlotError, PackageManagerError from llm_sandbox.language_handlers.base import PlotLibrary from llm_sandbox.language_handlers.r_handler ...
""
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_security_missing.py
test_security_pattern_empty_description
assert
string_literal
18
import re import pytest from llm_sandbox.exceptions import InvalidRegexPatternError from llm_sandbox.security import RestrictedModule, SecurityIssueSeverity, SecurityPattern, SecurityPolicy class TestSecurityModelsValidation: def test_security_pattern_empty_description(self) -> None: """Test SecurityPat...
""
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_session.py
test_run_with_plotting_disabled
assert
string_literal
33
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import LanguageNotSupportPlotError, MissingDependenc...
""
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_kubernetes.py
test_copy_from_container_file_not_found
assert
string_literal
36
import io import tarfile import tempfile from unittest.mock import MagicMock, Mock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.const import DefaultImage, SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import ContainerError, NotO...
b""
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_r_handler.py
test_init
assert
string_literal
20
import logging import re from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportPlotError, PackageManagerError from llm_sandbox.language_handlers.base import PlotLibrary from llm_sandbox.language_handlers.r_handler ...
"R"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_const.py
test_all_languages
assert
string_literal
14
import pytest from llm_sandbox.const import DefaultImage, SandboxBackend, StrEnum, SupportedLanguage class TestSupportedLanguage: def test_all_languages(self) -> None: """Test all language values.""" assert SupportedLanguage.PYTHON == "python" assert SupportedLanguage.JAVA == "java" ...
"go"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_go_handler.py
test_init
assert
string_literal
16
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.go_handler import GoHandler class TestGoHandler: def test_init(self) -> None: """Test GoHandler initialization.""" handler = GoHandler() assert ...
"go"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_interactive_session.py
test_run_executes_code_and_returns_output
assert
string_literal
82
import json import signal import subprocess import sys import time import uuid from pathlib import Path from typing import Any, cast from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import Cons...
"ok"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_javascript_handler.py
test_init
assert
string_literal
16
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.javascript_handler import JavaScriptHandler class TestJavaScriptHandler: def test_init(self) -> None: """Test JavaScriptHandler initialization.""" handle...
"js"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_language_handler_factory.py
test_create_python_handler
assert
string_literal
26
import logging from typing import TYPE_CHECKING import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, PlotOutput from llm_sandbox.language_handlers.cpp_handler import CppHandler...
"py"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_language_handler_factory.py
test_create_javascript_handler
assert
string_literal
26
import logging from typing import TYPE_CHECKING import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, PlotOutput from llm_sandbox.language_handlers.cpp_handler import CppHandler...
"js"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_language_handler_factory.py
test_create_go_handler
assert
string_literal
26
import logging from typing import TYPE_CHECKING import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, PlotOutput from llm_sandbox.language_handlers.cpp_handler import CppHandler...
"go"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_language_handler_factory.py
test_create_ruby_handler
assert
string_literal
27
import logging from typing import TYPE_CHECKING import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, PlotOutput from llm_sandbox.language_handlers.cpp_handler import CppHandler...
"rb"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_micromamba.py
test_init_with_all_docker_session_params
assert
string_literal
32
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.micromamba import MicromambaSession from llm_sandbox.security import SecurityPolicy class TestMicromambaSessionInit: @patch("llm_sandbox.micromamba.docker.from_env") @patch("llm_sandbox....
"1g"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_python_handler.py
test_init
assert
string_literal
24
import base64 import io import logging import re import tarfile from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import FileType, PlotOutput from llm_sandbox.exceptions import LanguageNotSupportPlotError from llm_sandbox.language_handlers.b...
"py"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_ruby_handler.py
test_init
assert
string_literal
16
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.ruby_handler import RubyHandler class TestRubyHandler: def test_init(self) -> None: """Test RubyHandler initialization.""" handler = RubyHandler() ...
"rb"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_security_policy.py
test_restricted_module_creation
assert
string_literal
20
import re import pytest from llm_sandbox.exceptions import InvalidRegexPatternError from llm_sandbox.language_handlers.python_handler import PythonHandler from llm_sandbox.security import RestrictedModule, SecurityIssueSeverity, SecurityPattern, SecurityPolicy class TestRestrictedModule: def test_restricted_mod...
"os"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_const.py
test_all_languages
assert
string_literal
13
import pytest from llm_sandbox.const import DefaultImage, SandboxBackend, StrEnum, SupportedLanguage class TestSupportedLanguage: def test_all_languages(self) -> None: """Test all language values.""" assert SupportedLanguage.PYTHON == "python" assert SupportedLanguage.JAVA == "java" ...
"cpp"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_cpp_handler.py
test_init
assert
string_literal
16
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.cpp_handler import CppHandler class TestCppHandler: def test_init(self) -> None: """Test CppHandler initialization.""" handler = CppHandler() as...
"cpp"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_data.py
test_file_type_values
assert
string_literal
26
from dataclasses import FrozenInstanceError import pytest from llm_sandbox.data import ConsoleOutput, ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import ( CommandEmptyError, CommandFailedError, ExtraArgumentsError, ImageNotFoundError, ImagePullError, LanguageHandlerNotIni...
"png"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_data.py
test_file_type_values
assert
string_literal
27
from dataclasses import FrozenInstanceError import pytest from llm_sandbox.data import ConsoleOutput, ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import ( CommandEmptyError, CommandFailedError, ExtraArgumentsError, ImageNotFoundError, ImagePullError, LanguageHandlerNotIni...
"svg"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_data.py
test_file_type_values
assert
string_literal
28
from dataclasses import FrozenInstanceError import pytest from llm_sandbox.data import ConsoleOutput, ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import ( CommandEmptyError, CommandFailedError, ExtraArgumentsError, ImageNotFoundError, ImagePullError, LanguageHandlerNotIni...
"pdf"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_java_handler.py
test_init
assert
string_literal
18
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.java_handler import JavaHandler class TestJavaHandler: def test_init(self) -> None: """Test JavaHandler initialization.""" handler = JavaHandler() ...
"mvn"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_language_handler_factory.py
test_create_cpp_handler
assert
string_literal
26
import logging from typing import TYPE_CHECKING import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, PlotOutput from llm_sandbox.language_handlers.cpp_handler import CppHandler...
"cpp"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mixins.py
test_execute_command_success
assert_*
string_literal
45
import io import tarfile import time from pathlib import Path from unittest.mock import MagicMock, Mock, patch import pytest from llm_sandbox.core.mixins import CommandExecutionMixin, FileOperationsMixin, TimeoutMixin from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import CommandEmptyError, Not...
"ls")
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_podman.py
test_normalize_memory_limit_returns_original_for_unknown_unit
assert
string_literal
34
from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import Comman...
"5XB"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_podman.py
test_normalize_runtime_configs_for_podman_returns_copy
assert
string_literal
39
from collections.abc import Callable from typing import TYPE_CHECKING, Any, cast from unittest.mock import MagicMock, Mock, patch import pytest from pydantic_core import ValidationError from llm_sandbox.const import SupportedLanguage from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import Comman...
"3GB"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_base_handler.py
test_plot_library_enum_coverage
assert
string_literal
23
import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbox.exceptions import CommandFailedError, PackageManagerError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, LanguageConfig, PlotDetecti...
"d3js"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_base_handler.py
test_plot_library_enum_coverage
assert
string_literal
26
import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbox.exceptions import CommandFailedError, PackageManagerError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, LanguageConfig, PlotDetecti...
"root"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_const.py
test_all_languages
assert
string_literal
11
import pytest from llm_sandbox.const import DefaultImage, SandboxBackend, StrEnum, SupportedLanguage class TestSupportedLanguage: def test_all_languages(self) -> None: """Test all language values.""" assert SupportedLanguage.PYTHON == "python" assert SupportedLanguage.JAVA ==
"java"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_const.py
test_all_languages
assert
string_literal
15
import pytest from llm_sandbox.const import DefaultImage, SandboxBackend, StrEnum, SupportedLanguage class TestSupportedLanguage: def test_all_languages(self) -> None: """Test all language values.""" assert SupportedLanguage.PYTHON == "python" assert SupportedLanguage.JAVA == "java" ...
"ruby"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_java_handler.py
test_init
assert
string_literal
16
import logging import re from unittest.mock import MagicMock from llm_sandbox.const import SupportedLanguage from llm_sandbox.language_handlers.java_handler import JavaHandler class TestJavaHandler: def test_init(self) -> None: """Test JavaHandler initialization.""" handler = JavaHandler() ...
"java"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_language_handler_factory.py
test_create_java_handler
assert
string_literal
26
import logging from typing import TYPE_CHECKING import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, PlotOutput from llm_sandbox.language_handlers.cpp_handler import CppHandler...
"java"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_language_handler_factory.py
test_register_custom_handler
assert
string_literal
59
import logging from typing import TYPE_CHECKING import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.exceptions import LanguageNotSupportedError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, PlotOutput from llm_sandbox.language_handlers.cpp_handler import CppHandler...
"cust"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_micromamba.py
test_init_with_defaults
assert
string_literal
30
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SupportedLanguage from llm_sandbox.micromamba import MicromambaSession from llm_sandbox.security import SecurityPolicy class TestMicromambaSessionInit: @patch("llm_sandbox.micromamba.docker.from_env") @patch("llm_sandbox....
"base"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mixins.py
test_execute_command_with_workdir
assert_*
string_literal
40
import io import tarfile import time from pathlib import Path from unittest.mock import MagicMock, Mock, patch import pytest from llm_sandbox.core.mixins import CommandExecutionMixin, FileOperationsMixin, TimeoutMixin from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import CommandEmptyError, Not...
"pwd")
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_pool_factory.py
test_none_config_uses_defaults
assert
string_literal
22
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import UnsupportedBackendError from llm_sandbox.pool.config import PoolConfig from llm_sandbox.pool.factory import create_pool_manager class TestFactoryEdgeCases: ...
"wait"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_backend.py
test_all_backends_accept_common_parameters
assert
string_literal
54
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import MissingDependencyError, UnsupportedBackendError from llm_sandbox.security import SecurityPolicy from llm_sandbox.session import create_session class TestBackendC...
"/test"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_base_handler.py
test_plot_library_enum_coverage
assert
string_literal
28
import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbox.exceptions import CommandFailedError, PackageManagerError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, LanguageConfig, PlotDetecti...
"gruff"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_base_handler.py
test_plot_detection_config
assert
string_literal
24
import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbox.exceptions import CommandFailedError, PackageManagerError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, LanguageConfig, PlotDetecti...
"setup"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_k8s_utils.py
test_successful_call
assert_*
string_literal
18
from unittest.mock import MagicMock, patch import pytest from kubernetes.client.exceptions import ApiException from llm_sandbox.k8s_utils import retry_k8s_api_call class TestRetryK8sApiCall: def test_successful_call(self): """Test successful API call without retries.""" mock_func = MagicMock(ret...
"arg1")
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_mixins.py
test_extract_archive_safely_single_file
assert
string_literal
52
import io import tarfile import time from pathlib import Path from unittest.mock import MagicMock, Mock, patch import pytest from llm_sandbox.core.mixins import CommandExecutionMixin, FileOperationsMixin, TimeoutMixin from llm_sandbox.data import ConsoleOutput from llm_sandbox.exceptions import CommandEmptyError, Not...
"hello"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_plot_clearing.py
test_clear_plots_with_no_plotting
assert
string_literal
61
import base64 from typing import Any from unittest.mock import MagicMock, patch import pytest from llm_sandbox import ArtifactSandboxSession, SandboxBackend from llm_sandbox.data import ConsoleOutput, FileType, PlotOutput def create_mock_plot_data(count: int = 1) -> bytes | list[PlotOutput]: """Create mock plot ...
"hello"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_session.py
test_getattr_delegation
assert_*
string_literal
26
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.core.config import SessionConfig from llm_sandbox.data import ExecutionResult, FileType, PlotOutput from llm_sandbox.exceptions import LanguageNotSupportPlotError, MissingDependenc...
"arg2")
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_backend.py
test_all_backends_accept_common_parameters
assert
string_literal
52
from unittest.mock import MagicMock, patch import pytest from llm_sandbox.const import SandboxBackend, SupportedLanguage from llm_sandbox.exceptions import MissingDependencyError, UnsupportedBackendError from llm_sandbox.security import SecurityPolicy from llm_sandbox.session import create_session class TestBackendC...
"python"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_base_handler.py
test_run_with_artifacts_no_plot_support
assert
string_literal
37
import base64 import io import logging import tarfile from unittest.mock import Mock, patch import pytest from llm_sandbox.data import FileType from llm_sandbox.exceptions import CommandFailedError, PackageManagerError from llm_sandbox.language_handlers.base import AbstractLanguageHandler, LanguageConfig, PlotDetecti...
"result"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor
vndee/llm-sandbox
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
train
train
tests/test_const.py
test_str_enum_creation
assert
string_literal
11
import pytest from llm_sandbox.const import DefaultImage, SandboxBackend, StrEnum, SupportedLanguage class TestStrEnum: def test_str_enum_creation(self) -> None: """Test basic StrEnum creation.""" # Test normal string values assert SandboxBackend.DOCKER ==
"docker"
4eca42b64d7861ad8ce3b85282f334ce108c23af
36
v2_extractor_at_anchor