🔍 Code Extractor

Browse Components

Showing 20 of 1716 components

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

    A class that handles Azure Active Directory (Azure AD) Single Sign-On (SSO) authentication using OAuth 2.0 authorization code flow.

    File: /tf/active/vicechatdev/docchat/auth/azure_auth.py | Lines: 18-119

    azure authentication sso oauth2 azure-ad
  • class GPT5Validator

    A comprehensive testing and validation class for OpenAI GPT models, with special support for GPT-5 family models using the Responses API.

    File: /tf/active/vicechatdev/docchat/test_gpt5_readiness.py | Lines: 32-255

    testing validation openai gpt-5 api-testing
  • function integrate_docchat

    One-line integration function that configures and registers the DocChat component into a Flask application, handling dependency checking, configuration, and blueprint registration.

    File: /tf/active/vicechatdev/docchat/integration.py | Lines: 187-229

    flask integration setup configuration blueprint
  • function get_integration_status

    Retrieves the integration status of the DocChat blueprint within a Flask application, including registration status, configuration details, and dependency checks.

    File: /tf/active/vicechatdev/docchat/integration.py | Lines: 156-183

    flask blueprint integration status-check diagnostics
  • function configure_docchat

    Configures DocChat module settings by overriding default configuration values from a Flask application instance and optional keyword arguments.

    File: /tf/active/vicechatdev/docchat/integration.py | Lines: 108-153

    configuration flask setup chromadb openai
  • function check_dependencies

    Validates the installation status of all required Python packages for the DocChat application by attempting to import each dependency and logging the results.

    File: /tf/active/vicechatdev/docchat/integration.py | Lines: 62-105

    dependency-check validation installation package-management flask