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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | verify_multi_cursor | self.assertEqual | numeric_literal | 44 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | 3) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | verify_multi_cursor | self.assertEqual | string_literal | 46 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | "fd") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | verify | self.assertEqual | variable | 79 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | expected_text) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | test_nontrivial_text_edit_removal_with_buffer_modifications_json | self.assertEqual | string_literal | 78 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | '{"keys": []}') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | check | self.assertRegex | variable | 62 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | expected_regex) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | test_text_edit_plaintext_with_multiple_lines_indented | self.assertEqual | string_literal | 66 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | '\t\n\ta\n\t\tb') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | test_nontrivial_text_edit_removal | self.assertEqual | string_literal | 69 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | '#include <uchar.h>') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | verify_multi_cursor | self.assertEqual | string_literal | 50 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | 'fmod()\nfmod()\nfmod()') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_completion.py | test_show_deprecated_flag | self.assertIn | complex_expr | 59 | from copy import deepcopy
from LSP.plugin.core.protocol import CompletionItem
from LSP.plugin.core.protocol import CompletionItemLabelDetails
from LSP.plugin.core.protocol import CompletionItemTag
from LSP.plugin.core.protocol import InsertTextFormat
from LSP.plugin.core.typing import Any, Generator, List, Dict, Callab... | formatted_completion_item.annotation) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_can_update_config | self.assertEqual | bool_literal | 24 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | True) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_list_in_environment | self.assertEqual | string_literal | 31 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "baz") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_filter_out_disabled_capabilities_ignore_partially | self.assertNotIn | variable | 26 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | options) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_path_maps | self.assertEqual | string_literal | 49 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | '/foo/bar:1:6') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_can_parse_old_client_settings | self.assertEqual | string_literal | 24 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "source.python") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_can_parse_old_client_settings | self.assertEqual | string_literal | 25 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "(text.html.vue)") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_can_parse_client_settings_with_languages | self.assertEqual | string_literal | 23 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "(source.python)") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_path_maps | self.assertEqual | string_literal | 55 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | '/foo/bar:1235:4322') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_can_read_experimental_capabilities | self.assertEqual | variable | 29 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | experimental_capabilities) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_list_in_environment | self.assertEqual | string_literal | 28 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "C:/hello;X:/there;Y:/asdf") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_list_in_environment | self.assertEqual | string_literal | 30 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "C:/hello:X:/there:Y:/asdf") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_path_maps | self.assertEqual | string_literal | 33 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "file:///workspace/file.js") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_path_maps | self.assertEqual | string_literal | 35 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "file:///workspace2/foo.js") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_path_maps | self.assertEqual | string_literal | 37 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | "file:///some/path/with/no/mapping.py") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_transport_config_extends_env_path | self.assertEqual | string_literal | 28 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | '/a/b/{}{}'.format(pathsep, original_path)) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configs.py | test_disabled_capabilities | self.assertTrue | func_call | 27 | import sublime
from LSP.plugin.core.settings import read_client_config, update_client_config
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, pathsep
from unittesting import DeferrableTestCase
i... | config.is_disabled_capability("colorProvider")) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_applies_project_settings | self.assertEqual | numeric_literal | 34 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class WindowConfigManagerTests(unittest.TestCase):
de... | 1) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_no_configs | self.assertEqual | collection | 17 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class WindowConfigManagerTests(unittest.TestCase):
de... | []) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_no_configs | self.assertIsNotNone | variable | 14 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class WindowConfigManagerTests(unittest.TestCase):
de... | view) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_applies_project_settings | self.assertEqual | complex_expr | 36 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class WindowConfigManagerTests(unittest.TestCase):
de... | config.name) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_with_single_config | self.assertEqual | collection | 25 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class WindowConfigManagerTests(unittest.TestCase):
de... | [TEST_CONFIG]) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_empty_configs | self.assertNotIn | complex_expr | 15 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class GlobalConfigManagerTests(unittest.TestCase):
de... | window_mgr.all) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_applies_project_settings | self.assertTrue | complex_expr | 37 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class WindowConfigManagerTests(unittest.TestCase):
de... | config.enabled) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_override_config | self.assertTrue | complex_expr | 14 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class GlobalConfigManagerTests(unittest.TestCase):
de... | TEST_CONFIG.enabled) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_disables_temporarily | self.assertFalse | func_call | 28 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class WindowConfigManagerTests(unittest.TestCase):
de... | any(manager.match_view(view))) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_configurations.py | test_override_config | self.assertFalse | func_call | 18 | from LSP.plugin.core.configurations import ConfigManager
from LSP.plugin.core.configurations import WindowConfigManager
from test_mocks import DISABLED_CONFIG
from test_mocks import TEST_CONFIG
from unittest.mock import MagicMock
import sublime
import unittest
class GlobalConfigManagerTests(unittest.TestCase):
de... | list(window_mgr.all.values())[0].enabled) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_document_symbols.py | test_show_deprecated_flag_for_symbol_information | self.assertEqual | complex_expr | 15 | from setup import TextDocumentTestCase
from LSP.plugin.core.typing import Generator
from LSP.plugin.symbols import symbol_information_to_quick_panel_item
from LSP.plugin.core.protocol import SymbolTag
class DocumentSymbolTests(TextDocumentTestCase):
def test_show_deprecated_flag_for_symbol_information(self) -> 'Ge... | formatted_symbol_information.annotation) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | self.assertEqual | string_literal | 90 | 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.core.typing import Any, Generator
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup i... | "TEST") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | self.assertEqual | string_literal | 91 | 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.core.typing import Any, Generator
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup i... | "TEST-2") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_documents.py | setUp | self.assertTrue | complex_expr | 60 | 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.core.typing import Any, Generator
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup i... | self.window) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | self.assertIsNotNone | complex_expr | 79 | 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.core.typing import Any, Generator
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup i... | self.session1) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | self.assertIsNotNone | complex_expr | 80 | 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.core.typing import Any, Generator
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup i... | self.session2) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_documents.py | test_sends_did_open_to_multiple_sessions | self.assertEqual | complex_expr | 81 | 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.core.typing import Any, Generator
from LSP.plugin.documents import DocumentSyncListener
from os.path import join
from setup i... | self.config1.name) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_parse_from_lsp | self.assertEqual | numeric_literal | 162 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 4) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_parse_from_lsp | self.assertEqual | numeric_literal | 164 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 3) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_parse_from_lsp | self.assertEqual | numeric_literal | 165 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 0) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_parse_changes_from_lsp | self.assertEqual | numeric_literal | 161 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 1) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_no_clobbering_of_previous_edits | self.assertEqual | numeric_literal | 162 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 5) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_parse_from_lsp | self.assertEqual | numeric_literal | 161 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 10) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_parse_from_lsp | self.assertEqual | numeric_literal | 163 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 11) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_empty_sort | self.assertEqual | collection | 159 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | []) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_sorts_in_application_order | self.assertEqual | string_literal | 166 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 'b') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_sorts_in_application_order | self.assertEqual | string_literal | 167 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 'a') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_edit.py | test_sorts_in_application_order | self.assertEqual | string_literal | 168 | from LSP.plugin.core.edit import parse_workspace_edit, parse_text_edit
from LSP.plugin.edit import _sort_by_application_order as sort_by_application_order
from LSP.plugin.core.url import filename_to_uri
from LSP.plugin.edit import temporary_setting
from test_protocol import LSP_RANGE
import sublime
import unittest
TYP... | 'c') | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | setUp | self.assertEqual | numeric_literal | 53 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | 0) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_creates_static_watcher | self.assertEqual | numeric_literal | 47 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | 1) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_handles_dynamic_watcher_registration | self.assertEqual | numeric_literal | 61 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | 2) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_handles_file_event | self.assertIs | variable | 50 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | list) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_creates_static_watcher | self.assertEqual | collection | 49 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | ['*.js']) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_creates_static_watcher | self.assertEqual | collection | 51 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | ['.git']) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_handles_dynamic_watcher_registration | self.assertEqual | collection | 53 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | ['*.py']) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | _verify_patterns | self.assertEqual | variable | 44 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | expected) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_creates_static_watcher | self.assertEqual | collection | 50 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | ['change']) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_creates_static_watcher | self.assertEqual | complex_expr | 52 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | self.folder_root_path) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_handles_file_event | self.assertTrue | func_call | 54 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | change['uri'].endswith('file.js')) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_initialize_params_includes_capability | self.assertIn | complex_expr | 46 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | self.initialize_params['capabilities']['workspace']) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_file_watcher.py | test_handles_file_event | self.assertEqual | func_call | 53 | from LSP.plugin import FileWatcher
from LSP.plugin import FileWatcherEvent
from LSP.plugin import FileWatcherEventType
from LSP.plugin import FileWatcherProtocol
from LSP.plugin.core.file_watcher import file_watcher_event_type_to_lsp_file_change_type
from LSP.plugin.core.file_watcher import register_file_watcher_implem... | file_watcher_event_type_to_lsp_file_change_type('change')) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_message_request_handler.py | test_show_popup | self.assertTrue | func_call | 22 | import unittest
from test_mocks import MockSession
from LSP.plugin.core.message_request_handler import MessageRequestHandler
import sublime
class MessageRequestHandlerTest(unittest.TestCase):
def test_show_popup(self):
window = sublime.active_window()
view = window.active_view()
session = M... | view.is_popup_visible()) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_lsp_conversion | self.assertEqual | numeric_literal | 26 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | 4) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_lsp_conversion | self.assertEqual | numeric_literal | 28 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | 3) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_initialize | self.assertEqual | numeric_literal | 27 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | 1) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_shutdown | self.assertEqual | none_literal | 29 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | None) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_initialize | self.assertEqual | string_literal | 26 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | "2.0") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_initialized | self.assertEqual | func_call | 29 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | dict()) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_exit | self.assertEqual | string_literal | 28 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | "exit") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_initialized | self.assertNotIn | variable | 27 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | payload) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_shutdown | self.assertEqual | string_literal | 28 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | "shutdown") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_protocol.py | test_extend | self.assertEqual | variable | 28 | from LSP.plugin.core.protocol import Point, Position, Range, RangeLsp, Request, Notification
from LSP.plugin.core.transports import JsonRpcProcessor
import unittest
LSP_START_POSITION = {'line': 10, 'character': 4} # type: Position
LSP_END_POSITION = {'line': 11, 'character': 3} # type: Position
LSP_RANGE = {'start'... | other_range) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_notifications.py | test_publish_diagnostics | self.assertEqual | numeric_literal | 46 | from LSP.plugin.core.protocol import DiagnosticSeverity
from LSP.plugin.core.protocol import DiagnosticTag
from LSP.plugin.core.protocol import PublishDiagnosticsParams
from LSP.plugin.core.typing import Generator
from LSP.plugin.core.url import filename_to_uri
from setup import TextDocumentTestCase
import sublime
cla... | 1) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_notifications.py | test_publish_diagnostics | self.assertEqual | numeric_literal | 58 | from LSP.plugin.core.protocol import DiagnosticSeverity
from LSP.plugin.core.protocol import DiagnosticTag
from LSP.plugin.core.protocol import PublishDiagnosticsParams
from LSP.plugin.core.typing import Generator
from LSP.plugin.core.url import filename_to_uri
from setup import TextDocumentTestCase
import sublime
cla... | 0) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_notifications.py | test_publish_diagnostics | self.assertEqual | numeric_literal | 63 | from LSP.plugin.core.protocol import DiagnosticSeverity
from LSP.plugin.core.protocol import DiagnosticTag
from LSP.plugin.core.protocol import PublishDiagnosticsParams
from LSP.plugin.core.typing import Generator
from LSP.plugin.core.url import filename_to_uri
from setup import TextDocumentTestCase
import sublime
cla... | 2) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_panel_circular.py | test_server_panel_circular_behavior | assert_* | numeric_literal | 40 | from LSP.plugin.core.panels import ensure_log_panel
from LSP.plugin.core.panels import log_server_message
from LSP.plugin.core.panels import LspToggleLogPanelLinesLimitCommand
from unittesting import DeferrableTestCase
import sublime
class LspServerPanelTests(DeferrableTestCase):
def setUp(self):
super().... | 1) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_panel_circular.py | assert_total_lines_equal | self.assertEqual | variable | 26 | from LSP.plugin.core.panels import ensure_log_panel
from LSP.plugin.core.panels import log_server_message
from LSP.plugin.core.panels import LspToggleLogPanelLinesLimitCommand
from unittesting import DeferrableTestCase
import sublime
class LspServerPanelTests(DeferrableTestCase):
def setUp(self):
super().... | expected_total_lines) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_workspace_applyEdit_with_nontrivial_promises | self.assertTrue | variable | 74 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | view) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_client_registerCapability | self.assertEqual | string_literal | 74 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | "!@#") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_client_registerCapability | self.assertEqual | string_literal | 57 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | "asdf") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_client_registerCapability | self.assertEqual | string_literal | 54 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | "hello") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_client_registerCapability | self.assertTrue | variable | 73 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | trigger) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_workspace_applyEdit_with_nontrivial_promises | self.assertEqual | complex_expr | 78 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | expected[i]) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_workspace_applyEdit_with_nontrivial_promises | self.assertTrue | func_call | 76 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | view.is_valid()) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_workspace_applyEdit | self.assertEqual | string_literal | 37 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | "hello\nthere\n") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_workspace_applyEdit_with_nontrivial_promises | self.assertFalse | func_call | 77 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | view.is_loading()) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_server_requests.py | test_m_client_unregisterCapability | self.assertIn | complex_expr | 35 | from LSP.plugin.core.protocol import ErrorCode
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncremental
from LSP.plugin.core.sessions import SessionBufferProtocol
from LSP.plugin.core.types import ClientConfig
from LSP.plugin.core.typing import A... | self.session.capabilities) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_session.py | test_experimental_capabilities | self.assertEqual | collection | 37 | from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.protocol import Diagnostic
from LSP.plugin.core.protocol import DocumentUri
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncrementa... | {}) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_session.py | test_get_session_buffer_for_uri_with_nonfiles | self.assertIsNotNone | variable | 31 | from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.protocol import Diagnostic
from LSP.plugin.core.protocol import DocumentUri
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncrementa... | sb) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_session.py | test_initialize_params | self.assertIn | variable | 28 | from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.protocol import Diagnostic
from LSP.plugin.core.protocol import DocumentUri
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncrementa... | params) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_session.py | test_get_session_buffer_for_uri_with_nonfiles | self.assertEqual | string_literal | 33 | from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.protocol import Diagnostic
from LSP.plugin.core.protocol import DocumentUri
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncrementa... | "somelang") | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_session.py | test_document_sync_capabilities | self.assertEqual | collection | 81 | from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.protocol import Diagnostic
from LSP.plugin.core.protocol import DocumentUri
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncrementa... | (True, True)) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_session.py | test_document_sync_capabilities | self.assertEqual | collection | 37 | from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.protocol import Diagnostic
from LSP.plugin.core.protocol import DocumentUri
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncrementa... | (True, False)) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_session.py | test_initialize_params | self.assertEqual | collection | 34 | from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.protocol import Diagnostic
from LSP.plugin.core.protocol import DocumentUri
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncrementa... | {"foo": "bar"}) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
sublimelsp/LSP | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | train | train | tests/test_session.py | test_experimental_capabilities | self.assertNotIn | complex_expr | 30 | from LSP.plugin.core.collections import DottedDict
from LSP.plugin.core.protocol import Diagnostic
from LSP.plugin.core.protocol import DocumentUri
from LSP.plugin.core.protocol import Error
from LSP.plugin.core.protocol import TextDocumentSyncKindFull
from LSP.plugin.core.protocol import TextDocumentSyncKindIncrementa... | params["capabilities"]) | 4274fb262f870147e06f186f378a4f84138e58a5 | 294 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.