🔍 Code Extractor

Browse Components

Showing 20 of 1262 components

  • function get_user_uploaded_documents

    Retrieves all uploaded documents associated with a specific user from a thread-safe global application state dictionary.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 195-198

    document-management user-data thread-safe concurrency state-management
  • function store_uploaded_document

    Stores uploaded document metadata and content in a thread-safe application state dictionary, organized by user email and document ID.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 181-193

    document-storage thread-safe file-upload state-management user-data
  • function load_chat_session_from_file

    Loads a chat session from a JSON file stored in the CHAT_SESSIONS_DIR directory using the provided session_id as the filename.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 152-164

    file-io persistence chat session-management json
  • function save_chat_session_to_file

    Persists a chat session object to a JSON file in the designated chat sessions directory, using the session's ID as the filename.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 141-150

    file-io persistence serialization json chat
  • function delete_document_file

    Deletes a document file from the file system based on the provided document ID, removing the corresponding JSON file from the DOCUMENTS_DIR directory.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 131-139

    file-management deletion document-management file-system cleanup
  • function load_all_documents

    Loads all JSON documents from a designated documents directory and returns them as a dictionary indexed by document ID.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 115-129

    file-io json document-loading bulk-operations error-handling
  • function load_all_chat_sessions

    Loads all chat session data from JSON files stored in a designated directory and returns them as a dictionary indexed by session ID.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 99-113

    file-io persistence chat-sessions json data-loading
  • function load_document_from_file

    Loads a document from a JSON file stored in a documents directory, deserializes it into a ComplexDocument object, and returns it.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 85-97

    file-io document-management json deserialization persistence
  • function save_document_to_file

    Persists a document object to the filesystem as a JSON file, using the document's ID as the filename.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 74-83

    file-io persistence json serialization document-storage
  • function ensure_directories

    Creates required directories for the application if they don't already exist, specifically DOCUMENTS_DIR and CHAT_SESSIONS_DIR.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 69-72

    filesystem initialization setup directory-creation file-management
  • function debug_section_retrieval

    A debugging utility function that tests database section retrieval by querying a specific text section and printing detailed diagnostic information about the section and its chat session association.

    File: /tf/active/vicechatdev/vice_ai/debug_section_retrieval.py | Lines: 10-34

    debugging database testing diagnostics section-retrieval
  • function check_and_fix_corruption

    Scans a SQLite database for corrupted chat_session_id values in the text_sections table and automatically fixes them by setting invalid entries to NULL.

    File: /tf/active/vicechatdev/vice_ai/direct_corruption_checker.py | Lines: 7-82

    database sqlite data-integrity corruption-detection data-cleaning
  • class AgentExecutor

    Agent-based script executor that generates standalone Python files, manages dependencies, and provides iterative debugging capabilities

    File: /tf/active/vicechatdev/vice_ai/agent_executor.py | Lines: 24-1137

    class agentexecutor
  • function print_help

    Displays help information for Vice AI Development Tools, listing available commands and usage examples.

    File: /tf/active/vicechatdev/vice_ai/dev_tools.py | Lines: 104-117

    help documentation cli command-line user-interface
  • function check_debug_endpoint

    Queries a debug endpoint to retrieve and display cache information from a web server, including debug mode status, cache buster values, and static file versions.

    File: /tf/active/vicechatdev/vice_ai/dev_tools.py | Lines: 59-82

    debugging cache monitoring http web-server
  • function touch_static_files

    Updates the modification timestamp of CSS and JavaScript files in a static directory to force browser cache refresh.

    File: /tf/active/vicechatdev/vice_ai/dev_tools.py | Lines: 38-57

    cache-busting static-files file-system deployment development-tools
  • function check_static_files

    Scans a 'static' directory for CSS and JavaScript files and prints their modification times relative to the current time.

    File: /tf/active/vicechatdev/vice_ai/dev_tools.py | Lines: 22-36

    file-system diagnostics static-files monitoring development-tools
  • function clear_browser_cache_instructions

    A utility function that prints formatted instructions to the console for clearing browser cache across different web browsers and operating systems.

    File: /tf/active/vicechatdev/vice_ai/dev_tools.py | Lines: 13-20

    browser cache instructions user-help web-development
  • function test_tab_delimited_european

    A unit test function that validates the smart_read_csv function's ability to correctly parse tab-delimited CSV files containing European-style decimal numbers (using commas instead of periods).

    File: /tf/active/vicechatdev/vice_ai/test_regional_formats.py | Lines: 152-183

    testing unit-test csv-parsing european-decimals tab-delimited
  • function test_us_with_thousands

    A unit test function that validates the smart_read_csv function's ability to correctly parse US-formatted CSV files containing numbers with thousand separators (commas) and decimal points.

    File: /tf/active/vicechatdev/vice_ai/test_regional_formats.py | Lines: 118-149

    testing unit-test csv-parsing data-validation number-formatting