🔍 Code Extractor

Search Components

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

Search Results for "utility"

Found 50 matching component(s)

  • function publish_document

    Publishes an approved controlled document by converting it to PDF with signatures and audit trail, uploading to FileCloud, and updating the document status to PUBLISHED.

    File: /tf/active/vicechatdev/document_controller_backup.py

    document-management publishing pdf-conversion audit-trail controlled-documents
  • function print_json

    A utility function that prints a Python dictionary as formatted JSON with 2-space indentation to standard output.

    File: /tf/active/vicechatdev/test_acl_functions.py

    json formatting printing output debugging
  • function msg_to_eml

    Converts Microsoft Outlook .msg files to standard .eml format, preserving email headers, body content (plain text and HTML), and attachments.

    File: /tf/active/vicechatdev/msg_to_eml.py

    email-conversion msg-to-eml outlook email-processing file-conversion
  • function ensure_dir_exists

    Creates a directory and all necessary parent directories if they don't already exist, with logging support.

    File: /tf/active/vicechatdev/msg_to_eml.py

    filesystem directory utility file-operations path-management
  • function allowed_file

    Validates whether a filename has an allowed file extension by checking if it contains a dot and if the extension (case-insensitive) exists in a predefined ALLOWED_EXTENSIONS collection.

    File: /tf/active/vicechatdev/leexi/app.py

    validation file-upload security flask file-extension
  • function tail_logs

    Reads and displays the last N lines from a specified log file, with error handling for missing files and read failures.

    File: /tf/active/vicechatdev/SPFCsync/monitor.py

    logging file-reading tail log-viewer debugging
  • function format_file_size_v1

    Converts a file size in bytes to a human-readable string format with appropriate units (B, KB, MB, GB, TB).

    File: /tf/active/vicechatdev/SPFCsync/test_upload_modalities.py

    file-size formatting utility human-readable bytes-conversion
  • function create_test_file_v1

    Creates a temporary test file with specified content and filename in a temporary directory.

    File: /tf/active/vicechatdev/SPFCsync/test_upload_modalities.py

    testing file-creation temporary-files test-utilities file-operations
  • function test_configuration

    A test function that validates configuration settings by importing and calling the Config.validate_config() method, printing the result and returning a boolean status.

    File: /tf/active/vicechatdev/SPFCsync/test_connections.py

    testing configuration validation setup diagnostics
  • 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

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

    Tests the SharePoint document listing functionality by connecting to a SharePoint site and retrieving all documents from a specified path.

    File: /tf/active/vicechatdev/SPFCsync/test_connections.py

    testing sharepoint integration-test document-listing azure
  • function main_v48

    Entry point function that runs a SharePoint permission diagnostic tool, testing different authentication scopes and providing troubleshooting guidance.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_permissions.py

    sharepoint diagnostic authentication troubleshooting app-only-tokens
  • function format_file_size

    Converts a file size in bytes to a human-readable string format with appropriate units (B, KB, MB, GB, TB).

    File: /tf/active/vicechatdev/SPFCsync/dry_run_test.py

    file-size formatting utility human-readable bytes-conversion
  • function format_datetime_v1

    Converts an ISO format datetime string into a human-readable UTC datetime string formatted as 'YYYY-MM-DD HH:MM:SS UTC'.

    File: /tf/active/vicechatdev/SPFCsync/dry_run_test.py

    datetime formatting string-manipulation ISO-format UTC
  • function test_folder_structure

    Tests SharePoint folder structure by listing root-level folders, displaying their contents, and providing a summary of total folders and documents.

    File: /tf/active/vicechatdev/SPFCsync/test_folder_structure.py

    sharepoint testing folder-structure document-management microsoft-graph
  • function get_adjusted_top_k

    Calculates an adjusted top_k value for multi-language search operations by multiplying the base value by the number of languages to ensure sufficient results per language.

    File: /tf/active/vicechatdev/docchat/config.py

    multi-language search top-k result-scaling internationalization
  • function main_v63

    A test harness function that validates the ability to open and process PowerPoint and Word document files, with fallback to LibreOffice conversion for problematic files.

    File: /tf/active/vicechatdev/docchat/test_problematic_files.py

    testing document-processing file-validation powerpoint word
  • function create_test_document

    Creates a text file at the specified path with the given content, primarily used for testing purposes.

    File: /tf/active/vicechatdev/docchat/test_incremental_indexing.py

    testing file-creation test-utilities file-io document-creation
  • function modify_test_document

    Modifies the content of a test document file by writing new content to it, with a built-in delay to ensure the file's modification time changes.

    File: /tf/active/vicechatdev/docchat/test_incremental_indexing.py

    testing file-operations file-modification test-utilities mtime
  • function register_docchat

    Registers a DocChat Flask blueprint with a Flask application instance, handling path configuration and error logging.

    File: /tf/active/vicechatdev/docchat/integration.py

    flask blueprint registration web-framework initialization
  • 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

    testing configuration validation diagnostics setup-verification
  • 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

    debugging diagnostics filecloud pdf download
  • function get_logger

    A wrapper function that retrieves a logger instance from Python's logging module with the specified name.

    File: /tf/active/vicechatdev/contract_validity_analyzer/utils/logging_utils.py

    logging logger wrapper utility debugging
  • function main_v31

    Generates sample signature images (PNG files) for a predefined list of names and saves them to a 'signatures' directory.

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

    signature-generation image-processing file-creation audit-system setup-utility
  • function main_v59

    Command-line interface function that orchestrates the cleaning of ChromaDB collections by removing duplicates and similar documents, with options to skip collections and customize the cleaning process.

    File: /tf/active/vicechatdev/chromadb-cleanup/main.py

    cli command-line chromadb database-cleaning deduplication
  • function main_v50

    Command-line interface function that orchestrates a ChromaDB collection cleaning pipeline by removing duplicate and similar documents through hashing and similarity screening.

    File: /tf/active/vicechatdev/chromadb-cleanup/main copy.py

    cli command-line data-cleaning deduplication chromadb
  • class BaseCleaner

    Abstract base class that defines the interface for document cleaning implementations, providing methods to remove redundancy from document collections and track cleaning statistics.

    File: /tf/active/vicechatdev/chromadb-cleanup/src/cleaners/base_cleaner.py

    abstract-base-class document-processing data-cleaning redundancy-removal statistics
  • function test_us_csv

    A unit test function that validates the smart_read_csv function's ability to correctly parse US-formatted CSV files with comma delimiters and point decimal separators.

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

    testing unit-test csv data-parsing us-format
  • function test_european_with_thousands

    A unit test function that validates the smart_read_csv function's ability to correctly parse European-formatted CSV files with thousand separators (dots) and decimal commas.

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

    testing unit-test csv-parsing european-format number-formatting
  • function test_us_with_thousands

    A unit test function that validates the smart_read_csv function's ability to correctly parse US-formatted CSV files containing numbers with thousand separators (commas) and decimal points.

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

    testing unit-test csv-parsing data-validation number-formatting
  • function test_tab_delimited_european

    A unit test function that validates the smart_read_csv function's ability to correctly parse tab-delimited CSV files containing European-style decimal numbers (using commas instead of periods).

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

    testing unit-test csv-parsing european-decimals tab-delimited
  • function clear_browser_cache_instructions

    A utility function that prints formatted instructions to the console for clearing browser cache across different web browsers and operating systems.

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

    browser cache instructions user-help web-development
  • function check_static_files

    Scans a 'static' directory for CSS and JavaScript files and prints their modification times relative to the current time.

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

    file-system diagnostics static-files monitoring development-tools
  • function touch_static_files

    Updates the modification timestamp of CSS and JavaScript files in a static directory to force browser cache refresh.

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

    cache-busting static-files file-system deployment development-tools
  • function print_help

    Displays help information for Vice AI Development Tools, listing available commands and usage examples.

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

    help documentation cli command-line user-interface
  • function debug_section_retrieval

    A debugging utility function that tests database section retrieval by querying a specific text section and printing detailed diagnostic information about the section and its chat session association.

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

    debugging database testing diagnostics section-retrieval
  • function ensure_directories

    Creates required directories for the application if they don't already exist, specifically DOCUMENTS_DIR and CHAT_SESSIONS_DIR.

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

    filesystem initialization setup directory-creation file-management
  • function get_cache_buster

    Returns a cache-busting string that varies based on the application mode: current timestamp in debug mode or a static version string in production mode.

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

    cache-busting web-development static-assets versioning flask
  • function clean_for_json_v1

    Recursively traverses nested data structures (dicts, lists) and replaces NaN and Infinity float values with None to ensure JSON serialization compatibility.

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

    json serialization data-cleaning nan-handling infinity-handling
  • function clean_html_tags_v1

    Removes all HTML tags from a given text string using regular expression pattern matching, returning clean text without markup.

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

    html text-processing sanitization regex string-manipulation
  • function main_v65

    A cleanup utility function that removes virtual environment directories from all SmartStat sessions while preserving project files, reporting disk space freed and cleanup statistics.

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

    cleanup maintenance disk-space virtual-environment venv
  • function create_test_file

    Creates a temporary text file with predefined multi-chapter test content for testing document extraction and processing functionality.

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

    testing file-creation temporary-file test-data document-processing
  • function load_data

    Loads a CSV dataset from a specified filepath using pandas, with fallback to creating sample data if the file is not found.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/5a059cb7-3903-4020-8519-14198d1f39c9/analysis_1.py

    data-loading csv pandas file-io error-handling
  • function export_results

    Exports correlation analysis results to multiple CSV files, including overall correlations, grouped correlations, and significant findings.

    File: /tf/active/vicechatdev/vice_ai/smartstat_scripts/5a059cb7-3903-4020-8519-14198d1f39c9/analysis_1.py

    data-export csv file-io correlation-analysis results-persistence
  • function get_document_type_name

    Looks up and returns the full document type name corresponding to a given document type code by searching through a DOCUMENT_TYPES dictionary.

    File: /tf/active/vicechatdev/CDocs/settings_prod.py

    lookup dictionary reverse-mapping document-types code-to-name
  • function get_document_type_code

    Retrieves a document type code from a dictionary lookup using the provided document type name, returning the name itself if no mapping exists.

    File: /tf/active/vicechatdev/CDocs/settings_prod.py

    lookup mapping document-type code-conversion dictionary-lookup
  • function get_department_name

    Looks up and returns the full department name corresponding to a given department code by searching through a DEPARTMENTS dictionary.

    File: /tf/active/vicechatdev/CDocs/settings_prod.py

    lookup dictionary mapping department reverse-lookup
  • function get_department_code

    Retrieves a department code by looking up a department's full name in a DEPARTMENTS dictionary, returning the original name if not found.

    File: /tf/active/vicechatdev/CDocs/settings_prod.py

    lookup dictionary mapping department code-conversion
  • function get_document_type

    Retrieves configuration details for a specific document type by looking it up in DOCUMENT_CONFIG or DOCUMENT_TYPES, returning a dictionary with document metadata or an empty dict if not found.

    File: /tf/active/vicechatdev/CDocs/settings_prod.py

    document-management configuration lookup metadata document-type
  • function get_document_status_name

    Retrieves the full document status name corresponding to a given status code by performing a reverse lookup in the DOCUMENT_STATUSES dictionary.

    File: /tf/active/vicechatdev/CDocs/settings_prod.py

    lookup mapping dictionary reverse-lookup status

Search Examples