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
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_variables.py
test__variables_with_env_scope
assert
string_literal
43
import pytest from gitlab import GitlabGetError, GitlabListError from gitlabform.gitlab.core import UnexpectedResponseException, NotFoundException from tests.acceptance import run_gitlabform class TestVariables: def test__variables_with_env_scope(self, project): config_more_variables = f""" proj...
"beta"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_files.py
test__set_file_protected_branches
assert
string_literal
74
import os import pytest from gitlab import GitlabGetError from gitlabform.gitlab import AccessLevel from tests.acceptance import ( get_only_branch_access_levels, run_gitlabform, DEFAULT_README, ) def no_access_branch(project): branch = project.branches.create({"branch": "no_access_branch", "ref": "ma...
"foobar"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_files.py
test__set_file_protected_branches_not_all_levels
assert
string_literal
74
import os import pytest from gitlab import GitlabGetError from gitlabform.gitlab import AccessLevel from tests.acceptance import ( get_only_branch_access_levels, run_gitlabform, DEFAULT_README, ) def no_access_branch(project): branch = project.branches.create({"branch": "no_access_branch", "ref": "ma...
"barfoo"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_group_settings.py
test__edit_settings
assert
string_literal
6
from tests.acceptance import run_gitlabform class TestGroupSettings: def test__edit_settings(self, gl, group): assert group.description !=
"foobar"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_group_variables.py
test__reset_single_variable
assert
string_literal
35
from tests.acceptance import run_gitlabform class TestGroupVariables: def test__reset_single_variable(self, group_for_function): config_single_variable = f""" projects_and_groups: {group_for_function.full_path}/*: group_variables: foo: key: FOO ...
"123456"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_running.py
test__ALL_DEFINED
assert
string_literal
22
import pytest from tests.acceptance import ( run_gitlabform, ) from pathlib import Path from ruamel.yaml import YAML class TestRunning: def test__ALL_DEFINED(self, gl, project, other_project): config = f""" projects_and_groups: {project.path_with_namespace}: project_setti...
"foobar"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_variables.py
test__reset_single_variable
assert
string_literal
42
import pytest from gitlab import GitlabGetError, GitlabListError from gitlabform.gitlab.core import UnexpectedResponseException, NotFoundException from tests.acceptance import run_gitlabform class TestVariables: def test__reset_single_variable(self, project): config_single_variable = f""" projec...
"123456"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_variables.py
test__more_variables
assert
string_literal
31
import pytest from gitlab import GitlabGetError, GitlabListError from gitlabform.gitlab.core import UnexpectedResponseException, NotFoundException from tests.acceptance import run_gitlabform class TestVariables: def test__more_variables(self, project): config_more_variables = f""" projects_and_g...
"bleble"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_project_settings.py
test__builds_for_private_projects
assert
string_literal
6
from tests.acceptance import run_gitlabform class TestProjectSettings: def test__builds_for_private_projects(self, gl, project): assert project.visibility ==
"private"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_transfer_project.py
test__transfer_and_update
assert
string_literal
14
from tests.acceptance import ( get_random_suffix, run_gitlabform, ) from gitlabform.gitlab import AccessLevel from gitlab import GitlabTransferProjectError import re import pytest class TestTransferProject: def test__transfer_and_update(self, gl, project_for_function, group, other_group): assert ...
"private"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_transfer_project.py
test__transfer_and_update
assert
string_literal
50
from tests.acceptance import ( get_random_suffix, run_gitlabform, ) from gitlabform.gitlab import AccessLevel from gitlab import GitlabTransferProjectError import re import pytest class TestTransferProject: def test__transfer_and_update(self, gl, project_for_function, group, other_group): assert p...
"foo-bar"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_group_settings.py
test__edit_settings
assert
string_literal
18
from tests.acceptance import run_gitlabform class TestGroupSettings: def test__edit_settings(self, gl, group): assert group.description != "foobar" edit_group_settings = f""" projects_and_groups: {group.full_path}/*: group_settings: description: foobar ...
"internal"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_group_variables.py
test__masked_variables
assert
string_literal
21
from tests.acceptance import run_gitlabform class TestGroupVariables: def test__masked_variables(self, group_for_function): masked_variables = f""" projects_and_groups: {group_for_function.full_path}/*: group_variables: foo: key: FOO ...
"12345678"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_project_settings.py
test__builds_for_private_projects
assert
string_literal
18
from tests.acceptance import run_gitlabform class TestProjectSettings: def test__builds_for_private_projects(self, gl, project): assert project.visibility == "private" config_builds_for_private_projects = f""" projects_and_groups: {project.path_with_namespace}: projec...
"internal"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_transfer_project.py
test__transfer_and_update
assert
string_literal
45
from tests.acceptance import ( get_random_suffix, run_gitlabform, ) from gitlabform.gitlab import AccessLevel from gitlab import GitlabTransferProjectError import re import pytest class TestTransferProject: def test__transfer_and_update(self, gl, project_for_function, group, other_group): assert p...
"internal"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_resource_groups.py
test__update_resource_group_process_mode
assert
string_literal
43
import pytest from tests.acceptance import run_gitlabform import time def add_gitlab_ci_config(project): add_gitlab_ci_config = f""" projects_and_groups: {project.path_with_namespace}: files: ".gitlab-ci.yml": branches: - main overwrite: true ...
"production"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_group_badges.py
test__badges_add
assert
string_literal
21
from tests.acceptance import ( run_gitlabform, ) class TestGroupBadges: def test__badges_add(self, group): config = f""" projects_and_groups: {group.full_path}/*: group_badges: pipeline-status: name: "Group Badge" link_url: "ht...
"Group Badge"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_resource_groups.py
test__update_resource_group_process_mode
assert
string_literal
44
import pytest from tests.acceptance import run_gitlabform import time def add_gitlab_ci_config(project): add_gitlab_ci_config = f""" projects_and_groups: {project.path_with_namespace}: files: ".gitlab-ci.yml": branches: - main overwrite: true ...
"newest_first"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_badges.py
test__badges_add
assert
string_literal
25
from tests.acceptance import ( run_gitlabform, ) def get_project_badges(project): badges = project.badges.list(iterator=True) return [badge for badge in badges if badge.kind == "project"] class TestBadges: def test__badges_add(self, project): config = f""" projects_and_groups: ...
"Project Badge"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_files_all.py
test__set_file_all_branches
assert
string_literal
32
from tests.acceptance import run_gitlabform class TestFilesAll: def test__set_file_all_branches(self, project, branch, other_branch): set_file_all_branches = f""" projects_and_groups: {project.path_with_namespace}: branches: {branch}: protected: ...
"Content for all branches"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_files.py
test__set_file_specific_branch
assert
string_literal
80
import os import pytest from gitlab import GitlabGetError from gitlabform.gitlab import AccessLevel from tests.acceptance import ( get_only_branch_access_levels, run_gitlabform, DEFAULT_README, ) def no_access_branch(project): branch = project.branches.create({"branch": "no_access_branch", "ref": "ma...
f"Content for {branch} only"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_files.py
test__set_file_strongly_protected_branch
assert
string_literal
76
import os import pytest from gitlab import GitlabGetError from gitlabform.gitlab import AccessLevel from tests.acceptance import ( get_only_branch_access_levels, run_gitlabform, DEFAULT_README, ) def no_access_branch(project): branch = project.branches.create({"branch": "no_access_branch", "ref": "ma...
"Content for no_access_branch only"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_files_templates.py
test__trailing_new_lines
assert
string_literal
33
import os import pytest from tests.acceptance import run_gitlabform def file3(request): f = open("file3.txt", "a") f.write("{{ group }}/{{ project }}\n\n") f.close() def fin(): os.remove("file3.txt") request.addfinalizer(fin) class TestFilesTemplates: def test__trailing_new_lines(s...
f"{project.path_with_namespace}\n\n"
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_application_settings.py
test__can_set_2fa_application_settings
assert
none_literal
9
import logging from tests.acceptance import run_gitlabform class TestApplicationSettings: def test__can_set_2fa_application_settings(self, gl, project): initial_settings = gl.settings.get() assert initial_settings is not
None
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_branches.py
test__protect_and_unprotect
assert
none_literal
53
from gitlabform.gitlab import AccessLevel from tests.acceptance import get_only_branch_access_levels, run_gitlabform class TestBranches: def test__protect_and_unprotect(self, project, branch): config_protect_branch = f""" projects_and_groups: {project.path_with_namespace}: bra...
None
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_inheritance_break.py
test__inheritance_break
assert
none_literal
45
from gitlabform.gitlab import AccessLevel from tests.acceptance import ( run_gitlabform, get_only_branch_access_levels, ) class TestInheritanceBreak: def test__inheritance_break( self, group, project, branch, other_branch, ): config_yaml = f""" pr...
None
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gitlabform/gitlabform
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
train
train
tests/acceptance/standard/test_schedules.py
test__add_new_schedule
assert
none_literal
64
import logging import pytest from tests.acceptance import run_gitlabform def schedules(project): another_branch = "scheduled/new-feature" project.branches.create({"branch": another_branch, "ref": "main"}) # fmt: off schedules = [ ("Existing schedule", "main", "0 * * * *", True), ("Exi...
None
6dcd0b01104fbd7da88d3496520959fc864b6e1b
238
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_cli_commands.py
test_list_empty_skills_dir
assert
numeric_literal
46
import json from dataclasses import dataclass from pathlib import Path import pytest from typer.testing import CliRunner from skillport.interfaces.cli.app import app from skillport.modules.indexing import build_index from skillport.shared.config import Config runner = CliRunner() def _create_skill(path: Path, name:...
0
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_cli_commands.py
test_list_json_output
assert
numeric_literal
53
import json from dataclasses import dataclass from pathlib import Path import pytest from typer.testing import CliRunner from skillport.interfaces.cli.app import app from skillport.modules.indexing import build_index from skillport.shared.config import Config runner = CliRunner() def _create_skill(path: Path, name:...
1
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_cli_commands.py
test_list_with_limit
assert
numeric_literal
52
import json from dataclasses import dataclass from pathlib import Path import pytest from typer.testing import CliRunner from skillport.interfaces.cli.app import app from skillport.modules.indexing import build_index from skillport.shared.config import Config runner = CliRunner() def _create_skill(path: Path, name:...
2
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_search_skills_returns_results
assert
numeric_literal
61
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
0
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_search_skills_empty_query_lists_all
assert
numeric_literal
61
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
1
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_search_skills_returns_results
assert
none_literal
59
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
None
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_read_skill_file_text
assert
string_literal
68
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
"utf-8"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_read_skill_file_binary
assert
string_literal
68
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
"base64"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_list_tools_returns_two_tools
assert
variable
61
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
tool_names
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_search_skills_returns_results
assert
complex_expr
60
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
result.data
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_read_skill_file_binary
assert
string_literal
69
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
"image/png"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_read_skill_file_binary
assert
variable
71
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
binary_data
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_mcp_server.py
test_load_skill_returns_details
assert
string_literal
60
import base64 from pathlib import Path import pytest from fastmcp.client import Client from skillport.interfaces.mcp.server import create_mcp_server from skillport.modules.indexing import build_index from skillport.shared.config import Config def _create_test_skill(skills_dir: Path, skill_id: str, content: str = "Te...
"test-skill"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_search_and_tools_integration.py
test_read_skill_file_guards_traversal_and_supports_binary
assert
string_literal
57
from pathlib import Path from types import SimpleNamespace from unittest.mock import patch import pytest from skillport.modules.indexing import search as idx_search from skillport.modules.skills import read_skill_file, search_skills from skillport.shared.config import Config def _make_config(tmp_path: Path) -> Confi...
"hello"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_search_and_tools_integration.py
test_read_skill_file_guards_traversal_and_supports_binary
assert
string_literal
58
from pathlib import Path from types import SimpleNamespace from unittest.mock import patch import pytest from skillport.modules.indexing import search as idx_search from skillport.modules.skills import read_skill_file, search_skills from skillport.shared.config import Config def _make_config(tmp_path: Path) -> Confi...
"utf-8"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_search_and_tools_integration.py
test_read_skill_file_guards_traversal_and_supports_binary
assert
string_literal
52
from pathlib import Path from types import SimpleNamespace from unittest.mock import patch import pytest from skillport.modules.indexing import search as idx_search from skillport.modules.skills import read_skill_file, search_skills from skillport.shared.config import Config def _make_config(tmp_path: Path) -> Confi...
"base64"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_search_and_tools_integration.py
test_filter_respects_enabled_categories
assert
collection
46
from pathlib import Path from types import SimpleNamespace from unittest.mock import patch import pytest from skillport.modules.indexing import search as idx_search from skillport.modules.skills import read_skill_file, search_skills from skillport.shared.config import Config def _make_config(tmp_path: Path) -> Confi...
["ml-skill"]
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_search_and_tools_integration.py
test_read_skill_file_guards_traversal_and_supports_binary
assert
variable
53
from pathlib import Path from types import SimpleNamespace from unittest.mock import patch import pytest from skillport.modules.indexing import search as idx_search from skillport.modules.skills import read_skill_file, search_skills from skillport.shared.config import Config def _make_config(tmp_path: Path) -> Confi...
binary_content
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_search_and_tools_integration.py
test_read_skill_file_guards_traversal_and_supports_binary
pytest.raises
variable
45
from pathlib import Path from types import SimpleNamespace from unittest.mock import patch import pytest from skillport.modules.indexing import search as idx_search from skillport.modules.skills import read_skill_file, search_skills from skillport.shared.config import Config def _make_config(tmp_path: Path) -> Confi...
PermissionError)
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/integration/test_search_and_tools_integration.py
test_embedding_failure_falls_back_to_fts
assert
collection
33
from pathlib import Path from types import SimpleNamespace from unittest.mock import patch import pytest from skillport.modules.indexing import search as idx_search from skillport.modules.skills import read_skill_file, search_skills from skillport.shared.config import Config def _make_config(tmp_path: Path) -> Confi...
["alpha", "beta"]
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/pbt/test_name_properties.py
test_valid_names_pass_validation
assert
numeric_literal
52
import string from hypothesis import assume, given, settings from hypothesis import strategies as st from skillport.modules.skills.internal.validation import ( NAME_MAX_LENGTH, NAME_PATTERN, NAME_RESERVED_WORDS, validate_skill_record, ) valid_name_chars = st.sampled_from(string.ascii_lowercase + stri...
0
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/pbt/test_name_properties.py
test_valid_names_match_pattern
assert
none_literal
39
import string from hypothesis import assume, given, settings from hypothesis import strategies as st from skillport.modules.skills.internal.validation import ( NAME_MAX_LENGTH, NAME_PATTERN, NAME_RESERVED_WORDS, validate_skill_record, ) valid_name_chars = st.sampled_from(string.ascii_lowercase + stri...
None
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/pbt/test_name_properties.py
test_normalization_is_idempotent
assert
variable
40
import string from hypothesis import assume, given, settings from hypothesis import strategies as st from skillport.modules.skills.internal.validation import ( NAME_MAX_LENGTH, NAME_PATTERN, NAME_RESERVED_WORDS, validate_skill_record, ) valid_name_chars = st.sampled_from(string.ascii_lowercase + stri...
normalized_twice
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/pbt/test_name_properties.py
test_normalization_removes_leading_trailing_whitespace
assert
func_call
38
import string from hypothesis import assume, given, settings from hypothesis import strategies as st from skillport.modules.skills.internal.validation import ( NAME_MAX_LENGTH, NAME_PATTERN, NAME_RESERVED_WORDS, validate_skill_record, ) valid_name_chars = st.sampled_from(string.ascii_lowercase + stri...
normalized.strip()
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/pbt/test_name_properties.py
test_normalization_is_lowercase
assert
func_call
38
import string from hypothesis import assume, given, settings from hypothesis import strategies as st from skillport.modules.skills.internal.validation import ( NAME_MAX_LENGTH, NAME_PATTERN, NAME_RESERVED_WORDS, validate_skill_record, ) valid_name_chars = st.sampled_from(string.ascii_lowercase + stri...
normalized.lower()
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/pbt/test_name_properties.py
test_whitespace_variations_normalize_same
assert
func_call
43
import string from hypothesis import assume, given, settings from hypothesis import strategies as st from skillport.modules.skills.internal.validation import ( NAME_MAX_LENGTH, NAME_PATTERN, NAME_RESERVED_WORDS, validate_skill_record, ) valid_name_chars = st.sampled_from(string.ascii_lowercase + stri...
variant2.strip().lower()
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_logic.py
test_single_skill_at_root
assert
numeric_literal
32
from pathlib import Path import pytest from skillport.modules.skills.internal.manager import ( BUILTIN_SKILLS, _validate_skill_file, add_builtin, add_local, detect_skills, ) from skillport.shared.config import Config def _create_skill(path: Path, name: str, description: str = "Test description") ...
1
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_logic.py
test_multiple_skills_in_children
assert
numeric_literal
33
from pathlib import Path import pytest from skillport.modules.skills.internal.manager import ( BUILTIN_SKILLS, _validate_skill_file, add_builtin, add_local, detect_skills, ) from skillport.shared.config import Config def _create_skill(path: Path, name: str, description: str = "Test description") ...
3
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_logic.py
test_no_skill_md_returns_empty
assert
numeric_literal
32
from pathlib import Path import pytest from skillport.modules.skills.internal.manager import ( BUILTIN_SKILLS, _validate_skill_file, add_builtin, add_local, detect_skills, ) from skillport.shared.config import Config def _create_skill(path: Path, name: str, description: str = "Test description") ...
0
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_logic.py
test_mixed_new_and_existing
assert
numeric_literal
50
from pathlib import Path import pytest from skillport.modules.skills.internal.manager import ( BUILTIN_SKILLS, _validate_skill_file, add_builtin, add_local, detect_skills, ) from skillport.shared.config import Config def _create_skill(path: Path, name: str, description: str = "Test description") ...
2
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_logic.py
test_add_single_skill_from_zip
assert
none_literal
52
from pathlib import Path import pytest from skillport.modules.skills.internal.manager import ( BUILTIN_SKILLS, _validate_skill_file, add_builtin, add_local, detect_skills, ) from skillport.shared.config import Config def _create_skill(path: Path, name: str, description: str = "Test description") ...
None
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_logic.py
test_add_single_skill_from_zip
assert
string_literal
53
from pathlib import Path import pytest from skillport.modules.skills.internal.manager import ( BUILTIN_SKILLS, _validate_skill_file, add_builtin, add_local, detect_skills, ) from skillport.shared.config import Config def _create_skill(path: Path, name: str, description: str = "Test description") ...
"zip"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_logic.py
test_add_single_skill_from_zip
assert
variable
54
from pathlib import Path import pytest from skillport.modules.skills.internal.manager import ( BUILTIN_SKILLS, _validate_skill_file, add_builtin, add_local, detect_skills, ) from skillport.shared.config import Config def _create_skill(path: Path, name: str, description: str = "Test description") ...
origin
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_namespace.py
test_add_local_custom_namespace
assert
collection
30
from skillport.modules.skills.internal.manager import add_local, detect_skills from skillport.shared.config import Config def test_add_local_custom_namespace(tmp_path): source = tmp_path / "collection" (source / "skill-a").mkdir(parents=True) (source / "skill-a" / "SKILL.md").write_text( "---\nname...
{"customns/skill-a", "customns/skill-b"}
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_add_skill_cleanup.py
test_prefetched_dir_cleanup_after_rename
assert
complex_expr
33
from pathlib import Path from skillport.modules.skills import add_skill from skillport.shared.config import Config def _write_skill(dir_path: Path, dir_name: str, skill_name: str) -> Path: skill_dir = dir_path / dir_name skill_dir.mkdir(parents=True, exist_ok=True) (skill_dir / "SKILL.md").write_text( ...
result.added
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_auto_index.py
test_ensure_index_fresh_skip_when_disabled
assert
collection
26
from pathlib import Path from types import SimpleNamespace from skillport.interfaces.cli import auto_index from skillport.shared.config import Config def test_ensure_index_fresh_skip_when_disabled(monkeypatch, tmp_path: Path): calls = [] def fake_should_reindex(config): return SimpleNamespace(need=Tr...
[]
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_auto_index.py
test_should_auto_reindex_env_overrides
assert
bool_literal
14
from pathlib import Path from types import SimpleNamespace from skillport.interfaces.cli import auto_index from skillport.shared.config import Config def test_should_auto_reindex_env_overrides(monkeypatch): monkeypatch.setenv("SKILLPORT_AUTO_REINDEX", "0") ctx = DummyCtx() assert auto_index.should_auto_re...
True
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_auto_index.py
test_should_auto_reindex_env_overrides
assert
bool_literal
11
from pathlib import Path from types import SimpleNamespace from skillport.interfaces.cli import auto_index from skillport.shared.config import Config def test_should_auto_reindex_env_overrides(monkeypatch): monkeypatch.setenv("SKILLPORT_AUTO_REINDEX", "0") ctx = DummyCtx() assert auto_index.should_auto_r...
False
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_auto_index.py
test_ensure_index_fresh_calls_build
assert
collection
26
from pathlib import Path from types import SimpleNamespace from skillport.interfaces.cli import auto_index from skillport.shared.config import Config def test_ensure_index_fresh_calls_build(monkeypatch, tmp_path: Path): calls = [] def fake_should_reindex(config): return SimpleNamespace(need=True, rea...
[("build", False)]
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_search_limit_default
assert
numeric_literal
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigDefaults: def test_search_limit_default(self, monkeypatch): """SKILLPORT_SEARCH_LIMIT defaults to 10.""" monkeypatch.delenv("SKILLPORT_SEARCH_LIMIT", raising=False) cfg = Con...
10
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_search_limit_from_env
assert
numeric_literal
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigEnvironment: def test_search_limit_from_env(self, monkeypatch): """SKILLPORT_SEARCH_LIMIT loaded from environment.""" monkeypatch.setenv("SKILLPORT_SEARCH_LIMIT", "50") cfg =...
50
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_filter_empty_list_json
assert
collection
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigFilters: def test_filter_empty_list_json(self, monkeypatch): """Empty JSON list → empty list.""" monkeypatch.setenv("SKILLPORT_ENABLED_SKILLS", "[]") cfg = Config() ...
[]
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_search_threshold_default
assert
numeric_literal
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigDefaults: def test_search_threshold_default(self, monkeypatch): """SKILLPORT_SEARCH_THRESHOLD defaults to 0.2.""" monkeypatch.delenv("SKILLPORT_SEARCH_THRESHOLD", raising=False) ...
0.2
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_embedding_provider_default
assert
string_literal
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigDefaults: def test_embedding_provider_default(self, monkeypatch): """SKILLPORT_EMBEDDING_PROVIDER defaults to 'none'.""" monkeypatch.delenv("SKILLPORT_EMBEDDING_PROVIDER", raising=Fa...
"none"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_core_skills_mode_default_is_auto
assert
string_literal
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestCoreSkillsModeConfig: def test_core_skills_mode_default_is_auto(self, monkeypatch): """SKILLPORT_CORE_SKILLS_MODE defaults to 'auto'.""" monkeypatch.delenv("SKILLPORT_CORE_SKILLS_MODE", ra...
"auto"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_log_level_env_optional
assert
string_literal
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigEnvironment: def test_log_level_env_optional(self, monkeypatch): """SKILLPORT_LOG_LEVEL is accepted but optional.""" monkeypatch.setenv("SKILLPORT_LOG_LEVEL", "DEBUG") cfg = ...
"DEBUG"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_openai_with_key_ok
assert
string_literal
15
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigProviderValidation: def test_openai_with_key_ok(self, monkeypatch): """provider=openai with OPENAI_API_KEY → ok.""" monkeypatch.setenv("SKILLPORT_EMBEDDING_PROVIDER", "openai") ...
"openai"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_core_skills_mode_from_env_explicit
assert
string_literal
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestCoreSkillsModeConfig: def test_core_skills_mode_from_env_explicit(self, monkeypatch): """SKILLPORT_CORE_SKILLS_MODE=explicit loaded correctly.""" monkeypatch.setenv("SKILLPORT_CORE_SKILLS_...
"explicit"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_config_is_frozen
pytest.raises
variable
13
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigImmutability: def test_config_is_frozen(self, monkeypatch): """Config instances are frozen (immutable).""" cfg = Config() with pytest.raises(
Exception)
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_unsupported_provider_rejected
pytest.raises
variable
13
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigProviderValidation: def test_unsupported_provider_rejected(self, monkeypatch): """Unsupported embedding provider raises validation error.""" monkeypatch.setenv("SKILLPORT_EMBEDDING_P...
ValueError)
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_openai_with_key_ok
assert
string_literal
16
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigProviderValidation: def test_openai_with_key_ok(self, monkeypatch): """provider=openai with OPENAI_API_KEY → ok.""" monkeypatch.setenv("SKILLPORT_EMBEDDING_PROVIDER", "openai") ...
"sk-test-key"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_enabled_categories_json_format
assert
collection
14
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigFilters: def test_enabled_categories_json_format(self, monkeypatch): """SKILLPORT_ENABLED_CATEGORIES parsed as JSON list.""" monkeypatch.setenv("SKILLPORT_ENABLED_CATEGORIES", '["dev...
["dev", "test"]
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_config.py
test_with_overrides_creates_new
assert
complex_expr
15
from pathlib import Path import pytest from skillport.shared.config import SKILLPORT_HOME, Config class TestConfigImmutability: def test_with_overrides_creates_new(self, monkeypatch, tmp_path): """with_overrides creates new Config without mutating original.""" cfg1 = Config() cfg2 = cfg1...
cfg2.skills_dir
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_core_skills_mode.py
test_auto_mode_returns_always_apply_skills
assert
numeric_literal
24
from unittest.mock import MagicMock, patch from skillport.modules.indexing.public.query import get_core_skills from skillport.shared.config import Config class TestGetCoreSkillsAutoMode: def test_auto_mode_returns_always_apply_skills(self): """mode=auto returns skills with alwaysApply=true.""" co...
1
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_core_skills_mode.py
test_explicit_mode_ignores_always_apply_flag
assert
collection
25
from unittest.mock import MagicMock, patch from skillport.modules.indexing.public.query import get_core_skills from skillport.shared.config import Config class TestGetCoreSkillsExplicitMode: def test_explicit_mode_ignores_always_apply_flag(self): """mode=explicit ignores alwaysApply flag entirely.""" ...
[]
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_core_skills_mode.py
test_auto_mode_returns_always_apply_skills
assert
string_literal
25
from unittest.mock import MagicMock, patch from skillport.modules.indexing.public.query import get_core_skills from skillport.shared.config import Config class TestGetCoreSkillsAutoMode: def test_auto_mode_returns_always_apply_skills(self): """mode=auto returns skills with alwaysApply=true.""" co...
"skill-a"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_core_skills_mode.py
test_explicit_mode_returns_only_specified_skills
assert
string_literal
26
from unittest.mock import MagicMock, patch from skillport.modules.indexing.public.query import get_core_skills from skillport.shared.config import Config class TestGetCoreSkillsExplicitMode: def test_explicit_mode_returns_only_specified_skills(self): """mode=explicit returns only skills in core_skills li...
"skill-b"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_core_skills_mode.py
test_explicit_mode_returns_only_specified_skills
assert_*
string_literal
27
from unittest.mock import MagicMock, patch from skillport.modules.indexing.public.query import get_core_skills from skillport.shared.config import Config class TestGetCoreSkillsExplicitMode: def test_explicit_mode_returns_only_specified_skills(self): """mode=explicit returns only skills in core_skills li...
"skill-b")
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_doc.py
test_long_description_truncated
assert
numeric_literal
18
from pathlib import Path from skillport.interfaces.cli.commands.doc import ( MARKER_END, MARKER_START, _truncate_description, generate_skills_block, update_agents_md, ) from skillport.modules.skills import SkillSummary class TestTruncateDescription: def test_long_description_truncated(self): ...
50
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_doc.py
test_creates_new_file
assert
bool_literal
22
from pathlib import Path from skillport.interfaces.cli.commands.doc import ( MARKER_END, MARKER_START, _truncate_description, generate_skills_block, update_agents_md, ) from skillport.modules.skills import SkillSummary class TestUpdateAgentsMd: def test_creates_new_file(self, tmp_path: Path):...
True
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_doc.py
test_newlines_replaced
assert
variable
18
from pathlib import Path from skillport.interfaces.cli.commands.doc import ( MARKER_END, MARKER_START, _truncate_description, generate_skills_block, update_agents_md, ) from skillport.modules.skills import SkillSummary class TestTruncateDescription: def test_newlines_replaced(self): "...
result
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_github_source.py
test_parse_github_url_root_defaults_to_main
assert
string_literal
33
import io import tarfile from pathlib import Path import pytest from skillport.modules.skills.internal.github import ( GITHUB_URL_RE, ParsedGitHubURL, extract_tarball, parse_github_url, ) def _make_tar(tmp_path: Path, structure: dict) -> Path: """Create a tar.gz with given structure under root fo...
""
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_github_source.py
test_regex_matches
assert
none_literal
78
import io import tarfile from pathlib import Path import pytest from skillport.modules.skills.internal.github import ( GITHUB_URL_RE, ParsedGitHubURL, extract_tarball, parse_github_url, ) def _make_tar(tmp_path: Path, structure: dict) -> Path: """Create a tar.gz with given structure under root fo...
None
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_github_source.py
test_extract_tarball_subpath
assert
string_literal
40
import io import tarfile from pathlib import Path import pytest from skillport.modules.skills.internal.github import ( GITHUB_URL_RE, ParsedGitHubURL, extract_tarball, parse_github_url, ) def _make_tar(tmp_path: Path, structure: dict) -> Path: """Create a tar.gz with given structure under root fo...
"sha"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_github_source.py
test_parse_github_url_root_defaults_to_main
assert
string_literal
30
import io import tarfile from pathlib import Path import pytest from skillport.modules.skills.internal.github import ( GITHUB_URL_RE, ParsedGitHubURL, extract_tarball, parse_github_url, ) def _make_tar(tmp_path: Path, structure: dict) -> Path: """Create a tar.gz with given structure under root fo...
"user"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_github_source.py
test_parse_github_url_root_defaults_to_main
assert
string_literal
31
import io import tarfile from pathlib import Path import pytest from skillport.modules.skills.internal.github import ( GITHUB_URL_RE, ParsedGitHubURL, extract_tarball, parse_github_url, ) def _make_tar(tmp_path: Path, structure: dict) -> Path: """Create a tar.gz with given structure under root fo...
"repo"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_github_source.py
test_parse_github_url_root_defaults_to_main
assert
string_literal
32
import io import tarfile from pathlib import Path import pytest from skillport.modules.skills.internal.github import ( GITHUB_URL_RE, ParsedGitHubURL, extract_tarball, parse_github_url, ) def _make_tar(tmp_path: Path, structure: dict) -> Path: """Create a tar.gz with given structure under root fo...
"main"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_github_source.py
test_parse_github_url_with_ref_and_path
assert
string_literal
30
import io import tarfile from pathlib import Path import pytest from skillport.modules.skills.internal.github import ( GITHUB_URL_RE, ParsedGitHubURL, extract_tarball, parse_github_url, ) def _make_tar(tmp_path: Path, structure: dict) -> Path: """Create a tar.gz with given structure under root fo...
"feat"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_index_state.py
test_state_written_and_skipped_when_unchanged
assert
bool_literal
24
from pathlib import Path from unittest.mock import patch from skillport.modules.indexing.internal.lancedb import IndexStore from skillport.shared.config import Config def _make_store(tmp_path: Path): cfg = Config(skills_dir=tmp_path / "skills", db_path=tmp_path / "db.lancedb") with patch( "skillport.m...
True
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_index_state.py
test_state_written_and_skipped_when_unchanged
assert
bool_literal
28
from pathlib import Path from unittest.mock import patch from skillport.modules.indexing.internal.lancedb import IndexStore from skillport.shared.config import Config def _make_store(tmp_path: Path): cfg = Config(skills_dir=tmp_path / "skills", db_path=tmp_path / "db.lancedb") with patch( "skillport.m...
False
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_index_state.py
test_state_written_and_skipped_when_unchanged
assert
string_literal
29
from pathlib import Path from unittest.mock import patch from skillport.modules.indexing.internal.lancedb import IndexStore from skillport.shared.config import Config def _make_store(tmp_path: Path): cfg = Config(skills_dir=tmp_path / "skills", db_path=tmp_path / "db.lancedb") with patch( "skillport.m...
"unchanged"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_index_state.py
test_state_detects_change
assert
string_literal
29
from pathlib import Path from unittest.mock import patch from skillport.modules.indexing.internal.lancedb import IndexStore from skillport.shared.config import Config def _make_store(tmp_path: Path): cfg = Config(skills_dir=tmp_path / "skills", db_path=tmp_path / "db.lancedb") with patch( "skillport.m...
"hash_changed"
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor
gotalab/skillport
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
train
train
tests/unit/test_init_command.py
test_default_skills_dirs_has_options
assert
numeric_literal
16
from pathlib import Path import yaml from skillport.interfaces.cli.commands.init import ( DEFAULT_INSTRUCTIONS, DEFAULT_SKILLS_DIRS, _create_skillportrc, ) class TestDefaultConstants: def test_default_skills_dirs_has_options(self): """DEFAULT_SKILLS_DIRS has multiple options.""" ass...
2
52911ae18531482fc763fca45e53ed7bfcf6e40e
34
v2_extractor_at_anchor