🔍 Code Extractor

Search Components

Full-Text: Fast keyword matching | Semantic: AI-powered understanding of intent (finds similar concepts)

Search Results for "mock"

Found 18 matching component(s)

  • 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

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

    Generates a synthetic signature image for a given name, either as stylized text or as a random hand-drawn curve, and saves it as a PNG file with transparent background.

    File: /tf/active/vicechatdev/document_auditor/generate_sample_signatures.py

    image-generation signature PIL graphics document-generation
  • function login_v1

    Flask route handler that manages user authentication by redirecting authenticated users to the index page, initiating Azure SSO login for production, or creating a development session for local testing.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    authentication login azure-sso flask-route session-management
  • function init_text_section_chat

    Flask API endpoint that initializes a chat session for a standalone text section, creating a mock chat session object for frontend compatibility after verifying user ownership.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint chat initialization authentication
  • function create_sample_data

    Flask API endpoint that creates sample data for testing purposes by invoking the LegacySystemMigrator's create_sample_data method and returns the generated data as JSON.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint testing sample-data database-setup
  • function create_test_dataset

    Creates a test CSV dataset with sample product sales data across different regions and months, saving it to a temporary file.

    File: /tf/active/vicechatdev/vice_ai/test_integration.py

    testing test-data csv dataset-generation synthetic-data
  • function get_system_stats

    Retrieves comprehensive system statistics from a Neo4j graph database for display on an admin dashboard, including user counts, document counts, review cycles, and approval metrics.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py

    admin dashboard statistics metrics neo4j
  • class EnhancedSQLWorkflow

    Enhanced SQL workflow with iterative optimization

    File: /tf/active/vicechatdev/full_smartstat/enhanced_sql_workflow.py

    class enhancedsqlworkflow
  • function create_sample_data_v1

    Generates a synthetic dataset with 200 samples containing group-based measurements, quality scores, environmental data, and temporal information, then saves it to a CSV file.

    File: /tf/active/vicechatdev/full_smartstat/demo.py

    data-generation synthetic-data sample-data testing demonstration
  • function test_connection_string

    Tests the format and creation of a SQL Server connection string using SQLAlchemy with ODBC Driver 18, without establishing an actual database connection.

    File: /tf/active/vicechatdev/full_smartstat/test_odbc.py

    database sql-server connection-string testing validation
  • function test_llm_connectivity

    Tests the connectivity and functionality of an OpenAI LLM integration by analyzing a mock email with vendor information extraction.

    File: /tf/active/vicechatdev/find_email/test_vendor_extractor.py

    testing llm openai connectivity diagnostic
  • class TestSmtpServer

    A test class for validating the functionality of the SmtpServer class, including server startup, email handling, email forwarding, and error handling for invalid inputs.

    File: /tf/active/vicechatdev/email-forwarder/tests/test_smtp_server.py

    testing unit-test smtp email mock
  • class TestEmailHandler

    A unit test class that validates the functionality of the EmailHandler class, specifically testing email forwarding success and failure scenarios using mocked O365Client dependencies.

    File: /tf/active/vicechatdev/email-forwarder/tests/test_email_handler.py

    unit-testing email mocking test-case email-forwarding
  • class MockLLMClient

    A mock implementation of an LLM client designed for testing extractor components without making actual API calls to language models.

    File: /tf/active/vicechatdev/invoice_extraction/tests/test_extractors.py

    testing mock llm unit-test test-double
  • class TestUKExtractor

    Unit test class for testing the UKExtractor class, which extracts structured data from UK invoices including VAT numbers, dates, amounts, and line items.

    File: /tf/active/vicechatdev/invoice_extraction/tests/test_extractors.py

    unit-test invoice-extraction uk-invoices vat-validation date-parsing
  • class TestBEExtractor

    Unit test class for testing the BEExtractor class, which extracts structured data from Belgian invoices using LLM-based extraction.

    File: /tf/active/vicechatdev/invoice_extraction/tests/test_extractors.py

    unit-testing invoice-extraction belgian-invoices llm-testing data-extraction
  • class TestAUExtractor

    Unit test class for testing the AUExtractor class, which extracts data from Australian invoices including ABN, GST, and payment details.

    File: /tf/active/vicechatdev/invoice_extraction/tests/test_extractors.py

    unit-test invoice-extraction australian-invoices ABN-formatting GST-handling
  • class TestLLMClient

    Unit test class for testing the LLMClient class, which provides comprehensive test coverage for initialization, text generation, structured data extraction, and error handling across multiple LLM providers (OpenAI, Anthropic, Azure, local).

    File: /tf/active/vicechatdev/invoice_extraction/tests/test_utils.py

    testing unit-test llm openai anthropic

Search Examples