🔍 Code Extractor

Browse Components

Showing 20 of 1722 components

  • function main_v2

    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 test_with_real_documents

    Tests a contract analyzer system by processing real documents from FileCloud, extracting contract information, and generating analysis reports with performance metrics.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_real_documents.py | Lines: 37-164

    testing integration-test contract-analysis document-processing filecloud
  • function main

    Main entry point function for a Legal Contract Data Extractor application that processes contracts from FileCloud, extracts data, and exports results to multiple formats (CSV, Excel, JSON).

    File: /tf/active/vicechatdev/contract_validity_analyzer/extractor.py | Lines: 747-836

    main-entry-point contract-extraction data-processing filecloud csv-export
  • function main_v1

    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
  • class ContractDataExtractor

    Extract structured data from legal contracts using LLM analysis

    File: /tf/active/vicechatdev/contract_validity_analyzer/extractor.py | Lines: 43-691

    class contractdataextractor
  • function test_ocr_fallback

    A test function that validates OCR fallback functionality when the primary llmsherpa PDF text extraction method fails.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_ocr_fallback.py | Lines: 59-100

    testing ocr pdf-processing text-extraction fallback-mechanism
  • class TestDocumentProcessor

    A test subclass of DocumentProcessor that simulates llmsherpa PDF processing failures and triggers OCR fallback mechanisms for testing purposes.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_ocr_fallback.py | Lines: 17-57

    testing document-processing pdf ocr fallback
  • function test_full_analyzer

    Tests the full contract analyzer pipeline by running a dry-run analysis on a limited number of files to verify the system is working correctly.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_implementation.py | Lines: 154-172

    testing integration-test contract-analysis pipeline-validation dry-run
  • function test_llm_client

    Tests the LLM client functionality by analyzing a sample contract text and verifying the extraction of key contract metadata such as third parties, dates, and status.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_implementation.py | Lines: 124-152

    testing llm contract-analysis integration-test validation
  • function test_document_processing

    A test function that validates document processing functionality by creating a test PDF file, processing it through a DocumentProcessor, and verifying the extraction results or error handling.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_implementation.py | Lines: 77-122

    testing document-processing pdf-extraction integration-test contract-analysis
  • function test_filecloud_connection

    Tests the connection to a FileCloud server by establishing a client connection and performing a document search operation to verify functionality.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_implementation.py | Lines: 52-75

    testing filecloud connection-test document-search integration-test
  • function test_filecloud_connection_v1

    Tests the connection to a FileCloud server by attempting to instantiate a FileCloudClient with credentials from configuration.

    File: /tf/active/vicechatdev/SPFCsync/test_connections.py | Lines: 45-61

    testing connection-test filecloud diagnostic health-check
  • function test_config_loading

    A test function that validates configuration loading by instantiating a Config object and verifying access to key configuration parameters across FileCloud, LLM, and output settings.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_implementation.py | Lines: 34-50

    testing configuration validation diagnostics setup-verification
  • function test_single_document

    Tests end date extraction from a specific PDF document by downloading it from FileCloud, extracting text, and using LLM-based analysis to identify contract expiry dates.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_single_document.py | Lines: 36-153

    testing integration-test document-processing pdf-extraction contract-analysis
  • function setup_test_logging_v1

    Configures Python logging for test environments with both console and file output handlers.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_single_document.py | Lines: 24-34

    logging testing configuration file-output console-output
  • function test_with_simulated_content

    Tests LLM-based contract analysis prompts using simulated NDA content containing a term clause to verify extraction of contract dates and metadata.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_local_document.py | Lines: 166-228

    testing contract-analysis llm nda date-extraction
  • function test_local_document

    Integration test function that validates end date extraction from a local PDF document using document processing and LLM-based analysis.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_local_document.py | Lines: 34-164

    testing integration-test document-processing pdf-extraction llm
  • function setup_test_logging

    Configures Python logging with both console and file output for test execution, returning a logger instance for the calling module.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_local_document.py | Lines: 22-32

    logging testing configuration setup file-output
  • function test_extraction_methods

    A test function that compares two PDF text extraction methods (regular llmsherpa and OCR-based Tesseract) on a specific purchase order document from FileCloud, checking for vendor name detection.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_extraction_methods.py | Lines: 14-134

    testing pdf-extraction ocr document-processing text-extraction
  • function test_document_processor

    A test function that validates the DocumentProcessor component's ability to extract text from PDF files with improved error handling and llmsherpa integration.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_improved_processor.py | Lines: 16-67

    testing document-processing pdf-extraction text-extraction integration-test