🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function parse_arguments

    Parses command-line arguments for a contract validity analysis tool that processes FileCloud documents with configurable options for paths, concurrency, output, and file filtering.

    File: /tf/active/vicechatdev/contract_validity_analyzer/main.py | Lines: 20-85

    cli argument-parsing command-line argparse configuration
  • function parse_arguments_v1

    Parses command-line arguments for a legal contract extraction tool that processes documents from FileCloud storage.

    File: /tf/active/vicechatdev/contract_validity_analyzer/extractor.py | Lines: 694-744

    cli command-line argument-parsing argparse configuration
  • function explore_documents

    Explores and tests document accessibility across multiple FileCloud directory paths, attempting to download and validate document content from various locations in a hierarchical search pattern.

    File: /tf/active/vicechatdev/contract_validity_analyzer/explore_documents.py | Lines: 16-115

    filecloud document-exploration diagnostic file-search pdf-validation
  • function test_end_date_extraction

    Tests end date extraction functionality for contract documents that previously had missing end dates by downloading documents from FileCloud, extracting text, analyzing with LLM, and comparing results.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_missing_end_dates.py | Lines: 47-229

    testing integration-test contract-analysis end-date-extraction document-processing
  • function setup_test_logging_v2

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

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_missing_end_dates.py | Lines: 35-45

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

    A diagnostic function that downloads a PDF document from FileCloud, analyzes its content to verify it's a valid PDF, and tests text extraction capabilities.

    File: /tf/active/vicechatdev/contract_validity_analyzer/debug_download.py | Lines: 16-119

    debugging diagnostics filecloud pdf download
  • 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
  • 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