🔍 Code Extractor

Component not found

Browse Components

Showing 10 of 10 components

  • function parse_references_section

    Parses a formatted references section string and extracts structured data including reference numbers, sources, and content previews using regular expressions.

    File: /tf/active/vicechatdev/improved_convert_disclosures_to_table.py | Lines: 269-289

    parsing text-processing references citations regex
  • function create_excel_report_improved

    Creates a multi-sheet Excel report from warranty data, including main report, summary view, complete data, references, and statistics sheets with auto-formatted columns.

    File: /tf/active/vicechatdev/improved_convert_disclosures_to_table.py | Lines: 193-267

    excel reporting data-export pandas multi-sheet
  • function create_csv_report_improved

    Creates two CSV reports from warranty data: a summary report with key fields and a detailed report with all fields including full disclosures.

    File: /tf/active/vicechatdev/improved_convert_disclosures_to_table.py | Lines: 167-191

    csv report-generation file-io warranty data-export
  • function extract_warranty_data_improved

    Parses markdown-formatted warranty documentation to extract structured warranty data including IDs, titles, sections, disclosure text, and reference citations.

    File: /tf/active/vicechatdev/improved_convert_disclosures_to_table.py | Lines: 75-165

    markdown-parsing text-extraction warranty-processing document-parsing regex
  • function clean_text_for_xml

    Sanitizes text by removing or replacing XML-incompatible characters to ensure compatibility with Word document XML structure.

    File: /tf/active/vicechatdev/improved_convert_disclosures_to_table.py | Lines: 44-73

    text-processing xml sanitization word-documents character-encoding
  • function clean_text

    Cleans and normalizes text content by removing HTML tags, normalizing whitespace, and stripping markdown formatting elements.

    File: /tf/active/vicechatdev/improved_convert_disclosures_to_table.py | Lines: 25-42

    text-processing text-cleaning normalization html-removal markdown-removal
  • function sanitize_folders

    Recursively traverses a directory tree and sanitizes folder names by removing non-ASCII characters, renaming folders to ASCII-only versions.

    File: /tf/active/vicechatdev/creation_updater.py | Lines: 9-27

    filesystem directory-management sanitization recursive file-operations
  • function main

    A test function that validates email template rendering by testing multiple HTML email templates with sample data structures for document review and approval workflows.

    File: /tf/active/vicechatdev/test_comprehensive_templates.py | Lines: 45-113

    testing email-templates validation document-management template-rendering
  • function test_template_with_data

    Tests a template file by replacing placeholders with test data and validates that all required placeholders have been filled, excluding known conditional placeholders.

    File: /tf/active/vicechatdev/test_comprehensive_templates.py | Lines: 10-43

    template-testing validation placeholder-replacement jinja2 file-processing
  • function check_fixes

    A diagnostic function that prints a comprehensive summary report of email notification fixes implemented in a CDocs system, verifying template files and documenting debugging enhancements.

    File: /tf/active/vicechatdev/fix_summary.py | Lines: 8-78

    diagnostic verification email-templates debugging documentation