🔍 Code Extractor

Browse Components

Showing 20 of 1641 components

  • function load_config

    Loads configuration settings from a file by instantiating and returning a Config object with the specified configuration file path.

    File: /tf/active/vicechatdev/contract_validity_analyzer/config/config.py | Lines: 120-130

    configuration config-loading file-io settings initialization
  • function load_config_v1

    Parses a .env file and loads key-value pairs into a dictionary, ignoring comments and handling errors gracefully.

    File: /tf/active/vicechatdev/SPFCsync/grant_sharepoint_access.py | Lines: 10-22

    configuration environment-variables file-parsing dotenv settings
  • function test_llm_extraction

    A test function that validates LLM-based contract data extraction by processing a sample contract and verifying the extracted fields against expected values.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_extractor.py | Lines: 67-161

    testing contract-extraction llm validation integration-test
  • function test_simulated_document

    Integration test function that validates end date extraction from a simulated contract document containing an explicit term clause, using a two-step LLM-based analysis process.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_simulated_document.py | Lines: 49-141

    testing integration-test contract-analysis date-extraction llm-client
  • function setup_test_logging_v4

    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_simulated_document.py | Lines: 37-47

    logging testing configuration setup file-output
  • function test_edge_cases

    Tests edge cases and variations in European tax ID formats by analyzing a sample contract document containing Swiss, Norwegian, Swedish, and Danish tax identifiers.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_international_tax_ids.py | Lines: 165-226

    testing tax-id-extraction european-formats contract-analysis llm-validation
  • function test_international_tax_ids

    A test function that validates an LLM client's ability to extract tax identification numbers and business registration numbers from a multi-party international contract document across 8 different countries.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_international_tax_ids.py | Lines: 18-163

    testing llm document-analysis tax-id-extraction international
  • function test_new_fields

    A test function that validates an LLM client's ability to extract third-party email addresses and tax identification numbers from contract documents.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_new_fields.py | Lines: 18-104

    testing llm contract-analysis email-extraction tax-id-extraction
  • function test_excel_output

    A test function that validates Excel output generation for contract analysis results, ensuring new fields (third_party_emails, third_party_tax_ids) are properly formatted and persisted.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_excel_output.py | Lines: 13-114

    testing unit-test excel data-validation contract-analysis
  • function test_ocr_retry_logic

    Tests the OCR retry logic for extracting contract end dates by first attempting normal text extraction, then falling back to OCR-based extraction if the end date is not found.

    File: /tf/active/vicechatdev/contract_validity_analyzer/test_ocr_retry.py | Lines: 34-146

    testing ocr document-processing pdf-extraction contract-analysis
  • function setup_test_logging_v3

    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_ocr_retry.py | Lines: 22-32

    logging testing configuration setup debugging
  • function main_v4

    Main entry point function for the Contract Validity Analyzer application that orchestrates configuration loading, logging setup, FileCloud connection, and contract analysis execution.

    File: /tf/active/vicechatdev/contract_validity_analyzer/main.py | Lines: 87-186

    entry-point main-function cli-application contract-analysis filecloud
  • 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 main_v3

    Command-line interface function that orchestrates pattern-based extraction of poultry flock data, including data loading, pattern classification, geocoding, and export functionality.

    File: /tf/active/vicechatdev/pattern_based_extraction.py | Lines: 505-622

    cli command-line-interface data-extraction poultry-data pattern-analysis
  • 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