id: 1 unit: def compile() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 115 LOC McCabe index: 27 number of parameters: 2 id: 2 unit: def new_chat_model() file: databao/configs/llm.py start line: 0 end line: 0 size: 52 LOC McCabe index: 19 number of parameters: 1 id: 3 unit: def _process_result() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 45 LOC McCabe index: 11 number of parameters: 3 id: 4 unit: def get_result() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 45 LOC McCabe index: 7 number of parameters: 2 id: 5 unit: def _to_html() file: databao/core/executor.py start line: 0 end line: 0 size: 33 LOC McCabe index: 12 number of parameters: 4 id: 6 unit: def clean_tool_history() file: databao/executors/lighthouse/history_cleaning.py start line: 0 end line: 0 size: 33 LOC McCabe index: 14 number of parameters: 2 id: 7 unit: def drop() file: databao/core/thread.py start line: 0 end line: 0 size: 24 LOC McCabe index: 6 number of parameters: 2 id: 8 unit: def make_tools() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 23 LOC McCabe index: 3 number of parameters: 1 id: 9 unit: def get_html() file: databao/visualizers/vega_vis_tool.py start line: 0 end line: 0 size: 22 LOC McCabe index: 1 number of parameters: 1 id: 10 unit: def write_state_chunk() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 22 LOC McCabe index: 16 number of parameters: 3 id: 11 unit: def sqlalchemy_to_duckdb_mysql() file: databao/duckdb/utils.py start line: 0 end line: 0 size: 22 LOC McCabe index: 14 number of parameters: 2 id: 12 unit: def write_message_chunk() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 21 LOC McCabe index: 11 number of parameters: 2 id: 13 unit: def make_duckdb_tool() file: databao/duckdb/react_tools.py start line: 0 end line: 0 size: 21 LOC McCabe index: 2 number of parameters: 1 id: 14 unit: def _materialize_data() file: databao/core/thread.py start line: 0 end line: 0 size: 20 LOC McCabe index: 6 number of parameters: 2 id: 15 unit: def register_sqlalchemy() file: databao/duckdb/utils.py start line: 0 end line: 0 size: 20 LOC McCabe index: 4 number of parameters: 3 id: 16 unit: def _get_plot_html() file: databao/core/visualizer.py start line: 0 end line: 0 size: 17 LOC McCabe index: 11 number of parameters: 1 id: 17 unit: def _repr_mimebundle_() file: databao/core/visualizer.py start line: 0 end line: 0 size: 15 LOC McCabe index: 9 number of parameters: 3 id: 18 unit: def register_db() file: databao/executors/lighthouse/executor.py start line: 0 end line: 0 size: 15 LOC McCabe index: 5 number of parameters: 2 id: 19 unit: def register_db() file: databao/executors/react_duckdb/executor.py start line: 0 end line: 0 size: 15 LOC McCabe index: 5 number of parameters: 2 id: 20 unit: def get_reasoning_content() file: databao/executors/frontend/messages.py start line: 0 end line: 0 size: 14 LOC McCabe index: 7 number of parameters: 1 id: 21 unit: def _truncate_block() file: databao/executors/lighthouse/history_cleaning.py start line: 0 end line: 0 size: 14 LOC McCabe index: 4 number of parameters: 4 id: 22 unit: def __init__() file: databao/core/agent.py start line: 0 end line: 0 size: 13 LOC McCabe index: 1 number of parameters: 0 id: 23 unit: def _convert_llm_config() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 24 unit: def ask() file: databao/core/thread.py start line: 0 end line: 0 size: 12 LOC McCabe index: 5 number of parameters: 5 id: 25 unit: def make_react_duckdb_agent() file: databao/duckdb/react_tools.py start line: 0 end line: 0 size: 12 LOC McCabe index: 1 number of parameters: 2 id: 26 unit: def _materialize_visualization() file: databao/core/thread.py start line: 0 end line: 0 size: 11 LOC McCabe index: 5 number of parameters: 3 id: 27 unit: def new_agent() file: databao/api.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 28 unit: def _set_message_cache_breakpoint() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 11 LOC McCabe index: 3 number of parameters: 2 id: 29 unit: def _get_jinja_prompts_env() file: databao/executors/lighthouse/utils.py start line: 0 end line: 0 size: 11 LOC McCabe index: 4 number of parameters: 1 id: 30 unit: def init_state() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 4 id: 31 unit: def drop_last_opa_group() file: databao/executors/lighthouse/executor.py start line: 0 end line: 0 size: 10 LOC McCabe index: 6 number of parameters: 3 id: 32 unit: def _parse_model_provider() file: databao/configs/llm.py start line: 0 end line: 0 size: 10 LOC McCabe index: 5 number of parameters: 1 id: 33 unit: def __init__() file: databao/core/thread.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 34 unit: def __str__() file: databao/core/thread.py start line: 0 end line: 0 size: 9 LOC McCabe index: 5 number of parameters: 1 id: 35 unit: def _repr_mimebundle_() file: databao/core/thread.py start line: 0 end line: 0 size: 9 LOC McCabe index: 5 number of parameters: 3 id: 36 unit: def execute() file: databao/core/executor.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 37 unit: def edit() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 9 LOC McCabe index: 4 number of parameters: 5 id: 38 unit: def write_stream_chunk() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 9 LOC McCabe index: 4 number of parameters: 3 id: 39 unit: def _set_anthropic_cache_breakpoint() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 9 LOC McCabe index: 3 number of parameters: 2 id: 40 unit: def execute() file: databao/executors/lighthouse/executor.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 41 unit: def execute() file: databao/executors/react_duckdb/executor.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 42 unit: def from_yaml() file: databao/configs/llm.py start line: 0 end line: 0 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 43 unit: def _materialize() file: databao/core/thread.py start line: 0 end line: 0 size: 8 LOC McCabe index: 4 number of parameters: 2 id: 44 unit: def __repr__() file: databao/core/thread.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 45 unit: def _to_markdown() file: databao/core/executor.py start line: 0 end line: 0 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 46 unit: def get() file: databao/caches/disk_cache.py start line: 0 end line: 0 size: 8 LOC McCabe index: 3 number of parameters: 4 id: 47 unit: def __init__() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 48 unit: def get_db_path() file: databao/duckdb/utils.py start line: 0 end line: 0 size: 8 LOC McCabe index: 4 number of parameters: 1 id: 49 unit: def thread() file: databao/core/agent.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 50 unit: def prepare_spec() file: databao/visualizers/vega_vis_tool.py start line: 0 end line: 0 size: 7 LOC McCabe index: 2 number of parameters: 4 id: 51 unit: def __init__() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 4 id: 52 unit: def get_tool_call() file: databao/executors/frontend/messages.py start line: 0 end line: 0 size: 7 LOC McCabe index: 5 number of parameters: 2 id: 53 unit: def get_tool_call_sql() file: databao/executors/frontend/messages.py start line: 0 end line: 0 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 54 unit: def _apply_system_prompt_caching() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 7 LOC McCabe index: 5 number of parameters: 2 id: 55 unit: def _make_output_modality_hints() file: databao/executors/base.py start line: 0 end line: 0 size: 7 LOC McCabe index: 5 number of parameters: 2 id: 56 unit: def _invoke_graph_sync() file: databao/executors/base.py start line: 0 end line: 0 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 57 unit: def execute_duckdb_sql() file: databao/duckdb/react_tools.py start line: 0 end line: 0 size: 7 LOC McCabe index: 5 number of parameters: 4 id: 58 unit: def _parse_context_arg() file: databao/core/agent.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 59 unit: def add_db() file: databao/core/agent.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 60 unit: def add_df() file: databao/core/agent.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 5 id: 61 unit: def image() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 62 unit: def visualize() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 5 id: 63 unit: def get_query_ids_mapping() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 6 LOC McCabe index: 5 number of parameters: 1 id: 64 unit: def __init__() file: databao/executors/lighthouse/executor.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 65 unit: def _execute_stream_sync() file: databao/executors/base.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 66 unit: def add_context() file: databao/core/agent.py start line: 0 end line: 0 size: 5 LOC McCabe index: 2 number of parameters: 2 id: 67 unit: def write_dataframe() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 5 id: 68 unit: def dataframe_to_markdown() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 5 LOC McCabe index: 2 number of parameters: 3 id: 69 unit: def _truncate_no_df_block() file: databao/executors/lighthouse/history_cleaning.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 70 unit: def _process_opas() file: databao/executors/base.py start line: 0 end line: 0 size: 5 LOC McCabe index: 2 number of parameters: 3 id: 71 unit: def _resolve_timeout() file: databao/configs/llm.py start line: 0 end line: 0 size: 5 LOC McCabe index: 3 number of parameters: 1 id: 72 unit: def edit() file: databao/core/visualizer.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 4 id: 73 unit: def _dataframe_to_html() file: databao/core/executor.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 74 unit: def __init__() file: databao/caches/disk_cache.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 4 id: 75 unit: def interactive() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 1 id: 76 unit: def altair() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 1 id: 77 unit: def write() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 2 id: 78 unit: def start() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 79 unit: def end() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 80 unit: def escape_markdown_text() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 81 unit: def _chat() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 82 unit: def render_system_prompt() file: databao/executors/lighthouse/executor.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 83 unit: def _get_compiled_graph() file: databao/executors/lighthouse/executor.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 2 id: 84 unit: def read_prompt_template() file: databao/executors/lighthouse/utils.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 85 unit: def exception_to_string() file: databao/executors/lighthouse/utils.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 86 unit: def __init__() file: databao/executors/react_duckdb/executor.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 87 unit: def meta() file: databao/core/thread.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 88 unit: def df() file: databao/core/thread.py start line: 0 end line: 0 size: 3 LOC McCabe index: 3 number of parameters: 3 id: 89 unit: def put() file: databao/caches/disk_cache.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 4 id: 90 unit: def invalidate_tag() file: databao/caches/disk_cache.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 91 unit: def __init__() file: databao/caches/in_mem_cache.py start line: 0 end line: 0 size: 3 LOC McCabe index: 2 number of parameters: 5 id: 92 unit: def get() file: databao/caches/in_mem_cache.py start line: 0 end line: 0 size: 3 LOC McCabe index: 2 number of parameters: 4 id: 93 unit: def visualize() file: databao/visualizers/dumb.py start line: 0 end line: 0 size: 3 LOC McCabe index: 2 number of parameters: 5 id: 94 unit: def display() file: databao/visualizers/vega_vis_tool.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: def _update_message_history() file: databao/executors/base.py start line: 0 end line: 0 size: 3 LOC McCabe index: 2 number of parameters: 3 id: 96 unit: def sqlalchemy_to_postgres_url() file: databao/duckdb/utils.py start line: 0 end line: 0 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: def visualize() file: databao/core/visualizer.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 5 id: 98 unit: def edit() file: databao/core/visualizer.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 5 id: 99 unit: def text() file: databao/core/thread.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: def code() file: databao/core/thread.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: def plot() file: databao/core/thread.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 102 unit: def put() file: databao/core/cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 4 id: 103 unit: def get() file: databao/core/cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 4 id: 104 unit: def scoped() file: databao/core/cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 105 unit: def _postprocess_html() file: databao/core/executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 3 number of parameters: 2 id: 106 unit: def _repr_mimebundle_() file: databao/core/executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 107 unit: def register_db() file: databao/core/executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 108 unit: def register_df() file: databao/core/executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 109 unit: def drop_last_opa_group() file: databao/core/executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 110 unit: def sources() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: def dbs() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: def dfs() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 113 unit: def name() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 114 unit: def llm() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 115 unit: def llm_config() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 116 unit: def executor() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 117 unit: def visualizer() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 118 unit: def cache() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 119 unit: def additional_context() file: databao/core/agent.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 120 unit: def scoped() file: databao/caches/disk_cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 121 unit: def __contains__() file: databao/caches/disk_cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 122 unit: def make_json_key() file: databao/caches/disk_cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 2 id: 123 unit: def close() file: databao/caches/disk_cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: def put() file: databao/caches/in_mem_cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 4 id: 125 unit: def scoped() file: databao/caches/in_mem_cache.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 126 unit: def edit() file: databao/visualizers/dumb.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 5 id: 127 unit: def __init__() file: databao/visualizers/vega_vis_tool.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 128 unit: def _repr_html_() file: databao/visualizers/vega_vis_tool.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 129 unit: def _run_vega_chat() file: databao/visualizers/vega_chat.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 130 unit: def escape_currency_dollar_signs() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 131 unit: def escape_strikethrough() file: databao/executors/frontend/text_frontend.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 132 unit: def __init__() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 133 unit: def _model_bind_tools() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 134 unit: def _is_anthropic_model() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 135 unit: def _call_model() file: databao/executors/lighthouse/graph.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 136 unit: def register_df() file: databao/executors/lighthouse/executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 137 unit: def get_today_date_str() file: databao/executors/lighthouse/utils.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 138 unit: def __init__() file: databao/executors/base.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 139 unit: def _create_graph() file: databao/executors/react_duckdb/executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 3 id: 140 unit: def register_df() file: databao/executors/react_duckdb/executor.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 141 unit: def describe_duckdb_schema() file: databao/duckdb/utils.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 142 unit: def _is_reasoning_model() file: databao/configs/llm.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 143 unit: def _is_openai_model() file: databao/configs/llm.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 144 unit: def _is_anthropic_model() file: databao/configs/llm.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 145 unit: def list_all() file: databao/configs/llm.py start line: 0 end line: 0 size: 2 LOC McCabe index: 3 number of parameters: 1