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
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_env.py
test_env
assert
collection
28
from __future__ import unicode_literals import copy import os import sys import pytest def cleanup(): _clean() try: yield finally: _clean() def _clean(): for module in copy.copy(sys.modules): if module.startswith('pypinyin'): sys.modules.pop(module, None) def te...
['北京']
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_env.py
test_no_copy
assert
complex_expr
27
from __future__ import unicode_literals import copy import os import sys import pytest def cleanup(): _clean() try: yield finally: _clean() def _clean(): for module in copy.copy(sys.modules): if module.startswith('pypinyin'): sys.modules.pop(module, None) def te...
pypinyin.pinyin_dict.pinyin_dict
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_others.py
test_issue_205
assert
collection
8
from __future__ import unicode_literals from pypinyin import pinyin, Style, lazy_pinyin, slug from pypinyin.seg.simpleseg import simple_seg def test_issue_205(): assert pinyin('金融行业', Style.FIRST_LETTER)[2] == ['h']
['h']
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_others.py
test_simple_seg
assert
collection
8
from __future__ import unicode_literals from pypinyin import pinyin, Style, lazy_pinyin, slug from pypinyin.seg.simpleseg import simple_seg def test_simple_seg(): assert simple_seg('啦啦') == ['啦啦
['啦啦']
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_others.py
test_simple_seg
assert
collection
12
from __future__ import unicode_literals from pypinyin import pinyin, Style, lazy_pinyin, slug from pypinyin.seg.simpleseg import simple_seg def test_simple_seg(): assert simple_seg('啦啦') == ['啦啦'] assert simple_seg('啦啦abc') == ['啦啦', 'abc'] assert simple_seg('&##啦啦abc') == ['&##', '啦啦', 'abc'] assert ...
['哦', 'ほ#']
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_others.py
test_simple_seg
assert
collection
9
from __future__ import unicode_literals from pypinyin import pinyin, Style, lazy_pinyin, slug from pypinyin.seg.simpleseg import simple_seg def test_simple_seg(): assert simple_seg('啦啦') == ['啦啦'] assert simple_seg('啦啦abc') == ['啦啦
['啦啦', 'abc']
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_simple_seg
assert
variable
21
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
p
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_m_e
assert
numeric_literal
25
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
1
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_others
assert
collection
17
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
[]
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_simple_seg
assert
variable
25
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
ret
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_36
assert
variable
18
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
pys
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_update
assert
variable
17
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
result
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_errors
assert
complex_expr
47
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
han[2]
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_custom_pinyin_dict
assert
collection
22
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
['ju2']
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_custom_pinyin_dict_tone2
assert
collection
17
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
['ce4']
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_dont_support_ucs4
assert
collection
25
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
[[han]]
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_m4
assert
collection
18
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
[['ḿ']]
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_m4
assert
collection
30
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
[['m']]
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_custom_pinyin_dict_tone2
assert
collection
18
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
[['cè']]
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_slug
assert
string_literal
17
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
'zhong-xin'
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_pinyin.py
test_lazy_pinyin
assert
collection
19
from __future__ import unicode_literals import pytest from pypinyin import ( pinyin, slug, lazy_pinyin, load_single_dict, load_phrases_dict, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3, BOPOMOFO, BOPOMOFO_FIRST, CYRILLIC, CYRILLIC_FIRST, Style ) ...
['zh', 'x']
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_standard.py
test_initials
assert
variable
39
from __future__ import unicode_literals from itertools import chain import pytest from pypinyin import ( lazy_pinyin, pinyin, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3 ) data_for_initials = [ ['玻', dict(style=INITIALS), ['b']], ['坡', dict(sty...
result
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_standard.py
test_finals
assert
collection
40
from __future__ import unicode_literals from itertools import chain import pytest from pypinyin import ( lazy_pinyin, pinyin, NORMAL, TONE, TONE2, TONE3, INITIALS, FIRST_LETTER, FINALS, FINALS_TONE, FINALS_TONE2, FINALS_TONE3 ) data_for_initials = [ ['玻', dict(style=INITIALS), ['b']], ['坡', dict(sty...
[result]
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_style.py
test_finals_tone3_no_final
assert
string_literal
9
from __future__ import unicode_literals from copy import deepcopy from pypinyin import pinyin, Style from pypinyin.style import register, convert def test_finals_tone3_no_final(): assert convert('ń', Style.FINALS_TONE3, True, None) == '
'n2'
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mozillazg/python-pinyin
837453d998d9ac9eb083fc308193df8c45df9820
56
train
train
tests/test_style.py
test_custom_style_with_decorator
assert
variable
22
from __future__ import unicode_literals from copy import deepcopy from pypinyin import pinyin, Style from pypinyin.style import register, convert def test_custom_style_with_decorator(): style_value = 'test_custom_style_with_decorator' @register(style_value) def func(pinyin, **kwargs): return piny...
expected_pinyin_s
837453d998d9ac9eb083fc308193df8c45df9820
56
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
code_puppy/plugins/antigravity_oauth/test_plugin.py
test_migrate_v1_to_v2
assert
numeric_literal
49
from __future__ import annotations import time import pytest from .accounts import AccountManager from .config import ANTIGRAVITY_OAUTH_CONFIG from .constants import ANTIGRAVITY_MODELS, ANTIGRAVITY_SCOPES from .oauth import ( _compute_code_challenge, _decode_state, _encode_state, _generate_code_verif...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
code_puppy/plugins/antigravity_oauth/test_plugin.py
test_migrate_v1_to_v2
assert
numeric_literal
50
from __future__ import annotations import time import pytest from .accounts import AccountManager from .config import ANTIGRAVITY_OAUTH_CONFIG from .constants import ANTIGRAVITY_MODELS, ANTIGRAVITY_SCOPES from .oauth import ( _compute_code_challenge, _decode_state, _encode_state, _generate_code_verif...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
code_puppy/plugins/antigravity_oauth/test_plugin.py
test_migrate_v2_to_v3
assert
numeric_literal
49
from __future__ import annotations import time import pytest from .accounts import AccountManager from .config import ANTIGRAVITY_OAUTH_CONFIG from .constants import ANTIGRAVITY_MODELS, ANTIGRAVITY_SCOPES from .oauth import ( _compute_code_challenge, _decode_state, _encode_state, _generate_code_verif...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
code_puppy/plugins/antigravity_oauth/test_plugin.py
test_empty_manager
assert
numeric_literal
34
from __future__ import annotations import time import pytest from .accounts import AccountManager from .config import ANTIGRAVITY_OAUTH_CONFIG from .constants import ANTIGRAVITY_MODELS, ANTIGRAVITY_SCOPES from .oauth import ( _compute_code_challenge, _decode_state, _encode_state, _generate_code_verif...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
code_puppy/plugins/chatgpt_oauth/test_plugin.py
test_code_challenge_computation
assert
numeric_literal
14
import json from unittest.mock import MagicMock, patch import pytest from code_puppy.plugins.chatgpt_oauth import config, utils def test_code_challenge_computation(): """Test PKCE code challenge computation.""" verifier = "test_verifier_string" challenge = utils._compute_code_challenge(verifier) asse...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
code_puppy/plugins/chatgpt_oauth/test_plugin.py
test_remove_chatgpt_models
assert
numeric_literal
28
import json from unittest.mock import MagicMock, patch import pytest from code_puppy.plugins.chatgpt_oauth import config, utils def test_remove_chatgpt_models(tmp_path): """Test removal of ChatGPT models from config.""" with patch.object( config, "get_chatgpt_models_path", return_value=tmp_path / "ch...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_agent_manager_basics.py
test_list_agents_basic
assert
numeric_literal
43
import importlib import tempfile from pathlib import Path from unittest.mock import MagicMock, patch import pytest from code_puppy.agents.agent_manager import ( _AGENT_REGISTRY, _discover_agents, _load_session_data, _save_session_data, get_available_agents, get_current_agent, get_terminal_...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_agent_manager_basics.py
test_get_terminal_session_id
assert
numeric_literal
46
import importlib import tempfile from pathlib import Path from unittest.mock import MagicMock, patch import pytest from code_puppy.agents.agent_manager import ( _AGENT_REGISTRY, _discover_agents, _load_session_data, _save_session_data, get_available_agents, get_current_agent, get_terminal_...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_agent_manager_basics.py
test_discover_agents_skips_internal_modules
assert
numeric_literal
74
import importlib import tempfile from pathlib import Path from unittest.mock import MagicMock, patch import pytest from code_puppy.agents.agent_manager import ( _AGENT_REGISTRY, _discover_agents, _load_session_data, _save_session_data, get_available_agents, get_current_agent, get_terminal_...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_agent_manager_sessions.py
test_cleanup_calls_is_process_alive
assert
numeric_literal
34
import json import os import platform from pathlib import Path from unittest.mock import patch import pytest from code_puppy.agents.agent_manager import ( _cleanup_dead_sessions, _ensure_session_cache_loaded, _get_session_file_path, _is_process_alive, _load_session_data, _save_session_data, ...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_agent_manager_sessions.py
test_ensure_session_cache_loaded_loads_once
assert
numeric_literal
35
import json import os import platform from pathlib import Path from unittest.mock import patch import pytest from code_puppy.agents.agent_manager import ( _cleanup_dead_sessions, _ensure_session_cache_loaded, _get_session_file_path, _is_process_alive, _load_session_data, _save_session_data, ...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_agent_terminal_qa.py
test_description
assert
numeric_literal
17
import pytest from code_puppy.agents.base_agent import BaseAgent class TestTerminalQAAgentProperties: def agent(self): """Create a Terminal QA Agent instance.""" from code_puppy.agents.agent_terminal_qa import TerminalQAAgent return TerminalQAAgent() def test_description(self, agent...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_accumulator.py
test_message_history_accumulator_deduplication
assert
numeric_literal
46
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import RunContext from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ThinkingPart, ToolCallPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentAccumulator: de...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_accumulator.py
test_message_history_accumulator_new_message_added
assert
numeric_literal
44
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import RunContext from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ThinkingPart, ToolCallPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentAccumulator: de...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_accumulator.py
test_message_history_accumulator_respects_compacted_hashes
assert
numeric_literal
46
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import RunContext from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ThinkingPart, ToolCallPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentAccumulator: de...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_accumulator.py
test_message_history_accumulator_mixed_message_types
assert
numeric_literal
47
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import RunContext from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ThinkingPart, ToolCallPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentAccumulator: de...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_complex_methods.py
test_truncation_simple
assert
numeric_literal
41
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import RunContext from pydantic_ai.messages import ModelRequest, ModelResponse, TextPart, ThinkingPart from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentComplexMethods: def agent(self): """Create a C...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_complex_methods.py
test_truncation_simple
assert
numeric_literal
43
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import RunContext from pydantic_ai.messages import ModelRequest, ModelResponse, TextPart, ThinkingPart from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentComplexMethods: def agent(self): """Create a C...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_complex_methods.py
test_truncation_protects_second_message_with_thinking_part
assert
numeric_literal
56
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import RunContext from pydantic_ai.messages import ModelRequest, ModelResponse, TextPart, ThinkingPart from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentComplexMethods: def agent(self): """Create a C...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_edge_cases.py
test_stringify_message_part_with_binary_content
assert
numeric_literal
33
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import BinaryContent, DocumentUrl, ImageUrl from pydantic_ai.messages import ( ModelRequest, TextPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentEdgeCases: def agent(self): """Creat...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_history.py
test_get_empty_message_history
assert
numeric_literal
24
import pytest from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestMessageHistoryManagement: def agent(self): """Create a fresh agent instance for each test. Uses CodePuppyAgent as a concrete implementation of BaseAgent to test the abstract class's message history func...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_history.py
test_set_message_history
assert
numeric_literal
33
import pytest from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestMessageHistoryManagement: def agent(self): """Create a fresh agent instance for each test. Uses CodePuppyAgent as a concrete implementation of BaseAgent to test the abstract class's message history func...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_history.py
test_set_message_history_empty_list
assert
numeric_literal
25
import pytest from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestMessageHistoryManagement: def agent(self): """Create a fresh agent instance for each test. Uses CodePuppyAgent as a concrete implementation of BaseAgent to test the abstract class's message history func...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_history.py
test_append_to_message_history
assert
numeric_literal
30
import pytest from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestMessageHistoryManagement: def agent(self): """Create a fresh agent instance for each test. Uses CodePuppyAgent as a concrete implementation of BaseAgent to test the abstract class's message history func...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_history.py
test_extend_message_history
assert
numeric_literal
34
import pytest from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestMessageHistoryManagement: def agent(self): """Create a fresh agent instance for each test. Uses CodePuppyAgent as a concrete implementation of BaseAgent to test the abstract class's message history func...
4
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_history.py
test_message_history_multiple_operations
assert
numeric_literal
43
import pytest from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestMessageHistoryManagement: def agent(self): """Create a fresh agent instance for each test. Uses CodePuppyAgent as a concrete implementation of BaseAgent to test the abstract class's message history func...
5
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_processing.py
test_estimate_tokens_for_message_text
assert
numeric_literal
29
import pytest from pydantic_ai import BinaryContent from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ThinkingPart, ToolCallPart, ToolReturnPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentMessageProcessing: def agent(self): ...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_processing.py
test_estimate_tokens_for_message_text
assert
numeric_literal
32
import pytest from pydantic_ai import BinaryContent from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ThinkingPart, ToolCallPart, ToolReturnPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentMessageProcessing: def agent(self): ...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_processing.py
test_estimate_tokens_for_message_multiple_parts
assert
numeric_literal
38
import pytest from pydantic_ai import BinaryContent from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ThinkingPart, ToolCallPart, ToolReturnPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentMessageProcessing: def agent(self): ...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_message_processing.py
test_prune_interrupted_tool_calls_unmatched_call
assert
numeric_literal
42
import pytest from pydantic_ai import BinaryContent from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ThinkingPart, ToolCallPart, ToolReturnPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentMessageProcessing: def agent(self): ...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_reload.py
test_reload_tools_registration
assert
numeric_literal
39
from unittest.mock import MagicMock, patch import pytest from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentReload: def agent(self): return CodePuppyAgent() def test_reload_tools_registration(self, agent): """Test that tools are properly registered.""" ...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_reload.py
test_reload_message_group_generation
assert
numeric_literal
43
from unittest.mock import MagicMock, patch import pytest from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentReload: def agent(self): return CodePuppyAgent() def test_reload_message_group_generation(self, agent): """Test that message group is generated when not ...
4
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_run_mcp.py
test_run_with_mcp_basic
assert
numeric_literal
28
import asyncio from unittest.mock import AsyncMock, MagicMock, patch import pytest from pydantic_ai import BinaryContent, DocumentUrl, ImageUrl from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentRunMCP: def agent(self): """Create a CodePuppyAgent instance for testing.""" ...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_run_mcp.py
test_run_with_mcp_with_mixed_attachments
assert
numeric_literal
35
import asyncio from unittest.mock import AsyncMock, MagicMock, patch import pytest from pydantic_ai import BinaryContent, DocumentUrl, ImageUrl from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestBaseAgentRunMCP: def agent(self): """Create a CodePuppyAgent instance for testing.""" ...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_token_estimation.py
test_estimate_token_count_simple_text
assert
numeric_literal
28
import math import pytest from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestTokenEstimation: def agent(self): """Provide a concrete BaseAgent subclass for testing.""" return CodePuppyAge...
4
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_token_estimation.py
test_estimate_token_count_empty_string
assert
numeric_literal
24
import math import pytest from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestTokenEstimation: def agent(self): """Provide a concrete BaseAgent subclass for testing.""" return CodePuppyAge...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_token_estimation.py
test_estimate_token_count_six_chars
assert
numeric_literal
24
import math import pytest from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestTokenEstimation: def agent(self): """Provide a concrete BaseAgent subclass for testing.""" return CodePuppyAge...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_base_agent_token_estimation.py
test_filter_huge_messages_empty_list
assert
numeric_literal
23
import math import pytest from pydantic_ai.messages import ( ModelRequest, ModelResponse, TextPart, ) from code_puppy.agents.agent_code_puppy import CodePuppyAgent class TestTokenEstimation: def agent(self): """Provide a concrete BaseAgent subclass for testing.""" return CodePuppyAge...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_event_stream_handler.py
test_multiple_parts_in_sequence
assert
numeric_literal
71
from io import StringIO from unittest.mock import MagicMock, patch import pytest from pydantic_ai import PartDeltaEvent, PartEndEvent, PartStartEvent, RunContext from pydantic_ai.messages import ( TextPart, TextPartDelta, ThinkingPart, ThinkingPartDelta, ToolCallPart, ToolCallPartDelta, ) from ...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_json_agent_extended.py
test_discover_valid_agents
assert
numeric_literal
40
import json from unittest.mock import patch import pytest from code_puppy.agents.json_agent import JSONAgent, discover_json_agents class TestDiscoverJsonAgents: def test_discover_valid_agents(self, tmp_path): """Test discovering valid JSON agents.""" # Create valid agent files config1 = ...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_json_agent_extended.py
test_discover_skip_invalid_agents
assert
numeric_literal
41
import json from unittest.mock import patch import pytest from code_puppy.agents.json_agent import JSONAgent, discover_json_agents class TestDiscoverJsonAgents: def test_discover_skip_invalid_agents(self, tmp_path): """Test that invalid agent files are skipped during discovery.""" # Create valid...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_pack_agents.py
test_description
assert
numeric_literal
17
import pytest from code_puppy.agents.base_agent import BaseAgent class TestPackLeaderAgent: def agent(self): """Create a Pack Leader agent instance.""" from code_puppy.agents.agent_pack_leader import PackLeaderAgent return PackLeaderAgent() def test_description(self, agent): ...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_subagent_stream_handler.py
test_empty_string_returns_zero
assert
numeric_literal
26
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import PartDeltaEvent, PartEndEvent, PartStartEvent, RunContext from pydantic_ai.messages import ( TextPart, TextPartDelta, ThinkingPart, ThinkingPartDelta, ToolCallPart, ToolCallPartDelta, ) from code_puppy.agents.subag...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_subagent_stream_handler.py
test_short_content_returns_minimum_one
assert
numeric_literal
26
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import PartDeltaEvent, PartEndEvent, PartStartEvent, RunContext from pydantic_ai.messages import ( TextPart, TextPartDelta, ThinkingPart, ThinkingPartDelta, ToolCallPart, ToolCallPartDelta, ) from code_puppy.agents.subag...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_subagent_stream_handler.py
test_longer_content_scales_correctly
assert
numeric_literal
27
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import PartDeltaEvent, PartEndEvent, PartStartEvent, RunContext from pydantic_ai.messages import ( TextPart, TextPartDelta, ThinkingPart, ThinkingPartDelta, ToolCallPart, ToolCallPartDelta, ) from code_puppy.agents.subag...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_subagent_stream_handler.py
test_longer_content_scales_correctly
assert
numeric_literal
29
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import PartDeltaEvent, PartEndEvent, PartStartEvent, RunContext from pydantic_ai.messages import ( TextPart, TextPartDelta, ThinkingPart, ThinkingPartDelta, ToolCallPart, ToolCallPartDelta, ) from code_puppy.agents.subag...
4
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/agents/test_subagent_stream_handler.py
test_handle_part_delta_thinking
assert
numeric_literal
50
from unittest.mock import MagicMock, patch import pytest from pydantic_ai import PartDeltaEvent, PartEndEvent, PartStartEvent, RunContext from pydantic_ai.messages import ( TextPart, TextPartDelta, ThinkingPart, ThinkingPartDelta, ToolCallPart, ToolCallPartDelta, ) from code_puppy.agents.subag...
5
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_add_model_menu.py
test_menu_initialization_success
assert
numeric_literal
30
from unittest.mock import MagicMock, patch from code_puppy.command_line.add_model_menu import ( PAGE_SIZE, PROVIDER_ENDPOINTS, UNSUPPORTED_PROVIDERS, AddModelMenu, ) class TestAddModelMenuInitialization: @patch("code_puppy.command_line.add_model_menu.ModelsDevRegistry") @patch("code_puppy.com...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_add_model_menu.py
test_provider_navigation_up
assert
numeric_literal
29
from unittest.mock import MagicMock, patch from code_puppy.command_line.add_model_menu import ( PAGE_SIZE, PROVIDER_ENDPOINTS, UNSUPPORTED_PROVIDERS, AddModelMenu, ) class TestProviderNavigation: @patch("code_puppy.command_line.add_model_menu.ModelsDevRegistry") def test_provider_navigation_u...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_agent_menu.py
test_page_size_is_defined
assert
numeric_literal
27
from unittest.mock import patch from code_puppy.command_line.agent_menu import ( PAGE_SIZE, _apply_pinned_model, _get_agent_entries, _get_pinned_model, _render_menu_panel, _render_preview_panel, ) def _get_text_from_formatted(result): """Extract plain text from formatted text control outpu...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_agent_menu.py
test_returns_single_agent
assert
numeric_literal
32
from unittest.mock import patch from code_puppy.command_line.agent_menu import ( PAGE_SIZE, _apply_pinned_model, _get_agent_entries, _get_pinned_model, _render_menu_panel, _render_preview_panel, ) def _get_text_from_formatted(result): """Extract plain text from formatted text control outpu...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_agent_menu.py
test_returns_multiple_agents_sorted
assert
numeric_literal
40
from unittest.mock import patch from code_puppy.command_line.agent_menu import ( PAGE_SIZE, _apply_pinned_model, _get_agent_entries, _get_pinned_model, _render_menu_panel, _render_preview_panel, ) def _get_text_from_formatted(result): """Extract plain text from formatted text control outpu...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_autosave_menu.py
test_sorts_entries_by_timestamp_desc
assert
numeric_literal
39
import json from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.autosave_menu import ( PAGE_SIZE, _extract_last_user_message, _extract_message_content, _get_session_entries, _get_session_metadata, _render_menu_panel, _re...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_autosave_menu.py
test_pagination_navigation
assert
numeric_literal
42
import json from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.autosave_menu import ( PAGE_SIZE, _extract_last_user_message, _extract_message_content, _get_session_entries, _get_session_metadata, _render_menu_panel, _re...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_autosave_menu.py
test_pagination_navigation
assert
numeric_literal
47
import json from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.autosave_menu import ( PAGE_SIZE, _extract_last_user_message, _extract_message_content, _get_session_entries, _get_session_metadata, _render_menu_panel, _re...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_autosave_menu.py
test_browse_mode_up_navigation_logic
assert
numeric_literal
39
import json from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.autosave_menu import ( PAGE_SIZE, _extract_last_user_message, _extract_message_content, _get_session_entries, _get_session_metadata, _render_menu_panel, _re...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_autosave_menu.py
test_browse_mode_down_navigation_logic
assert
numeric_literal
34
import json from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.autosave_menu import ( PAGE_SIZE, _extract_last_user_message, _extract_message_content, _get_session_entries, _get_session_metadata, _render_menu_panel, _re...
4
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_autosave_menu.py
test_browse_mode_up_stops_at_oldest
assert
numeric_literal
34
import json from pathlib import Path from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.autosave_menu import ( PAGE_SIZE, _extract_last_user_message, _extract_message_content, _get_session_entries, _get_session_metadata, _render_menu_panel, _re...
9
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_clipboard.py
test_get_pending_images_returns_binary_content_list
assert
numeric_literal
21
import io import threading from unittest.mock import MagicMock, patch class TestClipboardAttachmentManager: def test_get_pending_images_returns_binary_content_list(self): """Test that get_pending_images returns list of BinaryContent.""" from code_puppy.command_line.clipboard import ClipboardAttach...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_clipboard.py
test_clear_pending_removes_all_images
assert
numeric_literal
20
import io import threading from unittest.mock import MagicMock, patch class TestClipboardAttachmentManager: def test_clear_pending_removes_all_images(self): """Test that clear_pending removes all pending images.""" from code_puppy.command_line.clipboard import ClipboardAttachmentManager m...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_clipboard.py
test_get_pending_count_returns_correct_count
assert
numeric_literal
18
import io import threading from unittest.mock import MagicMock, patch class TestClipboardAttachmentManager: def test_get_pending_count_returns_correct_count(self): """Test that get_pending_count returns accurate count.""" from code_puppy.command_line.clipboard import ClipboardAttachmentManager ...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_colors_menu.py
test_navigate_banners_up
assert
numeric_literal
18
from unittest.mock import patch from code_puppy.command_line.colors_menu import ( BANNER_COLORS, BANNER_DISPLAY_INFO, BANNER_SAMPLE_CONTENT, ColorConfiguration, ) class TestBannerNavigation: def test_navigate_banners_up(self): """Test navigating up through banner list.""" list(BAN...
4
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_colors_menu.py
test_banner_navigation_bounds
assert
numeric_literal
20
from unittest.mock import patch from code_puppy.command_line.colors_menu import ( BANNER_COLORS, BANNER_DISPLAY_INFO, BANNER_SAMPLE_CONTENT, ColorConfiguration, ) class TestBannerNavigation: def test_banner_navigation_bounds(self): """Test navigation bounds are respected.""" banne...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_colors_menu.py
test_navigate_colors_up
assert
numeric_literal
18
from unittest.mock import patch from code_puppy.command_line.colors_menu import ( BANNER_COLORS, BANNER_DISPLAY_INFO, BANNER_SAMPLE_CONTENT, ColorConfiguration, ) class TestColorSelection: def test_navigate_colors_up(self): """Test navigating up through color list.""" list(BANNER_...
9
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_colors_menu.py
test_multiple_color_saves
assert
numeric_literal
21
from unittest.mock import patch from code_puppy.command_line.colors_menu import ( BANNER_COLORS, BANNER_DISPLAY_INFO, BANNER_SAMPLE_CONTENT, ColorConfiguration, ) class TestColorPersistence: @patch("code_puppy.config.set_config_value") def test_multiple_color_saves(self, mock_set_config): ...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_colors_menu.py
test_save_theme_settings
assert
numeric_literal
21
from unittest.mock import patch from code_puppy.command_line.colors_menu import ( BANNER_COLORS, BANNER_DISPLAY_INFO, BANNER_SAMPLE_CONTENT, ColorConfiguration, ) class TestThemeManagement: @patch("code_puppy.config.set_config_value") def test_save_theme_settings(self, mock_set_config): ...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_config_commands_extended.py
test_reasoning_command_wrong_argument_count
assert
numeric_literal
62
import concurrent.futures import json import tempfile from pathlib import Path from unittest.mock import MagicMock, patch import pytest from code_puppy.command_line.config_commands import ( handle_diff_command, handle_pin_model_command, handle_reasoning_command, handle_set_command, handle_unpin_co...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_config_commands_extended.py
test_show_addition_color_options
assert
numeric_literal
57
import concurrent.futures import json import tempfile from pathlib import Path from unittest.mock import MagicMock, patch import pytest from code_puppy.command_line.config_commands import ( handle_diff_command, handle_pin_model_command, handle_reasoning_command, handle_set_command, handle_unpin_co...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_config_commands_extended.py
test_unpin_model_usage_help
assert
numeric_literal
68
import concurrent.futures import json import tempfile from pathlib import Path from unittest.mock import MagicMock, patch import pytest from code_puppy.command_line.config_commands import ( handle_diff_command, handle_pin_model_command, handle_reasoning_command, handle_set_command, handle_unpin_co...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_core_commands_extended.py
test_help_command_uses_unique_group_ids
assert
numeric_literal
34
import concurrent.futures from unittest.mock import ANY, AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.core_commands import ( handle_agent_command, handle_cd_command, handle_exit_command, handle_generate_pr_description_command, handle_help_command, handle_mcp_command, ...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_core_commands_extended.py
test_agent_command_thread_pool_timeout
assert
numeric_literal
38
import concurrent.futures from unittest.mock import ANY, AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.core_commands import ( handle_agent_command, handle_cd_command, handle_exit_command, handle_generate_pr_description_command, handle_help_command, handle_mcp_command, ...
1
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_core_commands_extended.py
test_model_picker_with_current_indicator
assert
numeric_literal
57
import concurrent.futures from unittest.mock import ANY, AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.core_commands import ( handle_agent_command, handle_cd_command, handle_exit_command, handle_generate_pr_description_command, handle_help_command, handle_mcp_command, ...
3
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_diff_menu.py
test_initializes_from_config
assert
numeric_literal
33
from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.diff_menu import ( ADDITION_COLORS, DELETION_COLORS, SUPPORTED_LANGUAGES, DiffConfiguration, _convert_rich_color_to_prompt_toolkit, _get_preview_text_for_prompt_toolkit, _handle_color_menu, ...
0
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_diff_menu.py
test_addition_colors_structure
assert
numeric_literal
29
from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.diff_menu import ( ADDITION_COLORS, DELETION_COLORS, SUPPORTED_LANGUAGES, DiffConfiguration, _convert_rich_color_to_prompt_toolkit, _get_preview_text_for_prompt_toolkit, _handle_color_menu, ...
7
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor
mpfaffenberger/code_puppy
0686346c4a9c91fa055f6d154bb97944a092fa73
225
train
train
tests/command_line/test_diff_menu.py
test_preview_generation_with_mocked_config
assert
numeric_literal
52
from unittest.mock import AsyncMock, MagicMock, patch import pytest from code_puppy.command_line.diff_menu import ( ADDITION_COLORS, DELETION_COLORS, SUPPORTED_LANGUAGES, DiffConfiguration, _convert_rich_color_to_prompt_toolkit, _get_preview_text_for_prompt_toolkit, _handle_color_menu, ...
2
0686346c4a9c91fa055f6d154bb97944a092fa73
225
v2_extractor_at_anchor