SYMBOL INDEX (68 symbols across 6 files) FILE: main.py function load_config (line 17) | def load_config(): class TokenExplorer (line 36) | class TokenExplorer(App): method __init__ (line 58) | def __init__(self, prompt=EXAMPLE_PROMPT, precompile=False): method precompile_regex_structs (line 77) | def precompile_regex_structs(self): method _get_regex_structs (line 85) | def _get_regex_structs(self): method _top_tokens_to_rows (line 106) | def _top_tokens_to_rows(self, tokens): method compose (line 112) | def compose(self) -> ComposeResult: method _refresh_table (line 119) | def _refresh_table(self): method _render_structure_section (line 132) | def _render_structure_section(self): method _render_prompt (line 143) | def _render_prompt(self): method on_mount (line 177) | def on_mount(self) -> None: method action_next_struct (line 184) | def action_next_struct(self): method action_toggle_struct (line 188) | def action_toggle_struct(self): method action_add_prompt (line 202) | def action_add_prompt(self): method action_remove_prompt (line 210) | def action_remove_prompt(self): method action_increment_prompt (line 218) | def action_increment_prompt(self): method action_decrement_prompt (line 224) | def action_decrement_prompt(self): method action_change_display_mode (line 230) | def action_change_display_mode(self): method action_save_prompt (line 234) | def action_save_prompt(self): method action_select_next (line 238) | def action_select_next(self): method action_select_prev (line 245) | def action_select_prev(self): method action_append_token (line 252) | def action_append_token(self): method action_pop_token (line 266) | def action_pop_token(self): FILE: src/explorer.py class Explorer (line 10) | class Explorer: method __init__ (line 11) | def __init__(self, model_name="Qwen/Qwen2.5-0.5B"): method clear_guide (line 37) | def clear_guide(self): method set_guide (line 40) | def set_guide(self, regex_struct,ff_from=None): method set_prompt (line 48) | def set_prompt(self, prompt_text): method get_prompt_token_probabilities (line 60) | def get_prompt_token_probabilities(self): method get_prompt_token_normalized_entropies (line 97) | def get_prompt_token_normalized_entropies(self): method get_prompt (line 133) | def get_prompt(self): method get_prompt_tokens (line 142) | def get_prompt_tokens(self): method get_prompt_tokens_strings (line 151) | def get_prompt_tokens_strings(self): method pop_token (line 157) | def pop_token(self): method append_token (line 175) | def append_token(self, token_id): method guide_is_finished (line 193) | def guide_is_finished(self): method guide_is_dead (line 198) | def guide_is_dead(self): method get_top_n_tokens (line 203) | def get_top_n_tokens(self, n=5, search=""): FILE: src/simpleguide.py class TrieNode (line 11) | class TrieNode: method __init__ (line 12) | def __init__(self): class TokenTrie (line 16) | class TokenTrie: method __init__ (line 17) | def __init__(self): method insert (line 20) | def insert(self, token_meta): method collect_valid_tokens (line 30) | def collect_valid_tokens(self, state, fsm): class SimpleGuide (line 43) | class SimpleGuide: method __init__ (line 47) | def __init__(self, regex_struct, tokenizer, no_cache=False, verbose=Fa... method build_token_str_trie (line 72) | def build_token_str_trie(self): method build_state_token_map (line 77) | def build_state_token_map(self, no_cache=False, verbose=False): method get_current_state (line 112) | def get_current_state(self, candidate, state=None): method is_potential_prefix (line 122) | def is_potential_prefix(self, candidate): method get_tokens (line 126) | def get_tokens(self): method advance (line 137) | def advance(self, token_id): method is_finished (line 145) | def is_finished(self): method is_dead (line 151) | def is_dead(self): function test_guide_loading (line 157) | def test_guide_loading(): FILE: src/utils.py function probability_to_color (line 1) | def probability_to_color(probability, alpha=1.0): function entropy_to_color (line 29) | def entropy_to_color(entropy, alpha=1.0): FILE: tests/test_explorer.py function test_get_prompt_token_probabilities (line 3) | def test_get_prompt_token_probabilities(): function test_get_top_n_tokens (line 10) | def test_get_top_n_tokens(): function test_guide (line 17) | def test_guide(): function test_guide_append_token (line 25) | def test_guide_append_token(): FILE: tests/test_simpleguide.py function test_get_tokens (line 4) | def test_get_tokens(): function test_advance (line 13) | def test_advance(): function test_is_finished_single_finish (line 21) | def test_is_finished_single_finish(): function test_is_finished_multiple_finish (line 31) | def test_is_finished_multiple_finish(): function test_is_dead (line 43) | def test_is_dead(): function test_is_dead_multiple_finish (line 53) | def test_is_dead_multiple_finish(): function test_spaces (line 65) | def test_spaces():