🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • class SqlGenerationResult

    A dataclass that encapsulates the results of an SQL query generation operation, including the generated query, explanation, confidence score, and metadata about database objects used.

    File: /tf/active/vicechatdev/full_smartstat/two_pass_sql_workflow.py | Lines: 28-34

    dataclass sql-generation query-metadata result-container database
  • class TableSelectionResult

    A dataclass that encapsulates the results of a table selection operation, including selected tables, reasoning, confidence score, and suggested joins.

    File: /tf/active/vicechatdev/full_smartstat/two_pass_sql_workflow.py | Lines: 20-25

    dataclass table-selection database query-generation sql
  • function demo_statistical_agent

    Demonstrates the capabilities of a statistical agent by testing query interpretation on sample data with various statistical analysis queries.

    File: /tf/active/vicechatdev/full_smartstat/demo.py | Lines: 181-231

    demo testing statistical-analysis agent query-interpretation
  • function demo_analysis_workflow

    Demonstrates a complete end-to-end statistical analysis workflow using the SmartStat system, including session creation, data loading, natural language query processing, analysis execution, and result interpretation.

    File: /tf/active/vicechatdev/full_smartstat/demo.py | Lines: 72-179

    demo workflow statistical-analysis natural-language-processing data-analysis
  • function create_sample_data_v1

    Generates a synthetic dataset with 200 samples containing group-based measurements, quality scores, environmental data, and temporal information, then saves it to a CSV file.

    File: /tf/active/vicechatdev/full_smartstat/demo.py | Lines: 24-70

    data-generation synthetic-data sample-data testing demonstration
  • function create_sample_data_v2

    Generates a synthetic dataset of 200 poultry research records with multiple treatment groups, challenge regimens, and performance metrics for demonstration purposes.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/5a059cb7-3903-4020-8519-14198d1f39c9/analysis_1.py | Lines: 36-66

    data-generation synthetic-data poultry-research veterinary coccidiosis
  • class Config_v1

    Configuration class that centralizes all application settings including Flask configuration, directory paths, API keys, LLM model settings, and statistical analysis parameters.

    File: /tf/active/vicechatdev/full_smartstat/config.py | Lines: 9-92

    configuration settings flask llm openai
  • class Config_v3

    Configuration manager class that loads, manages, and persists configuration settings for a contract validity analyzer application, supporting YAML files and environment variable overrides.

    File: /tf/active/vicechatdev/contract_validity_analyzer/config/config.py | Lines: 13-117

    configuration config-management yaml environment-variables settings
  • class Config_v2

    Configuration class that manages environment-based settings for a SharePoint to FileCloud synchronization application.

    File: /tf/active/vicechatdev/SPFCsync/config.py | Lines: 9-72

    configuration environment-variables sharepoint filecloud sync
  • function query_iteration_to_dict

    Instance method that serializes a QueryIteration object into a dictionary representation, including iteration metadata, SQL query details, data shape, and assessment information.

    File: /tf/active/vicechatdev/full_smartstat/enhanced_sql_workflow.py | Lines: 2007-2018

    serialization dictionary-conversion data-transformation query-iteration sql-workflow
  • class EnhancedSQLWorkflow

    Enhanced SQL workflow with iterative optimization

    File: /tf/active/vicechatdev/full_smartstat/enhanced_sql_workflow.py | Lines: 58-2004

    class enhancedsqlworkflow
  • class QueryIteration

    A dataclass representing a single iteration in an iterative SQL query generation and evaluation workflow, capturing the query, its results, assessment, and improvement suggestions.

    File: /tf/active/vicechatdev/full_smartstat/enhanced_sql_workflow.py | Lines: 47-56

    dataclass sql query-generation iteration evaluation
  • class AnalysisRequest

    A dataclass that encapsulates an analysis request combining data retrieval requirements and statistical analysis specifications.

    File: /tf/active/vicechatdev/full_smartstat/enhanced_sql_workflow.py | Lines: 26-44

    dataclass analysis request data-retrieval statistical-analysis
  • function internal_error_v1

    Flask error handler that catches HTTP 500 Internal Server Errors and renders a custom error page with a generic error message.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1798-1799

    flask error-handling http-500 error-handler web-framework
  • function internal_error_v2

    Flask error handler that catches internal server errors (HTTP 500), logs them, and renders a user-friendly error page.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1701-1703

    flask error-handler http-500 exception-handling logging
  • function not_found_error

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

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1794-1795

    flask error-handling http-404 web-framework error-page
  • function serve_generated_file

    Flask route handler that serves generated files (images, HTML, CSS, JS, etc.) from session-specific directories, with security checks and automatic MIME type detection.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1738-1791

    flask file-serving web-route security mime-type
  • function download_generated_file

    Flask route handler that downloads generated files from a user's session directory, with security checks and support for nested analysis subdirectories.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1695-1735

    flask file-download web-endpoint security path-traversal-protection
  • function generate_report

    Generates a text-based statistical analysis report from session data and saves it to the configured reports folder.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1661-1692

    report-generation file-io text-formatting statistical-analysis session-management
  • function analysis_workspace

    Flask route handler that renders an analysis workspace interface for a given session, displaying session summary and generated files in a VS Code-like environment.

    File: /tf/active/vicechatdev/full_smartstat/app.py | Lines: 1640-1659

    flask web-route workspace session-management error-handling