🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function scan_output_folder_v1

    Scans a specified folder for PDF documents with embedded codes in their filenames, extracting metadata and signature information for each coded document found.

    File: /tf/active/vicechatdev/mailsearch/enhanced_document_comparison.py | Lines: 161-185

    file-scanning pdf-processing document-management metadata-extraction file-inventory
  • function get_file_info

    Retrieves file metadata including size in bytes and cryptographic hash for a given file path.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 65-84

    file-operations metadata file-hash file-size error-handling
  • function calculate_file_hash

    Calculates the MD5 hash of a file by reading it in chunks to handle large files efficiently.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 43-62

    file-processing hashing md5 checksum file-integrity
  • function calculate_file_hash_v1

    Calculates the MD5 hash of a file by reading it in chunks to handle large files efficiently.

    File: /tf/active/vicechatdev/mailsearch/enhanced_document_comparison.py | Lines: 37-47

    file-processing hashing md5 checksum file-integrity
  • function extract_document_code

    Extracts a structured document code (e.g., '4.5.38.2') from a filename using regex pattern matching.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 27-40

    document-management filename-parsing regex pattern-matching code-extraction
  • function extract_document_code_v1

    Extracts a structured document code (e.g., 2.13.4.3.3.2) from a filename using regex pattern matching.

    File: /tf/active/vicechatdev/mailsearch/enhanced_document_comparison.py | Lines: 29-34

    regex pattern-matching document-management filename-parsing code-extraction
  • class EmailSearchApp

    A class for authenticating with Microsoft Graph API and searching emails in a user's mailbox, with support for downloading PDF attachments and maintaining download records.

    File: /tf/active/vicechatdev/mailsearch/email_search_app.py | Lines: 40-433

    email microsoft-graph oauth authentication msal
  • function main_v1

    Main execution function that processes and copies document files from an output directory to target folders based on document codes, with support for dry-run and test modes.

    File: /tf/active/vicechatdev/mailsearch/copy_signed_documents.py | Lines: 119-253

    file-management document-processing batch-processing file-copying csv-processing
  • function main_v5

    Main entry point function for an invoice processing system that monitors an inbound directory for PDF invoices, processes them using LLM extraction, generates Excel outputs, and moves processed files to a processed directory.

    File: /tf/active/vicechatdev/invoice_extraction/main.py | Lines: 193-270

    invoice-processing pdf-processing llm-extraction batch-processing file-monitoring
  • function main_v4

    Entry point function that orchestrates a Q&A document updater application, loading configuration, setting up logging, and processing Q&A document updates with comprehensive status handling.

    File: /tf/active/vicechatdev/QA_updater/main.py | Lines: 7-48

    entry-point orchestration qa-management document-updater logging
  • function main_v3

    Command-line interface function that orchestrates the generation of enhanced meeting minutes from transcript files and PowerPoint presentations using various LLM models (GPT-4o, Azure GPT-4o, or Gemini).

    File: /tf/active/vicechatdev/leexi/enhanced_meeting_minutes_generator.py | Lines: 1145-1246

    cli command-line meeting-minutes llm gpt-4
  • function main_v2

    Main orchestration function that reads an improved markdown file and converts it to an enhanced Word document with comprehensive formatting, including table of contents, warranty sections, disclosures, and bibliography.

    File: /tf/active/vicechatdev/enhanced_word_converter_fixed.py | Lines: 504-563

    document-generation word-processing markdown-conversion docx file-processing
  • function copy_file_with_date

    Copies a file from source to destination and sets the file's modification and access times to match a provided datetime object.

    File: /tf/active/vicechatdev/mailsearch/copy_signed_documents.py | Lines: 110-116

    file-operations file-copy timestamp-manipulation metadata-preservation email-attachments
  • function load_email_dates

    Reads a CSV file (DOWNLOAD_REGISTER) containing email metadata and extracts filename-to-date mappings, parsing dates in YYYY-MM-DD format.

    File: /tf/active/vicechatdev/mailsearch/copy_signed_documents.py | Lines: 94-107

    csv file-io date-parsing email-metadata data-loading
  • function create_new_filename

    Modifies a PDF filename by inserting '_fully_signed' before the file extension, leaving non-PDF filenames unchanged.

    File: /tf/active/vicechatdev/mailsearch/copy_signed_documents.py | Lines: 86-91

    filename-manipulation string-processing pdf file-naming document-processing
  • function find_best_folder

    Finds the best matching folder in a directory tree by comparing hierarchical document codes with folder names containing numeric codes.

    File: /tf/active/vicechatdev/mailsearch/copy_signed_documents.py | Lines: 37-83

    file-organization directory-traversal hierarchical-matching code-matching folder-search
  • function extract_code_parts

    Splits a document code string into its component parts using a period (.) as the delimiter.

    File: /tf/active/vicechatdev/mailsearch/copy_signed_documents.py | Lines: 32-34

    string-manipulation parsing document-management code-splitting hierarchical-data
  • function has_wuxi_coding

    Validates whether a filename starts with a Wuxi coding pattern consisting of dot-separated numeric segments (e.g., '2.13.4.1.2').

    File: /tf/active/vicechatdev/mailsearch/copy_signed_documents.py | Lines: 24-29

    validation filename pattern-matching regex wuxi-coding
  • function has_wuxi_coding_v1

    Validates whether a filename starts with a Wuxi coding pattern, which consists of numbers separated by dots (e.g., '2.13.4.1.2').

    File: /tf/active/vicechatdev/mailsearch/upload_non_wuxi_coded.py | Lines: 17-20

    validation filename pattern-matching regex string-processing
  • function upload_file_to_filecloud

    Uploads a file to FileCloud storage service, checking if the file already exists and comparing modification dates to determine if an update is needed.

    File: /tf/active/vicechatdev/mailsearch/upload_non_wuxi_coded.py | Lines: 63-154

    file-upload cloud-storage filecloud file-sync api-integration