🔍 Code Extractor

Browse Components

Showing 20 of 1004 components

  • function upload_analysis_dataset

    Flask API endpoint that handles file upload for data analysis sessions, accepting CSV and Excel files, validating user access, and processing the dataset through a data analysis service.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5964-6009

    flask file-upload data-analysis api-endpoint authentication
  • function create_analysis_session

    Creates a new data analysis session for a text section, verifying ownership and section type before linking the session to the section.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5921-5960

    flask api data-analysis session-management authentication
  • function add_data_section_to_document

    Flask API endpoint that adds a data section to a document, either by creating a new data section or linking an existing one, with ownership verification.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5847-5913

    flask api-endpoint document-management data-section authentication
  • function smartstat_save_to_document

    Flask route handler that saves SmartStat statistical analysis results back to a data section document, generating a final report with queries, results, and plots.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5765-5843

    flask api-endpoint smartstat statistical-analysis document-management
  • function smartstat_save_selective

    Flask route handler that saves selected statistical analysis rounds and their associated plots from a SmartStat session to a data section, with options to replace or append to existing content.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5625-5761

    flask-route api-endpoint smartstat data-persistence statistical-analysis
  • function smartstat_get_history

    Flask API endpoint that retrieves analysis history for a SmartStat session, with automatic session recovery from saved data if the session is not found in memory.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5551-5621

    flask api-endpoint session-management data-recovery authentication
  • function smartstat_download_log

    Flask API endpoint that generates and downloads an execution log file containing the analysis history and debug information for a SmartStat session.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5456-5547

    flask api-endpoint file-download logging smartstat
  • function smartstat_download_script

    Flask route handler that downloads a generated Python analysis script for a specific SmartStat session by locating the most recent project directory and returning the analysis.py file.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5424-5452

    flask file-download api-endpoint smartstat script-generation
  • function smartstat_get_plot

    Flask route handler that serves plot image files (PNG, JPG, SVG) generated by SmartStat analysis sessions from project directories.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5401-5420

    flask api-endpoint file-serving image-delivery smartstat
  • function smartstat_get_progress

    Flask API endpoint that retrieves the progress status of a SmartStat analysis job by job_id, returning progress data and completed results if available.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5384-5397

    flask api rest-endpoint progress-tracking async-jobs
  • function smartstat_run_analysis

    Flask API endpoint that initiates a SmartStat statistical analysis in a background thread, tracking progress and persisting results to a data section.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5272-5380

    flask api-endpoint background-processing statistical-analysis async
  • function get_statistical_interpretation_template

    Flask API endpoint that retrieves a specific statistical interpretation template by ID from a JSON file and returns its details including template content, name, and description.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5245-5268

    flask api-endpoint template-retrieval statistical-analysis smartstat
  • function get_statistical_interpretation_templates

    Flask API endpoint that retrieves available statistical interpretation templates from a JSON file or returns default templates if the file doesn't exist.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 5210-5241

    flask api endpoint statistical-analysis templates
  • function smartstat_upload_files

    Flask API endpoint that handles multi-file uploads (CSV, Excel, PDF, Word, PowerPoint) to a SmartStat session, processing data files as datasets and documents as information sheets.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 4998-5206

    file-upload multi-file csv-processing excel-processing pdf-extraction
  • function smartstat_select_sheet

    Flask API endpoint that processes one or more Excel sheets from an uploaded file, validates them, categorizes them as datasets or information sheets, and adds them to a SmartStat analysis session.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 4902-4994

    excel data-loading sheet-selection api-endpoint authentication
  • function smartstat_upload_data

    Flask route handler that uploads CSV or Excel data files to a SmartStat analysis session, with support for multi-sheet Excel files and session recovery.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 4784-4898

    flask file-upload csv excel data-analysis
  • function smartstat_workspace

    Flask route handler that opens a SmartStat statistical analysis workspace for a specific data section, managing session creation, data restoration, and access control.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 4663-4780

    flask-route web-handler statistical-analysis session-management data-restoration
  • function get_user_data_sections

    Flask API endpoint that retrieves all data sections associated with a specific user, enforcing access control to ensure users can only access their own data sections.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 4638-4655

    flask api rest authentication authorization
  • function save_data_section_analysis

    Flask API endpoint that saves analysis results (plots, conclusions, and analysis data) from a data analysis session to a data section in the database.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 4584-4634

    flask api-endpoint data-analysis persistence authentication
  • function data_section_analysis_chat

    Async Flask route handler that processes chat messages for data section analysis, managing conversation history and integrating with a statistical analysis service.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 4531-4580

    flask api-endpoint async chat data-analysis