🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function admin_cleanup

    Flask route handler that provides an admin endpoint to manually trigger cleanup of old analysis sessions based on a configurable age threshold.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1617-1637

    admin cleanup maintenance flask-route session-management
  • function admin_cleanup_orphaned

    Flask route handler that cleans up orphaned files and directories from deleted analysis sessions by calling the analysis service's cleanup method and returning detailed results.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1587-1614

    admin cleanup file-management orphaned-files maintenance
  • function admin_status

    Flask route handler that retrieves comprehensive system status information including disk usage, session counts, analysis counts, and orphaned file detection for an admin dashboard.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1509-1584

    admin monitoring disk-usage system-status flask-route
  • function get_session_status

    Flask API endpoint that retrieves the current status and summary of an analysis session by its ID.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1487-1506

    flask api rest-endpoint session-management status-check
  • function export_report

    Flask route handler that exports an analysis report for a given session in either PDF or Word format, retrieving session data and generating a downloadable file.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1466-1484

    flask export report-generation file-download pdf
  • function serve_plot

    Flask route handler that serves generated plot image files from a session-specific plots directory.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1450-1463

    flask route-handler file-serving plot-visualization image-serving
  • function delete_session

    Flask route handler that deletes an analysis session and all its associated data from the database, returning a JSON response indicating success or failure.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1422-1447

    flask rest-api delete-endpoint session-management database-operations
  • function get_results

    Flask route handler that retrieves and returns comprehensive analysis results for a given session, including summary data, generated files, interpretations, and execution tracking information.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1391-1419

    flask api-endpoint results-retrieval session-management statistical-analysis
  • function list_sessions

    Flask route handler that retrieves and displays a list of recent analysis sessions from the analysis service.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1379-1388

    flask web-route session-management error-handling template-rendering
  • function view_session

    Flask route handler that retrieves and displays an analysis session by its ID, rendering the session details in a template or redirecting on error.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1360-1376

    flask web-route session-management view-handler error-handling
  • function debug_analysis

    Flask route handler that debugs and retries a failed analysis step by delegating to the analysis service and returning the debug result as JSON.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1346-1357

    flask rest-api debugging error-handling analysis
  • function debug_session_results

    Flask debug endpoint that retrieves and categorizes analysis session results, providing detailed file summaries and metadata for troubleshooting purposes.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1302-1343

    debug flask endpoint session-management file-categorization
  • function get_analysis_files

    Flask API endpoint that retrieves files associated with a specific analysis within a session, returning them as a JSON response.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1285-1299

    flask api endpoint rest-api file-retrieval
  • function get_analysis_progress

    Flask route handler that retrieves the progress status of a running analysis task and performs cleanup of completed/failed analyses after a timeout period.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1262-1282

    flask api-endpoint progress-tracking async-monitoring cleanup
  • function run_analysis_async

    Executes a data analysis workflow asynchronously with real-time progress tracking, including query interpretation, script generation, execution, and result finalization.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1148-1259

    async data-analysis statistical-analysis progress-tracking llm-integration
  • function analyze_data

    Flask route handler that initiates an asynchronous data analysis process based on user query, creating a background thread to perform the analysis and returning an analysis ID for progress tracking.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1102-1146

    flask api-endpoint async threading data-analysis
  • function load_sql_data

    Flask route handler that loads data from a SQL database using a provided connection string and query, creating a data source for a specific analysis session.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1076-1099

    flask sql database data-loading api-endpoint
  • function refresh_database_schema

    Flask route endpoint that forces a refresh of the database schema by invoking the schema discovery service with LLM-generated descriptions.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1051-1073

    flask api-endpoint database schema-discovery llm
  • function get_database_schema_viewer

    Flask route handler that retrieves and formats detailed database schema information from a discovered schema stored in the Flask app object, returning it as JSON for visualization purposes.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 958-1048

    flask api-endpoint database-schema metadata visualization
  • function add_manual_relationship

    Flask route handler that adds a manually specified database relationship to the schema and clears the schema cache to force reload with the new relationship.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 893-955

    flask api-endpoint database-schema relationship-management manual-configuration