🔍 Code Extractor

Search Components

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

Search Results for "singleton"

Found 9 matching component(s)

  • class LLMClient_v2

    Client for interacting with LLM providers (OpenAI, Anthropic, Azure, etc.)

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

    class llmclient
  • function init_chat_engine

    Initializes a global chat engine instance using the OneCo_hybrid_RAG class and logs the initialization status.

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

    initialization chat-engine RAG hybrid-rag global-state
  • function get_driver

    Singleton function that initializes and returns a Neo4j database driver instance with connection verification.

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

    database neo4j driver singleton connection-management
  • function ensure_audit_trail_exists

    Ensures a singleton AuditTrail node exists in a Neo4j database, creating it if necessary, and returns its unique identifier.

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

    neo4j graph-database audit-trail idempotent database-initialization
  • function get_filecloud_client

    Singleton factory function that returns a globally cached FileCloud API client instance, handling initialization, authentication, and re-authentication as needed.

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

    filecloud api-client singleton authentication connection-management
  • function reset_filecloud_client

    Resets the global FileCloud client connection by setting the global _filecloud_client variable to None, effectively clearing any existing connection state.

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

    filecloud connection-management reset cleanup global-state
  • function get_or_create_audit_trail_uid

    Retrieves the UID of an existing AuditTrail node from a Neo4j database, or creates a new AuditTrail node with a generated UID if one doesn't exist.

    File: /tf/active/vicechatdev/CDocs/utils/audit_trail.py

    database neo4j audit audit-trail get-or-create
  • function get_manual_relationship_manager

    Returns a singleton instance of the ManualRelationshipManager class, creating it on first access using lazy initialization.

    File: /tf/active/vicechatdev/full_smartstat/manual_relationships.py

    singleton design-pattern global-state lazy-initialization relationship-management
  • class _state

    A global state management class that tracks and manages the state of running Panel applications, including server information, session data, busy status, and various application-level resources.

    File: /tf/active/vicechatdev/patches/state.py

    state-management global-state session-management server-management caching

Search Examples