🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function process_markdown_content_v1

    Parses markdown-formatted text content and converts it into a structured list of document elements (headers, paragraphs, lists, tables, code blocks) with their types and formatting preserved in original order.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 3682-3907

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

    Removes all HTML tags from a given text string using regular expression pattern matching, returning clean text without markup.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 3676-3680

    html text-processing sanitization regex string-manipulation
  • function html_to_markdown_v1

    Converts HTML markup to Markdown syntax, handling headers, code blocks, text formatting, links, lists, and paragraphs with proper spacing.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 3616-3674

    html markdown conversion text-processing formatting
  • function delta_to_html

    Converts Quill Delta operations (rich text format) to HTML markup while preserving the order and structure of formatted text, headers, lists, and inline styles.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 3535-3614

    quill delta html-conversion rich-text text-formatting
  • function convert_quill_delta_to_html

    Converts Quill Delta format (rich text editor format) to HTML, with fallback handling for plain text, JSON strings, and already-formatted HTML content.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 3505-3533

    quill delta html-conversion rich-text text-processing
  • function export_to_pdf

    Exports a document with text and data sections to a PDF file using ReportLab, handling custom styling, section ordering, and content formatting including Quill Delta to HTML/Markdown conversion.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 3351-3502

    pdf-export document-generation reportlab content-formatting quill-delta
  • 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 | Lines: 1839-1962

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

    Extracts human-readable conclusion or interpretation text from nested analysis result dictionaries by checking multiple possible field locations and data structures.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 3323-3349

    data-extraction text-processing pdf-generation analysis-results dictionary-parsing
  • function add_data_section_to_pdf

    Adds a data analysis section to a PDF document story, including analysis metadata, statistical conclusions, and embedded visualizations from saved content or analysis history.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 3064-3321

    pdf-generation reportlab data-analysis document-export visualization
  • function export_to_docx

    Exports a document with text and data sections to Microsoft Word DOCX format, preserving formatting, structure, and metadata.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2955-3062

    document-export docx word-document file-generation content-formatting
  • function export_to_docx_v1

    Exports a document object to Microsoft Word DOCX format, converting sections, content, and references into a formatted Word document with proper styling and structure.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 2017-2110

    document-export docx word-document file-generation content-formatting
  • function add_data_section_to_docx

    Adds a data analysis section to a Word document, including analysis metadata, statistical conclusions, and embedded visualizations from saved content or legacy analysis history.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2672-2953

    document-generation word-document data-analysis visualization report-generation
  • function html_to_plain_text_with_formatting

    Parses HTML content and converts it to plain text while preserving formatting information, returning a list of text segments with their associated format types (headers, bold, or normal).

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2608-2669

    html-parsing text-extraction document-processing format-preservation html-to-text
  • function simple_markdown_to_html

    Converts a subset of Markdown syntax to clean HTML, supporting headers, bold text, unordered lists, and paragraphs.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2542-2605

    markdown html conversion text-formatting parser
  • function system_status

    Flask API endpoint that returns comprehensive system status information including database connectivity, authentication state, and feature availability.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2519-2539

    flask api health-check status monitoring
  • function api_add_reference_document

    Flask API endpoint that accepts reference document text via POST request and stores it in the user's session for use as context in subsequent operations.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2479-2515

    api flask reference-document session-management document-upload
  • function api_list_documents_v2

    Flask API endpoint that retrieves and returns a list of all documents uploaded by the currently authenticated user from their session storage.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2452-2475

    api flask rest-api document-management session-storage
  • function api_remove_document

    Flask API endpoint that removes an uploaded document from the session and deletes its associated file from the filesystem.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2421-2448

    flask api delete document-management file-cleanup
  • function api_remove_document_v1

    Flask API endpoint that removes a user's uploaded document by document ID, with authentication required.

    File: /tf/active/vicechatdev/vice_ai/app.py | Lines: 1430-1443

    api rest delete document-management authentication
  • function api_upload_document_v1

    Flask API endpoint that handles document file uploads, validates file type and size, stores the file temporarily, and extracts basic text content for processing.

    File: /tf/active/vicechatdev/vice_ai/new_app.py | Lines: 2339-2417

    file-upload document-processing api-endpoint flask validation