🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • 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 | Lines: 41-51

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

    A test function that validates markdown processing capabilities by testing content parsing, element extraction, and HTML conversion functionality.

    File: /tf/active/vicechatdev/vice_ai/test_markdown.py | Lines: 12-57

    testing markdown html-conversion text-processing unit-test
  • class ScriptExecutor

    A sandboxed Python script executor that safely runs user-provided Python code with timeout controls, security restrictions, and isolated execution environments for data analysis tasks.

    File: /tf/active/vicechatdev/vice_ai/script_executor.py | Lines: 36-446

    sandbox script-execution security code-validation data-analysis
  • function api_templates

    Flask API endpoint that retrieves and returns a list of available instruction templates from the chat engine.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 2378-2385

    api flask rest-api templates chat-engine
  • function api_delete_chat_uploaded_document

    Flask API endpoint that deletes a user's uploaded document by document ID, requiring authentication and returning success/error responses.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 2362-2374

    flask api rest delete document-management
  • function api_get_chat_uploaded_documents

    Flask API endpoint that retrieves a list of documents uploaded by the authenticated user for chat functionality, returning document metadata without full content.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 2335-2358

    api rest-endpoint flask authentication document-management
  • function api_chat_upload_document

    Flask API endpoint that handles document upload for chat context, processes the document to extract text content, and stores it for later retrieval in chat sessions.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 2259-2331

    file-upload document-processing text-extraction api-endpoint flask
  • function export_to_pdf_v1

    Converts a document object with sections and references into a formatted PDF file using ReportLab, supporting multiple heading levels, text content with markdown/HTML processing, and reference management.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 2112-2243

    pdf export document-generation reportlab formatting
  • function convert_markdown_to_html

    Converts basic markdown formatting (bold, italic, code) to HTML markup suitable for PDF generation using ReportLab.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1999-2015

    markdown html conversion pdf-generation text-formatting
  • function html_to_markdown

    Converts HTML text back to Markdown format using regex-based pattern matching and replacement, handling headers, code blocks, formatting, links, lists, and HTML entities.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1933-1997

    html markdown conversion text-processing regex
  • function format_inline_markdown

    Converts inline Markdown syntax (bold, italic, code, links) to HTML tags while escaping HTML entities for safe rendering.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1916-1931

    markdown html text-formatting conversion inline-formatting
  • function basic_markdown_to_html

    Converts basic Markdown syntax to HTML without using external Markdown libraries, handling headers, lists, code blocks, and inline formatting.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1821-1914

    markdown html conversion text-processing formatting
  • function markdown_to_html

    Converts Markdown formatted text to HTML using the python-markdown library with multiple extensions, falling back to basic conversion if the library is unavailable.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1794-1819

    markdown html conversion text-processing formatting
  • function clean_html_tags

    Removes HTML tags and entities from text strings, returning clean plain text suitable for PDF display or other formatted output.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1775-1792

    html text-processing sanitization string-manipulation pdf-generation
  • function add_table_to_pdf

    Adds a formatted table to a ReportLab PDF document with automatic text wrapping, column width calculation, and alternating row colors.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1639-1773

    pdf-generation reportlab table-formatting text-wrapping document-generation
  • function add_formatted_content_to_pdf

    Processes markdown elements and adds them to a PDF document story with appropriate formatting, handling headers, paragraphs, lists, and tables.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1608-1637

    pdf-generation reportlab markdown-to-pdf document-formatting content-rendering
  • function add_inline_formatting_to_paragraph

    Parses markdown-formatted text and applies inline formatting (bold, italic, code) to a Microsoft Word paragraph object using the python-docx library.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1578-1606

    markdown word-document text-formatting docx inline-formatting
  • function process_inline_markdown

    Processes inline markdown formatting by unescaping HTML entities in text. Currently performs basic cleanup while preserving markdown syntax for downstream processing.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1479-1492

    markdown text-processing html-entities preprocessing formatting
  • function process_markdown_content

    Parses markdown-formatted text content and converts it into a structured list of content elements with type annotations and formatting metadata suitable for document export.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1306-1477

    markdown parser document-processing text-processing content-conversion
  • function api_export_document

    Flask API endpoint that exports a document in either DOCX or PDF format, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1265-1303

    api export document pdf docx