repo_id stringclasses 409
values | prefix large_stringlengths 34 36.3k | target large_stringlengths 1 498 | assertion_type stringclasses 31
values | difficulty stringclasses 8
values | test_file stringlengths 10 121 | test_function stringlengths 1 104 | test_class stringlengths 0 51 | lineno int32 2 11.3k | commit_idx int32 |
|---|---|---|---|---|---|---|---|---|---|
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.url import filename_to_uri
from LSP.protocol import ErrorCodes
from LSP.protocol import TextDocumentSyncKind
from setup import TextDocumentTestCase
from typi... | "hello\nthere\n") | self.assertEqual | string_literal | tests/test_server_requests.py | test_m_workspace_applyEdit | ServerRequests | 70 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin import apply_text_edits
from LSP.plugin import Request
from LSP.plugin.core.protocol import UINT_MAX
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.hover import _test_contents
... | {"canReturnAnythingHere": "asdf"}) | self.assertEqual | collection | tests/test_single_document.py | test_run_command | SingleDocumentTestCase | 345 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import filename_to_uri
from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin import parse_uri
from LSP.plugin.core.file_watcher import file_watc... | ['*.js']) | self.assertEqual | collection | tests/test_file_watcher.py | test_creates_static_watcher | FileWatcherStaticTests | 138 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.url import filename_to_uri
from LSP.protocol import ErrorCodes
from LSP.protocol import TextDocumentSyncKind
from setup import TextDocumentTestCase
from typi... | view.is_valid()) | self.assertTrue | func_call | tests/test_server_requests.py | test_m_workspace_applyEdit_with_nontrivial_promises | ServerRequests | 119 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.url import parse_uri
from LSP.plugin.core.url import view_to_uri
import os
import sublime
import sys
import unittest
import unittest.mock
class WindowsTests(unittest.TestCase):
def test_unc_path(self) -> None:... | "file") | self.assertEqual | string_literal | tests/test_url.py | test_unc_path | WindowsTests | 37 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.url import parse_uri
from LSP.plugin.core.url import view_to_uri
import os
import sublime
import sys
import unittest
import unittest.mock
class WindowsTests(unittest.TestCase):
def test_converts_path_to_uri(se... | filename_to_uri("c:\\dir ectory\\file.txt")) | self.assertEqual | func_call | tests/test_url.py | test_converts_path_to_uri | WindowsTests | 17 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.protocol import Notification
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.transports import JsonRpcProcessor
from LSP.protocol import Position
from LSP.protocol import Range
import unittest
LSP_STAR... | {"param": 1}) | self.assertEqual | collection | tests/test_protocol.py | test_initialize | RequestTests | 43 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.logging import debug
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.registry import windows
from LSP.plugin.core.types import ClientStates
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup import add_conf... | self.config1.name) | self.assertEqual | complex_expr | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | WindowDocumentHandlerTests | 83 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin import apply_text_edits
from LSP.plugin import Request
from LSP.plugin.core.protocol import UINT_MAX
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.hover import _test_contents
... | "a\nhello there\nc\n") | self.assertEqual | string_literal | tests/test_single_document.py | test_out_of_bounds_column_for_text_document_edit | SingleDocumentTestCase | 86 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.edit import Promise
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.sessions import get_initialize_params
from LSP.plugin.core.sessions import Logger
from LSP.plugin.core.sessions import Manager
f... | {"foo": "bar"}) | self.assertEqual | collection | tests/test_session.py | test_initialize_params | SessionTest | 184 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | '{"keys": []}') | self.assertEqual | string_literal | tests/test_completion.py | test_nontrivial_text_edit_removal_with_buffer_modifications_json | QueryCompletionsTests | 601 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | trigger) | self.assertEqual | variable | tests/test_completion.py | _verify_completion | FormatCompletionsUnitTests | 920 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.code_actions import CodeActionsOnFormatOnSaveTask
from LSP.plugin.code_actions import get_matching_on_save_kinds
from LSP.plugin.core.constants import RegionKey
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.settings import u... | 3) | self.assertEqual | numeric_literal | tests/test_code_actions.py | test_applies_code_action_with_matching_document_version | CodeActionsTestCase | 472 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.workspace import is_subpath_of
from LSP.plugin.core.workspace import sorted_workspace_folders
from LSP.plugin.core.workspace import WorkspaceFolder
import os
import tempfile
import unittest
class WorkspaceFolderTest(unittest.TestCase):
def test_workspace_re... | eval(repr(workspace))) | self.assertEqual | func_call | tests/test_workspace.py | test_workspace_repr | WorkspaceFolderTest | 40 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | '{{ titletle }}') | self.assertEqual | string_literal | tests/test_completion.py | test_insert_insert_mode | QueryCompletionsTests | 632 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import basescope2languageid
from LSP.plugin.core.types import diff
from LSP.plugin.core.types import DocumentSelector_
from unittest.mock import MagicMock
import sublime
import unittest
class TestDiff(unittest.TestCase):
def test_add(self) -> None:
... | removed) | self.assertFalse | variable | tests/test_types.py | test_add | TestDiff | 16 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | details) | self.assertEqual | variable | tests/test_completion.py | _verify_completion | FormatCompletionsUnitTests | 922 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import basescope2languageid
from LSP.plugin.core.types import diff
from LSP.plugin.core.types import DocumentSelector_
from unittest.mock import MagicMock
import sublime
import unittest
class TestDocumentSelector(unittest.TestCase):
def setUp(self) ->... | view.is_loading()) | self.assertFalse | func_call | tests/test_types.py | _make_view | TestDocumentSelector | 59 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.edit import Promise
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.sessions import get_initialize_params
from LSP.plugin.core.sessions import Logger
from LSP.plugin.core.sessions import Manager
f... | params) | self.assertIn | variable | tests/test_session.py | test_initialize_params | SessionTest | 177 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import basescope2languageid
from LSP.plugin.core.types import diff
from LSP.plugin.core.types import DocumentSelector_
from unittest.mock import MagicMock
import sublime
import unittest
class TestDiff(unittest.TestCase):
def test_with_more_sets(self) ... | set(("c",))) | self.assertEqual | func_call | tests/test_types.py | test_with_more_sets | TestDiff | 35 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import filename_to_uri
from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin import parse_uri
from LSP.plugin.core.file_watcher import file_watc... | ['*.py']) | self.assertEqual | collection | tests/test_file_watcher.py | test_handles_dynamic_watcher_registration | FileWatcherDynamicTests | 177 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from typing import Any
from unittest import TestCase
class DottedDictTests(TestCase):
def verify(self, d: DottedDict, path: str, value: Any) -> None:
self.assertEqual(d.get(path), value)
def test_does_not_expand_at... | d.get("editor.codeActionsOnSave.source")) | self.assertIsNone | func_call | tests/test_collections.py | test_does_not_expand_at_second_nesting_level | DottedDictTests | 32 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.url import parse_uri
from LSP.plugin.core.url import view_to_uri
import os
import sublime
import sys
import unittest
import unittest.mock
class WindowsTests(unittest.TestCase):
def test_wsl_path(self) -> None:... | R'\\wsl$\Ubuntu-20.04\File.php') | self.assertEqual | complex_expr | tests/test_url.py | test_wsl_path | WindowsTests | 43 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.workspace import is_subpath_of
from LSP.plugin.core.workspace import sorted_workspace_folders
from LSP.plugin.core.workspace import WorkspaceFolder
import os
import tempfile
import unittest
class WorkspaceFolderTest(unittest.TestCase):
def test_workspace_to... | {"name": "LSP", "uri": "file:///foo/bar/baz"}) | self.assertEqual | collection | tests/test_workspace.py | test_workspace_to_dict | WorkspaceFolderTest | 45 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.types import Any
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import did_change
from LSP.plugin.core.views import did_open
from LSP.plugin.core.views import did_sav... | 1) | self.assertEqual | numeric_literal | tests/test_views.py | test_point_to_offset_utf16 | ViewsTest | 172 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.types import DottedDict
from LSP.plugin.core.views import get_uri_and_position_from_location
from LSP.plugin.core.views import to_encoded_filename
from os import environ
from os.path import dirname
from os.path impor... | DottedDict) | self.assertIsInstance | variable | tests/test_configs.py | test_attribute_access_prefers_native_keys | ConfigParsingTests | 158 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from typing import Any
from unittest import TestCase
class DottedDictTests(TestCase):
def verify(self, d: DottedDict, path: str, value: Any) -> None:
self.assertEqual(d.get(path), value)
def test_copy_whole(self) -... | d_copy['a']) | self.assertNotEqual | complex_expr | tests/test_collections.py | test_copy_whole | DottedDictTests | 146 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | expected_text) | self.assertEqual | variable | tests/test_completion.py | verify | CompletionsTestsBase | 93 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.url import filename_to_uri
from LSP.protocol import ErrorCodes
from LSP.protocol import TextDocumentSyncKind
from setup import TextDocumentTestCase
from typi... | view) | self.assertTrue | variable | tests/test_server_requests.py | test_m_workspace_applyEdit_with_nontrivial_promises | ServerRequests | 117 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.workspace import is_subpath_of
from LSP.plugin.core.workspace import sorted_workspace_folders
from LSP.plugin.core.workspace import WorkspaceFolder
import os
import tempfile
import unittest
class SortedWorkspaceFoldersTest(unittest.TestCase):
def test_get_w... | parent_folder) | self.assertEqual | variable | tests/test_workspace.py | test_get_workspace_from_multi_folder_project | SortedWorkspaceFoldersTest | 23 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest import TestCase
from unittest.mock import MagicMock
from unittesting import ViewTestCase
import sublime
class WindowConfigManagerTes... | []) | self.assertEqual | collection | tests/test_configurations.py | test_no_configs | WindowConfigManagerTests | 36 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import basescope2languageid
from LSP.plugin.core.types import diff
from LSP.plugin.core.types import DocumentSelector_
from unittest.mock import MagicMock
import sublime
import unittest
class TestDiff(unittest.TestCase):
def test_add(self) -> None:
... | set(("d",))) | self.assertEqual | func_call | tests/test_types.py | test_add | TestDiff | 15 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.code_actions import CodeActionsOnFormatOnSaveTask
from LSP.plugin.code_actions import get_matching_on_save_kinds
from LSP.plugin.core.constants import RegionKey
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.settings import u... | 'c\nd') | self.assertEqual | string_literal | tests/test_code_actions.py | test_applies_code_action_with_matching_document_version | CodeActionsTestCase | 475 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | 'fmod()\nfmod()\nfmod()') | self.assertEqual | string_literal | tests/test_completion.py | verify_multi_cursor | QueryCompletionsTests | 491 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.edit import utf16_to_code_points
import unittest
class LspRenamePanelTests(unittest.TestCase):
def test_utf16_ascii(self) -> None:
s = 'abc'
self.assertEqual(utf16_to_code_points(s, 0), 0)
self.assertEqual(utf16_to_code_points(s, 1), 1)
... | 3) | self.assertEqual | numeric_literal | tests/test_rename_panel.py | test_utf16_ascii | LspRenamePanelTests | 14 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest import TestCase
from unittest.mock import MagicMock
from unittesting import ViewTestCase
import sublime
class WindowConfigManagerTes... | config.name) | self.assertEqual | complex_expr | tests/test_configurations.py | test_applies_project_settings | WindowConfigManagerTests | 72 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.url import parse_uri
from LSP.plugin.core.url import view_to_uri
import os
import sublime
import sys
import unittest
import unittest.mock
class MultiplatformTests(unittest.TestCase):
def test_parse_uri(self) -... | "") | self.assertEqual | string_literal | tests/test_url.py | test_parse_uri | MultiplatformTests | 81 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.logging import debug
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.registry import windows
from LSP.plugin.core.types import ClientStates
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup import add_conf... | self.session1) | self.assertIsNotNone | complex_expr | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | WindowDocumentHandlerTests | 81 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.types import Any
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import did_change
from LSP.plugin.core.views import did_open
from LSP.plugin.core.views import did_sav... | expect) | self.assertEqual | variable | tests/test_views.py | test_minihtml_format_string | ViewsTest | 201 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import filename_to_uri
from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin import parse_uri
from LSP.plugin.core.file_watcher import file_watc... | ['.git']) | self.assertEqual | collection | tests/test_file_watcher.py | test_creates_static_watcher | FileWatcherStaticTests | 140 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | '#include <uchar.h>') | self.assertEqual | string_literal | tests/test_completion.py | test_nontrivial_text_edit_removal | QueryCompletionsTests | 544 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.edit import utf16_to_code_points
import unittest
class LspRenamePanelTests(unittest.TestCase):
def test_utf16_ascii(self) -> None:
s = 'abc'
self.assertEqual(utf16_to_code_points(s, 0), 0)
self.assertEqual(utf16_to_code_points(s, 1), 1)
... | 2) | self.assertEqual | numeric_literal | tests/test_rename_panel.py | test_utf16_ascii | LspRenamePanelTests | 13 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.protocol import Notification
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.transports import JsonRpcProcessor
from LSP.protocol import Position
from LSP.protocol import Range
import unittest
LSP_STAR... | "2.0") | self.assertEqual | string_literal | tests/test_protocol.py | test_initialize | RequestTests | 40 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.url import filename_to_uri
from LSP.protocol import ErrorCodes
from LSP.protocol import TextDocumentSyncKind
from setup import TextDocumentTestCase
from typi... | "asdf") | self.assertEqual | string_literal | tests/test_server_requests.py | test_m_client_registerCapability | ServerRequests | 152 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.signature_help import SigHelp
from LSP.plugin.core.signature_help import SignatureHelpStyle
from LSP.protocol import SignatureHelp
import sublime
import unittest
class SignatureHelpTest(unittest.TestCase):
def setUp(self) -> None:
self.view = sublim... | regex.replace("\n", "").replace(" ", "")) | self.assertRegex | func_call | tests/test_signature_help.py | assert_render | SignatureHelpTest | 33 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.url import parse_uri
from LSP.plugin.core.url import view_to_uri
import os
import sublime
import sys
import unittest
import unittest.mock
class NixTests(unittest.TestCase):
def test_view_to_uri_with_valid_file... | "file:///foo/bar/baz.txt") | self.assertEqual | string_literal | tests/test_url.py | test_view_to_uri_with_valid_filename | NixTests | 60 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.panels import MAX_LOG_LINES_LIMIT_ON
from LSP.plugin.core.panels import PanelName
from LSP.plugin.core.registry import windows
from unittesting import DeferrableTestCase
import sublime
class LspServerPanelTests(DeferrableTestCase):
def setUp(self) -> None:
... | 1) | assert_* | numeric_literal | tests/test_server_panel_circular.py | test_server_panel_circular_behavior | LspServerPanelTests | 43 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.logging import debug
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.registry import windows
from LSP.plugin.core.types import ClientStates
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup import add_conf... | self.session2) | self.assertIsNotNone | complex_expr | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | WindowDocumentHandlerTests | 82 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.url import parse_uri
from LSP.plugin.core.url import view_to_uri
import os
import sublime
import sys
import unittest
import unittest.mock
class WindowsTests(unittest.TestCase):
def test_unc_path(self) -> None:... | R'\\192.168.80.2\D$\www\File.php') | self.assertEqual | complex_expr | tests/test_url.py | test_unc_path | WindowsTests | 38 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.url import parse_uri
from LSP.plugin.core.url import view_to_uri
import os
import sublime
import sys
import unittest
import unittest.mock
class NixTests(unittest.TestCase):
def test_converts_uri_to_path(self) ... | parse_uri("file:///dir ectory/file.txt")[1]) | self.assertEqual | func_call | tests/test_url.py | test_converts_uri_to_path | NixTests | 53 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.signature_help import SigHelp
from LSP.plugin.core.signature_help import SignatureHelpStyle
from LSP.protocol import SignatureHelp
import sublime
import unittest
class SignatureHelpTest(unittest.TestCase):
def setUp(self) -> None:
self.view = sublim... | r''' <div class="highlight"><pre> <span style="color: #\w{6}">f\(</span> <span style="color: #\w{6}; font-weight: bold; text-decoration: underline">x</span> <span style="color: #\w{6}">\)</span> </pre></div> <p>must be in the frobnicate range</p> <hr/> <div style="font-size: 0\.9rem"><p>f does interesting things</p></d... | assert_* | func_call | tests/test_signature_help.py | test_signature | SignatureHelpTest | 36 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.types import DottedDict
from LSP.plugin.core.views import get_uri_and_position_from_location
from LSP.plugin.core.views import to_encoded_filename
from os import environ
from os.path import dirname
from os.path impor... | experimental_capabilities) | self.assertEqual | variable | tests/test_configs.py | test_can_read_experimental_capabilities | ConfigParsingTests | 57 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.types import DottedDict
from LSP.plugin.core.views import get_uri_and_position_from_location
from LSP.plugin.core.views import to_encoded_filename
from os import environ
from os.path import dirname
from os.path impor... | "file:///workspace2/foo.js") | self.assertEqual | string_literal | tests/test_configs.py | test_path_maps | ConfigParsingTests | 193 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin import apply_text_edits
from LSP.plugin import Request
from LSP.plugin.core.protocol import UINT_MAX
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.hover import _test_contents
... | self.view) | self.assertTrue | complex_expr | tests/test_single_document.py | test_did_close | SingleDocumentTestCase | 89 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin import apply_text_edits
from LSP.plugin import Request
from LSP.plugin.core.protocol import UINT_MAX
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.hover import _test_contents
... | "c") | self.assertEqual | string_literal | tests/test_single_document.py | test_expand_selection | SingleDocumentTestCase | 280 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import filename_to_uri
from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin import parse_uri
from LSP.plugin.core.file_watcher import file_watc... | base_path_2) | self.assertEqual | variable | tests/test_file_watcher.py | test_does_not_aggregate_non_matching_base | FileWatcherDynamicTests | 286 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.types import DottedDict
from LSP.plugin.core.views import get_uri_and_position_from_location
from LSP.plugin.core.views import to_encoded_filename
from os import environ
from os.path import dirname
from os.path impor... | "baz") | self.assertEqual | string_literal | tests/test_configs.py | test_list_in_environment | ConfigParsingTests | 88 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.url import filename_to_uri
from LSP.protocol import ErrorCodes
from LSP.protocol import TextDocumentSyncKind
from setup import TextDocumentTestCase
from typi... | "!@#") | self.assertEqual | string_literal | tests/test_server_requests.py | test_m_client_registerCapability | ServerRequests | 169 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import apply_text_edits
from LSP.plugin.core.edit import parse_workspace_edit
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.edit import _parse_text_edit as parse_text_edit
from LSP.plugin.edit import _... | 5) | self.assertEqual | numeric_literal | tests/test_edit.py | test_no_clobbering_of_previous_edits | WorkspaceEditTests | 194 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.types import DottedDict
from LSP.plugin.core.views import get_uri_and_position_from_location
from LSP.plugin.core.views import to_encoded_filename
from os import environ
from os.path import dirname
from os.path impor... | '/foo/bar:1235:4322') | self.assertEqual | string_literal | tests/test_configs.py | test_path_maps | ConfigParsingTests | 213 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.types import DottedDict
from LSP.plugin.core.views import get_uri_and_position_from_location
from LSP.plugin.core.views import to_encoded_filename
from os import environ
from os.path import dirname
from os.path impor... | "C:/hello;X:/there;Y:/asdf") | self.assertEqual | string_literal | tests/test_configs.py | test_list_in_environment | ConfigParsingTests | 85 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import filename_to_uri
from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin import parse_uri
from LSP.plugin.core.file_watcher import file_watc... | expected) | self.assertEqual | variable | tests/test_file_watcher.py | _verify_patterns | PatternToGlobTests | 364 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from typing import Any
from unittest import TestCase
class DottedDictTests(TestCase):
def verify(self, d: DottedDict, path: str, value: Any) -> None:
self.assertEqual(d.get(path), value)
def test_update_empty_dict(... | {"a": {"b": {}}}) | self.assertEqual | collection | tests/test_collections.py | test_update_empty_dict | DottedDictTests | 160 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest import TestCase
from unittest.mock import MagicMock
from unittesting import ViewTestCase
import sublime
class WindowConfigManagerTes... | config.enabled) | self.assertTrue | complex_expr | tests/test_configurations.py | test_applies_project_settings | WindowConfigManagerTests | 73 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import apply_text_edits
from LSP.plugin.core.edit import parse_workspace_edit
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.edit import _parse_text_edit as parse_text_edit
from LSP.plugin.edit import _... | 2) | self.assertEqual | numeric_literal | tests/test_edit.py | test_applies_multiple_text_edits_with_placeholders | ApplyDocumentEditTestCase | 290 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from typing import Any
from unittest import TestCase
class DottedDictTests(TestCase):
def verify(self, d: DottedDict, path: str, value: Any) -> None:
self.assertEqual(d.get(path), value)
def test_as_dict(self) -> N... | { "foo": { "bar": { "baz": 1, "qux": "asdf", "a": "b" }, "b": { "x": "c", "y": "d" } } }) | self.assertEqual | collection | tests/test_collections.py | test_as_dict | DottedDictTests | 114 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from typing import Any
from unittest import TestCase
class DottedDictTests(TestCase):
def verify(self, d: DottedDict, path: str, value: Any) -> None:
self.assertEqual(d.get(path), value)
def test_from_base_and_over... | { "yaml": { "schemas": { "http://foo.com/bar.json": "**/*.json" } } }) | self.assertEqual | collection | tests/test_collections.py | test_from_base_and_override | DottedDictTests | 172 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.signature_help import SigHelp
from LSP.plugin.core.signature_help import SignatureHelpStyle
from LSP.protocol import SignatureHelp
import sublime
import unittest
class SignatureHelpTest(unittest.TestCase):
def setUp(self) -> None:
self.view = sublim... | r''' <div class="highlight"><pre> <span style="color: #\w{6}">f\(</span> <span style="color: #\w{6}">x</span> <span style="color: #\w{6}">, </span> <span style="color: #\w{6}; font-weight: bold; text-decoration: underline">y</span> <span style="color: #\w{6}">\)</span> </pre></div> <p>hello there</p> ''') | assert_* | func_call | tests/test_signature_help.py | test_second_parameter | SignatureHelpTest | 108 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import apply_text_edits
from LSP.plugin.core.edit import parse_workspace_edit
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.edit import _parse_text_edit as parse_text_edit
from LSP.plugin.edit import _... | 4) | self.assertEqual | numeric_literal | tests/test_edit.py | test_parse_from_lsp | TextEditTests | 167 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.url import filename_to_uri
from LSP.protocol import ErrorCodes
from LSP.protocol import TextDocumentSyncKind
from setup import TextDocumentTestCase
from typi... | expected[i]) | self.assertEqual | complex_expr | tests/test_server_requests.py | test_m_workspace_applyEdit_with_nontrivial_promises | ServerRequests | 121 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.code_actions import CodeActionsOnFormatOnSaveTask
from LSP.plugin.code_actions import get_matching_on_save_kinds
from LSP.plugin.core.constants import RegionKey
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.settings import u... | True) | self.assertEqual | bool_literal | tests/test_code_actions.py | test_format_document_with_code_actions_on_format | CodeActionsOnFormatTestCase | 276 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.edit import utf16_to_code_points
import unittest
class LspRenamePanelTests(unittest.TestCase):
def test_utf16_ascii(self) -> None:
s = 'abc'
self.assertEqual(utf16_to_code_points(s, 0), 0)
self.assertEqual(utf16_to_code_points(s, 1), | 1) | self.assertEqual | numeric_literal | tests/test_rename_panel.py | test_utf16_ascii | LspRenamePanelTests | 12 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.protocol import Notification
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.transports import JsonRpcProcessor
from LSP.protocol import Position
from LSP.protocol import Range
import unittest
LSP_STAR... | payload) | self.assertNotIn | variable | tests/test_protocol.py | test_shutdown | RequestTests | 51 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from typing import Any
from unittest import TestCase
class DottedDictTests(TestCase):
def verify(self, d: DottedDict, path: str, value: Any) -> None:
self.assertEqual(d.get(path), value)
def test_update_empty_dict(... | {"a": {}}) | self.assertEqual | collection | tests/test_collections.py | test_update_empty_dict | DottedDictTests | 158 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin import apply_text_edits
from LSP.plugin import Request
from LSP.plugin.core.protocol import UINT_MAX
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.hover import _test_contents
... | "greeting" in last_content) | self.assertTrue | string_literal | tests/test_single_document.py | test_hover_info | SingleDocumentTestCase | 131 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import filename_to_uri
from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin import parse_uri
from LSP.plugin.core.file_watcher import file_watc... | 2) | self.assertEqual | numeric_literal | tests/test_file_watcher.py | test_handles_dynamic_watcher_registration | FileWatcherDynamicTests | 185 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.logging import debug
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.registry import windows
from LSP.plugin.core.types import ClientStates
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup import add_conf... | self.config2.name) | self.assertEqual | complex_expr | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | WindowDocumentHandlerTests | 84 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.logging import debug
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.registry import windows
from LSP.plugin.core.types import ClientStates
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup import add_conf... | self.window) | self.assertTrue | complex_expr | tests/test_documents.py | setUp | WindowDocumentHandlerTests | 50 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin import filename_to_uri
from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin import parse_uri
from LSP.plugin.core.file_watcher import file_watc... | ['change']) | self.assertEqual | collection | tests/test_file_watcher.py | test_creates_static_watcher | FileWatcherStaticTests | 139 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.types import DottedDict
from LSP.plugin.core.views import get_uri_and_position_from_location
from LSP.plugin.core.views import to_encoded_filename
from os import environ
from os.path import dirname
from os.path impor... | "C:/hello:X:/there:Y:/asdf") | self.assertEqual | string_literal | tests/test_configs.py | test_list_in_environment | ConfigParsingTests | 87 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.protocol import Notification
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.transports import JsonRpcProcessor
from LSP.protocol import Position
from LSP.protocol import Range
import unittest
LSP_STAR... | "initialize") | self.assertEqual | string_literal | tests/test_protocol.py | test_initialize | RequestTests | 42 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.protocol import Notification
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.transports import JsonRpcProcessor
from LSP.protocol import Position
from LSP.protocol import Range
import unittest
LSP_STAR... | 4) | self.assertEqual | numeric_literal | tests/test_protocol.py | test_lsp_conversion | PointTests | 21 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.url import filename_to_uri
from LSP.protocol import ErrorCodes
from LSP.protocol import TextDocumentSyncKind
from setup import TextDocumentTestCase
from typi... | trigger) | self.assertTrue | variable | tests/test_server_requests.py | test_m_client_registerCapability | ServerRequests | 168 | null |
sublimelsp/LSP | from __future__ import annotations
from argparse import ArgumentParser
from enum import IntEnum
from typing import Any
from typing import Awaitable
from typing import Callable
from typing import Dict
from typing import Iterable
from typing import List
from typing import Union
import asyncio
import json
import os
impor... | None | assert | none_literal | tests/server.py | _handle | Session | 265 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.edit import utf16_to_code_points
import unittest
class LspRenamePanelTests(unittest.TestCase):
def test_utf16_emoji_zwj_sequence(self) -> None:
# https://unicode.org/emoji/charts/emoji-zwj-sequences.html
s = 'a😵💫x'
self.assertEqual(le... | 5) | self.assertEqual | numeric_literal | tests/test_rename_panel.py | test_utf16_emoji_zwj_sequence | LspRenamePanelTests | 41 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.signature_help import SigHelp
from LSP.plugin.core.signature_help import SignatureHelpStyle
from LSP.protocol import SignatureHelp
import sublime
import unittest
class SignatureHelpTest(unittest.TestCase):
def setUp(self) -> None:
self.view = sublim... | signature) | self.assertIsNone | variable | tests/test_signature_help.py | test_no_signature | SignatureHelpTest | 24 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin import apply_text_edits
from LSP.plugin import Request
from LSP.plugin.core.protocol import UINT_MAX
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.hover import _test_contents
... | ''.join(expected)) | self.assertEqual | string_literal | tests/test_single_document.py | __run_formatting_test | SingleDocumentTestCase | 226 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.types import basescope2languageid
from LSP.plugin.core.types import diff
from LSP.plugin.core.types import DocumentSelector_
from unittest.mock import MagicMock
import sublime
import unittest
class TestDiff(unittest.TestCase):
def test_add_and_remove(self) ... | set(("a", "b"))) | self.assertEqual | func_call | tests/test_types.py | test_add_and_remove | TestDiff | 26 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | expected) | self.assertEqual | variable | tests/test_completion.py | test_respects_defaults_for_completion | ItemDefaultTests | 835 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.panels import MAX_LOG_LINES_LIMIT_ON
from LSP.plugin.core.panels import PanelName
from LSP.plugin.core.registry import windows
from unittesting import DeferrableTestCase
import sublime
class LspServerPanelTests(DeferrableTestCase):
def setUp(self) -> None:
... | self.window) | self.assertIsNotNone | complex_expr | tests/test_server_panel_circular.py | setUp | LspServerPanelTests | 15 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.collections import DottedDict
from typing import Any
from unittest import TestCase
class DottedDictTests(TestCase):
def verify(self, d: DottedDict, path: str, value: Any) -> None:
self.assertEqual(d.get(path), value)
def test_copy_partial(self)... | d_copy['c']) | self.assertNotEqual | complex_expr | tests/test_collections.py | test_copy_partial | DottedDictTests | 153 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin import apply_text_edits
from LSP.plugin import Request
from LSP.plugin.core.protocol import UINT_MAX
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import entire_content
from LSP.plugin.hover import _test_contents
... | self.view.is_popup_visible()) | self.assertFalse | func_call | tests/test_single_document.py | test_hover_info | SingleDocumentTestCase | 127 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.url import filename_to_uri
from setup import TextDocumentTestCase
from test_single_document import TEST_FILE_PATH
from typing import TYPE_CHECKING
from unittesting import AWAIT_WORKER
import sublime
TEST_FILE_URI = file... | 0) | self.assertEqual | numeric_literal | tests/test_diagnostics.py | test_clear_diagnostics_immediately_after_change | DiagnosticsTestCase | 76 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.completion import completion_with_defaults
from LSP.plugin.completion import format_completion
from LSP.protocol import CompletionItem
from LSP.protocol import CompletionItemDefaults
from LSP.protocol import CompletionItemKind
from LSP.protoc... | flags) | self.assertEqual | variable | tests/test_completion.py | _verify_completion | FormatCompletionsUnitTests | 923 | null |
sublimelsp/LSP | from __future__ import annotations
from collections.abc import Generator
from LSP.plugin.core.promise import Promise
from LSP.plugin.core.protocol import Notification
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.registry import windows
from LSP.plugin.core.settings import client_configs
from LSP.p... | 0) | self.assertEqual | numeric_literal | tests/setup.py | setUp | TextDocumentTestCase | 121 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.panels import MAX_LOG_LINES_LIMIT_ON
from LSP.plugin.core.panels import PanelName
from LSP.plugin.core.registry import windows
from unittesting import DeferrableTestCase
import sublime
class LspServerPanelTests(DeferrableTestCase):
def setUp(self) -> None:
... | expected_total_lines) | self.assertEqual | variable | tests/test_server_panel_circular.py | assert_total_lines_equal | LspServerPanelTests | 29 | null |
sublimelsp/LSP | from __future__ import annotations
from copy import deepcopy
from LSP.plugin.core.protocol import Point
from LSP.plugin.core.types import Any
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.core.views import did_change
from LSP.plugin.core.views import did_open
from LSP.plugin.core.views import did_sav... | "🍺") | self.assertEqual | string_literal | tests/test_views.py | test_point_to_offset_utf16 | ViewsTest | 169 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest import TestCase
from unittest.mock import MagicMock
from unittesting import ViewTestCase
import sublime
class WindowConfigManagerTes... | [TEST_CONFIG]) | self.assertEqual | collection | tests/test_configurations.py | test_with_single_config | WindowConfigManagerTests | 49 | null |
sublimelsp/LSP | from __future__ import annotations
from LSP.plugin.edit import utf16_to_code_points
import unittest
class LspRenamePanelTests(unittest.TestCase):
def test_utf16_ascii(self) -> None:
s = 'abc'
self.assertEqual(utf16_to_code_points(s, 0), | 0) | self.assertEqual | numeric_literal | tests/test_rename_panel.py | test_utf16_ascii | LspRenamePanelTests | 11 | null |
sublimelsp/LSP | from __future__ import annotations
from collections.abc import Generator
from LSP.plugin.core.promise import Promise
from LSP.plugin.core.protocol import Notification
from LSP.plugin.core.protocol import Request
from LSP.plugin.core.registry import windows
from LSP.plugin.core.settings import client_configs
from LSP.p... | self.wm.get_config_manager().match_view(self.view)) | self.assertTrue | func_call | tests/setup.py | setUp | TextDocumentTestCase | 117 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.