🔍 Code Extractor

Search Components

Full-Text: Fast keyword matching | Semantic: AI-powered understanding of intent (finds similar concepts)

Search Results for "decorator"

Found 36 matching component(s)

  • function search_documents

    Searches for documents in a Neo4j graph database based on multiple optional filter criteria including text query, document type, department, status, and owner.

    File: /tf/active/vicechatdev/document_controller_backup.py

    search documents neo4j cypher database-query
  • function login_required

    A Flask decorator that enforces authentication requirements on routes by checking for user session data and redirecting unauthenticated users to the login page.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication decorator flask security session-management
  • function user_guide

    Flask route handler that renders and displays the user guide page for the application.

    File: /tf/active/vicechatdev/docchat/app.py

    flask web-route template-rendering user-guide documentation
  • function api_upload

    Flask API endpoint that handles file uploads, validates file types, saves files to a configured directory structure, and automatically indexes the uploaded document for search/retrieval.

    File: /tf/active/vicechatdev/docchat/app.py

    file-upload api-endpoint document-management rag indexing
  • 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

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

    Flask error handler that catches internal server errors (HTTP 500), logs them, and returns a standardized JSON error response.

    File: /tf/active/vicechatdev/docchat/app.py

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

    Flask route handler that exports a chat conversation to a PDF file with formatted messages, roles, and references using the reportlab library.

    File: /tf/active/vicechatdev/docchat/app.py

    pdf-export document-generation chat-export reportlab flask-route
  • function user_guide_v1

    Flask route handler that renders the user guide page for the document chat application.

    File: /tf/active/vicechatdev/docchat/blueprint.py

    flask route-handler view-function authentication user-guide
  • function index_all_documents

    Flask route handler that initiates background indexing of all documents in the system, creating a task ID for tracking progress and returning immediately while indexing continues asynchronously.

    File: /tf/active/vicechatdev/docchat/blueprint.py

    flask api-endpoint background-task document-indexing async-processing
  • class LLMMessage

    A simple dataclass that represents a message for Large Language Model (LLM) interactions, containing only the message content as a string.

    File: /tf/active/vicechatdev/docchat/llm_factory.py

    dataclass message llm data-container language-model
  • function log_performance

    A context manager decorator that logs the performance metrics of an operation by wrapping it with a PerformanceLogger instance.

    File: /tf/active/vicechatdev/contract_validity_analyzer/utils/logging_utils.py

    performance logging context-manager monitoring profiling
  • function add_cache_headers

    A Flask after_request decorator function that adds HTTP cache control headers to responses based on the application's debug mode, content type, and request endpoint.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask http-headers caching cache-control middleware
  • 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

    authentication decorator flask authorization security
  • function document_workspace

    Flask route handler that renders the main document workspace interface for authenticated users.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask route-handler web-interface authentication document-workspace
  • function api_get_document

    Flask API endpoint that retrieves a specific document by ID, validates user access permissions, and returns the document data as JSON.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask api rest document-retrieval authentication
  • function add_cache_headers_v1

    Flask after_request decorator function that adds HTTP cache control headers to responses based on debug mode, endpoint type, and request path.

    File: /tf/active/vicechatdev/vice_ai/app.py

    flask http-headers caching cache-control middleware
  • 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

    flask error-handler 404 http-error 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

    flask error-handler http-500 exception-handling logging
  • 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

    flask context-processor template jinja2 cache-busting
  • 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

    decorator authentication authorization flask security
  • function workspace

    Flask route handler that renders the main workspace interface template for authenticated users.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask route view-function web-interface authentication
  • function guard_execution

    A decorator factory that prevents rapid repeated execution of a function by enforcing a cooldown period between calls.

    File: /tf/active/vicechatdev/CDocs/__init__.py

    decorator rate-limiting throttling cooldown debounce
  • function register_model

    Registers a model class in a global registry dictionary, enabling dynamic model lookup and management. Can be used as a decorator or called directly.

    File: /tf/active/vicechatdev/CDocs/models/__init__.py

    registry decorator model-registration class-registration plugin-pattern
  • function initialize_schema

    Initializes the Neo4j database schema by creating required constraints, indexes, root nodes, audit trails, and migrating existing data structures to current schema versions.

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py

    database neo4j schema initialization migration
  • function migrate_approval_data

    Migrates legacy single-step approval records in Neo4j to a new multi-step approval model by creating ApprovalStep nodes and Approver nodes with proper relationships.

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py

    database-migration neo4j graph-database data-transformation approval-workflow
  • function init_admin_role

    Initializes an ADMIN role for a specific administrator user (wim@vicebio.com) in a Neo4j graph database by creating role relationships if they don't already exist.

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py

    admin initialization role-management neo4j graph-database
  • function get_document_v1

    Retrieves comprehensive details of a controlled document by its UID, including optional version history, review cycles, and approval workflows.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py

    document-management retrieval controlled-documents version-control review-workflow
  • function archive_document

    Archives a controlled document by changing its status and all versions to ARCHIVED, moving the published PDF to an archived location with metadata, and logging the archival event.

    File: /tf/active/vicechatdev/CDocs/controllers/document_controller.py

    document-management archival lifecycle-management controlled-documents filecloud
  • function require_permission

    A decorator function that enforces permission-based access control by checking if a user has required permissions before executing the decorated function.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py

    decorator authorization access-control permissions security
  • function log_controller_action

    A decorator factory that logs controller actions with different log levels based on whether the action is routine or non-routine, and handles exceptions during execution.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py

    decorator logging controller error-handling monitoring
  • function async_action

    A decorator function that marks another function as asynchronous by adding an 'is_async' attribute, while preserving the original function's metadata.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py

    decorator async metadata marker action
  • function transaction

    A decorator function that wraps another function to provide database transaction management capabilities, currently implemented as a placeholder for future transaction handling.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py

    decorator transaction database error-handling logging
  • function validate_input

    A decorator factory that creates a decorator to validate function input arguments against a provided schema. Currently a placeholder implementation that passes through without validation.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py

    decorator validation input-validation schema placeholder
  • function cache_result

    A decorator factory that creates a caching decorator for function results with a configurable time-to-live (TTL). Currently a placeholder implementation that passes through function calls without actual caching.

    File: /tf/active/vicechatdev/CDocs/controllers/__init__.py

    decorator caching performance memoization ttl
  • 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

    flask error-handling http-404 web-framework error-page
  • 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

    flask error-handling http-500 error-handler web-framework

Search Examples