🔍 Code Extractor

Search Components

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

Search Results for "lock"

Found 36 matching component(s)

  • class ReferenceManager_v2

    Manages extraction and formatting of references for LLM chat responses. Handles both file references and BibTeX citations, formatting them according to various academic citation styles.

    File: /tf/active/vicechatdev/OneCo_hybrid_RAG copy.py

    class referencemanager
  • class ReferenceManager_v3

    Manages extraction and formatting of references for LLM chat responses. Handles both file references and BibTeX citations, formatting them according to various academic citation styles.

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

    class referencemanager
  • class ReferenceManager_v4

    Manages extraction and formatting of references for LLM chat responses. Handles both file references and BibTeX citations, formatting them according to various academic citation styles.

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

    class referencemanager
  • function save_session_to_disk

    Persists a chat session to disk by serializing session data to a JSON file, converting datetime objects to ISO format strings.

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

    persistence serialization session-management file-io json
  • function load_all_sessions

    Loads all chat session data from JSON files stored in a sessions directory into memory on application startup.

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

    session-management persistence initialization disk-io thread-safe
  • function create_task

    Creates and registers a new background task in a thread-safe manner by initializing its metadata in a shared dictionary with status tracking, progress information, and timestamps.

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

    task-management background-tasks thread-safe concurrency task-tracking
  • function update_task_progress

    Thread-safe function that updates the progress and timestamp of an active task identified by task_id in a shared dictionary.

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

    task-management progress-tracking thread-safe concurrency locking
  • function complete_task

    Updates the status of a task to 'completed' in a thread-safe manner, storing the result and completion timestamp.

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

    task-management threading concurrency state-management thread-safe
  • function fail_task_v1

    Marks a task as failed by updating its status, recording the error message, and setting the completion timestamp in a thread-safe manner.

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

    task-management error-handling thread-safe state-management concurrency
  • function get_task_status_v1

    Thread-safe function that retrieves the current status of a task from a shared dictionary using a task identifier.

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

    threading concurrency task-management status-tracking thread-safe
  • function cleanup_old_tasks

    Removes tasks from the active_tasks dictionary that are older than 1 hour (3600 seconds) based on their creation timestamp.

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

    cleanup maintenance task-management thread-safe memory-management
  • function get_or_create_session

    Retrieves an existing chat session by ID or creates a new one if it doesn't exist, with thread-safe access and persistent storage support.

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

    session-management chat thread-safe persistence caching
  • function add_message_to_session

    Adds a message to a chat session with thread-safe locking, storing role, content, timestamp, and optional metadata/references, then persists the session to disk.

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

    chat session-management thread-safe messaging persistence
  • function clear_session_v1

    Clears all messages from a chat session identified by session_id, resets the session's updated timestamp, and persists the changes to disk in a thread-safe manner.

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

    session-management chat thread-safe persistence state-management
  • function update_session_settings

    Updates the settings (model, mode, options) for an existing chat session and persists the changes to disk.

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

    session-management settings persistence thread-safe chat
  • function api_index_folder

    Flask API endpoint that initiates a background task to index documents in a specified folder, tracking progress and returning a task ID for status monitoring.

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

    flask api endpoint background-task document-indexing
  • function api_index_progress

    Flask API endpoint that retrieves the current progress status of an asynchronous indexing task by its task ID.

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

    flask api rest-endpoint progress-tracking async-task
  • function main_v48

    Entry point function that demonstrates document processing workflow by creating an audited, watermarked, and protected PDF/A document from a DOCX file with audit trail data.

    File: /tf/active/vicechatdev/document_auditor/main.py

    document-processing pdf-generation audit-trail watermarking pdf-a-compliance
  • function get_user_uploaded_documents

    Retrieves all uploaded documents associated with a specific user from a thread-safe global application state dictionary.

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

    document-management user-data thread-safe concurrency state-management
  • function get_uploaded_document

    Retrieves a specific uploaded document from the application state for a given user and document ID, returning document metadata and content in a thread-safe manner.

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

    document-retrieval thread-safe state-management user-documents flask
  • function remove_uploaded_document

    Removes a specific uploaded document from the application state for a given user, with thread-safe locking and automatic cleanup of empty user entries.

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

    document-management state-management thread-safe deletion cleanup
  • function clear_user_uploaded_documents

    Removes all uploaded documents associated with a specific user from the application state in a thread-safe manner.

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

    user-management document-cleanup thread-safe state-management memory-cleanup
  • function get_uploaded_document_v1

    Retrieves a specific uploaded document for a given user from a thread-safe global application state dictionary.

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

    document-retrieval thread-safe user-data state-management locking
  • function get_document_v7

    Retrieves a document by its ID from an in-memory cache or loads it from persistent storage if not cached.

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

    document-retrieval caching thread-safe memory-cache persistence
  • function save_document

    Saves a document object to both in-memory application state and persistent file storage, updating its timestamp in the process.

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

    document-management persistence thread-safe storage state-management
  • function create_task_v1

    Creates and registers a new background task entry in a thread-safe manner, initializing its status, progress, user information, and timestamps.

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

    task-management background-tasks thread-safe concurrency task-tracking
  • function complete_task_v1

    Thread-safe function that marks a task as completed by updating its status, storing the result, and recording the completion timestamp in a shared task dictionary.

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

    task-management threading concurrency state-management thread-safe
  • function fail_task

    Marks a task as failed by updating its status, recording the error message, and setting the completion timestamp in a thread-safe manner.

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

    task-management error-handling thread-safe concurrency state-management
  • function cleanup_old_tasks_v1

    Removes tasks from the active_tasks dictionary that are older than 1 hour (3600 seconds) based on their creation timestamp, using thread-safe locking.

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

    cleanup task-management threading thread-safe memory-management
  • function store_document

    Thread-safe function that stores document information (file path, text content, metadata) in a global dictionary indexed by user email and document ID.

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

    document-storage thread-safe user-session file-management concurrent-access
  • function get_user_documents

    Thread-safe function that retrieves all documents associated with a specific user email from a global document storage dictionary.

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

    document-management thread-safe user-data flask concurrency
  • function remove_user_document

    Removes a specific document for a user by deleting the file from the filesystem and removing its metadata from the in-memory storage structure.

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

    document-management file-deletion thread-safe cleanup storage-management
  • function cleanup_old_documents

    Periodically removes documents and their associated files that are older than 2 hours from the uploaded_documents dictionary, cleaning up both file system storage and memory.

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

    cleanup maintenance file-management document-management scheduled-task
  • function async_execute

    Wraps and schedules async function execution in the appropriate event loop context, ensuring proper lock propagation and document context management for Bokeh/Panel applications.

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

    async event-loop bokeh panel tornado
  • function with_lock

    A decorator that wraps callback functions (both sync and async) to mark them for execution with a Bokeh document lock, allowing safe modification of Bokeh models.

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

    decorator bokeh threading lock callback
  • function unlocked

    A context manager that temporarily unlocks a Bokeh Document and dispatches ModelChangedEvents to all connected WebSocket clients during the context execution.

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

    context-manager bokeh websocket event-dispatching document-management

Search Examples