🔍 Code Extractor

Browse Components

Showing 20 of 1708 components

  • class SmartStatService

    Service for running SmartStat analysis sessions in Vice AI

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 1064-1642

    class smartstatservice
  • class SmartStatSession

    A session management class that encapsulates a SmartStat statistical analysis session, tracking data, analysis history, plots, and reports for a specific data section.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 997-1061

    session-management data-analysis statistics dataframe multi-dataset
  • function read_excel_file

    Reads Excel files and returns either metadata for all sheets or detailed data for a specific sheet, including format validation, European decimal conversion, and rich metadata extraction.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 867-995

    excel data-loading pandas file-io validation
  • function extract_sheet_context

    Extracts comprehensive text context from Excel DataFrame sheets that contain mixed structured and unstructured content, converting them into markdown-formatted text while preserving table structures, key-value pairs, and section headers.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 724-864

    excel-processing data-extraction markdown-generation text-parsing table-detection
  • function extract_table_as_markdown

    Extracts a specified row range from a pandas DataFrame and converts it into a properly formatted markdown table with automatic header detection and data cleaning.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 645-721

    markdown table-formatting data-conversion pandas dataframe
  • function detect_table_boundaries

    Detects distinct tables within a pandas DataFrame by identifying empty rows as table boundaries and returns metadata about each detected table region.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 604-642

    data-processing excel table-detection boundary-detection pandas
  • function validate_sheet_format

    Analyzes Excel sheet structure using multiple heuristics to classify it as tabular data, information sheet, or mixed format, returning quality metrics and extraction recommendations.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 455-601

    data-validation excel-processing sheet-classification data-quality heuristic-analysis
  • function extract_excel_metadata

    Extracts comprehensive metadata from Excel files including cell comments, merged regions, named ranges, document properties, and sheet-level information that standard pandas operations miss.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 338-453

    excel metadata openpyxl data-extraction spreadsheet
  • function smart_read_csv

    Automatically detects CSV file delimiters (comma, semicolon, tab) and handles regional decimal formats (European comma vs US/UK point) to reliably parse CSV files from different locales.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 252-336

    csv data-loading file-parsing delimiter-detection regional-formats
  • function convert_european_decimals

    Detects and converts numeric data with European decimal format (comma as decimal separator) to standard format (dot as decimal separator) in a pandas DataFrame, handling mixed formats and missing data patterns.

    File: /tf/active/vicechatdev/vice_ai/smartstat_service.py | Lines: 22-250

    data-processing data-cleaning decimal-conversion european-format locale-handling
  • function not_found

    Flask error handler function that renders a custom error page when a 404 (Page Not Found) error occurs.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1697-1698

    flask error-handler 404 http-error web-framework
  • function not_found_v1

    Flask error handler that returns a JSON response with a 404 status code when a requested resource is not found.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 1519-1520

    flask error-handler http-404 json-response web-api
  • function debug_cache_info

    Flask debug endpoint that provides comprehensive cache busting information including static file versions, modification times, and cache buster values.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1666-1694

    flask debug cache-busting static-files endpoint
  • function health

    Flask route handler that provides a health check endpoint returning the application's operational status, chat engine availability, and current timestamp.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1657-1663

    health-check monitoring flask api-endpoint diagnostics
  • function health_v1

    Flask route handler that provides a health check endpoint returning the operational status of the application and its core components (RAG engine and document indexer).

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 1508-1515

    health-check monitoring diagnostics flask rest-api
  • function api_get_extensive_reference

    Flask API endpoint that retrieves extensive search reference content by parsing a reference ID, fetching the corresponding block from the chat engine, and storing it as a document in the user's session.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1582-1654

    flask api reference-retrieval document-management authentication
  • function api_get_reference_block

    API endpoint that retrieves a reference block from the most recent chat response by block number and stores it as a reference document in the user's session.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1527-1578

    api flask rest-endpoint chat reference-block
  • function api_get_reference_document

    Flask API endpoint that retrieves a reference document from Neo4j database by UUID and stores it in the user's session for chat usage.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1473-1523

    flask api neo4j document-retrieval reference-document
  • function api_list_documents_v1

    Flask API endpoint that retrieves and returns a list of all documents uploaded by the currently authenticated user, including metadata such as filename, size, and creation date.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1447-1469

    api flask rest-api document-management authentication
  • function api_upload_document

    Flask API endpoint that handles document upload, validates file type and size, processes the document to extract text content, and stores the document metadata in the system.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1345-1426

    file-upload document-processing api-endpoint flask validation