🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function index

    Flask route handler that serves as the main landing page for authenticated users, displaying their documents and text sections in a workspace interface.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 480-496

    flask route-handler authentication web-application index-page
  • function index_v1

    Flask route handler that renders the main application page with user session management, authentication checks, and document collection statistics.

    File: /tf/active/vicechatdev/docchat/app.py | Lines: 798-819

    flask web-route session-management authentication main-page
  • function auth_callback_v1

    OAuth2 callback handler for Azure SSO authentication that processes authorization codes, exchanges them for access tokens, and establishes user sessions.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 437-476

    authentication oauth2 azure-sso callback session-management
  • function auth_callback_v2

    Flask route handler that processes OAuth 2.0 callback from Azure AD, exchanges authorization code for access tokens, and establishes user session.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 660-689

    oauth authentication azure-ad callback flask-route
  • function logout_v1

    Flask route handler that logs out the current user by clearing their session data and redirecting them to the login page.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 428-434

    authentication logout session-management flask-route web-security
  • function logout_v2

    Flask route handler that logs out the current user by clearing their session data and redirecting them to the login page.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 679-683

    authentication logout session-management flask web-route
  • function login_v1

    Flask route handler that manages user authentication by redirecting authenticated users to the index page, initiating Azure SSO login for production, or creating a development session for local testing.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 398-425

    authentication login azure-sso flask-route session-management
  • function login_v3

    Flask route handler that displays the login page and redirects authenticated users to the document workspace.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 641-647

    authentication login flask-route azure-sso web-application
  • function login_v2

    Flask route handler that displays the login page and redirects authenticated users to the chat interface.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 651-657

    authentication login flask azure-sso web-route
  • function handle_exception

    Flask error handler that catches all unhandled exceptions, logs them, and returns a generic JSON error response with HTTP 500 status.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 392-394

    flask error-handling exception-handler logging web-api
  • function not_found_v2

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

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 383-384

    flask error-handler 404 not-found json-response
  • function require_auth

    A decorator function that enforces authentication requirements on Flask route handlers by checking if a user is authenticated before allowing access to the decorated function.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 370-379

    decorator authentication authorization flask security
  • function require_auth_v1

    A Flask decorator that enforces authentication by checking if a user is authenticated before allowing access to a protected route, redirecting to login if not authenticated.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 508-515

    authentication decorator flask authorization security
  • function get_current_user

    Retrieves the current user's email from the Flask session if authenticated, otherwise returns 'anonymous'.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 356-360

    authentication session-management user-identification flask web-application
  • class SmartStatConfig

    Configuration class for SmartStat service that manages directory paths and API keys for various LLM providers integrated into Vice AI.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 258-278

    configuration setup initialization directory-management api-keys
  • function inject_template_vars

    A Flask context processor that injects the get_file_version function into all Jinja2 templates, making it globally available for cache-busting static files.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 106-110

    flask context-processor template jinja2 cache-busting
  • function get_file_version_v1

    Generates a version string for static files based on their modification time, used for cache busting in web applications.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 90-102

    cache-busting static-files versioning flask web-development
  • function get_file_version

    Generates a version string for static files to enable cache busting, using current time in debug mode or file modification time in production.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 406-422

    cache-busting static-files flask web-development versioning
  • class DocumentProcessor_v2

    A document processing class that extracts text from PDF and Word documents using llmsherpa as the primary method with fallback support for PyPDF2, pdfplumber, and python-docx.

    File: /tf/active/vicechatdev/contract_validity_analyzer/utils/document_processor_old.py | Lines: 13-290

    document-processing text-extraction pdf-processing word-processing llmsherpa
  • function test_collection_logic

    A test function that validates collection processing logic, specifically testing how collections are handled when selected, deselected, or missing, with focus on data clearing behavior.

    File: /tf/active/vicechatdev/vice_ai/test_collection_fix.py | Lines: 6-59

    testing unit-test collection-management data-clearing validation