🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • class Tasklist

    A class for tracking and managing the status of study tasks through a Neo4j graph database, monitoring progress through a predefined sequence of workflow steps.

    File: /tf/active/vicechatdev/resources/taskmanager.py | Lines: 33-90

    workflow-management task-tracking neo4j graph-database status-monitoring
  • class Study_overview

    A class that generates comprehensive study overview reports by querying a Neo4j graph database and producing Excel files with ID mappings, audit logs, and Gantt chart visualizations of study progress.

    File: /tf/active/vicechatdev/resources/documents.py | Lines: 150-223

    neo4j graph-database study-management laboratory reporting
  • class Delivery_documents

    A class that generates delivery documentation (slip and label) as Word documents by querying a Neo4j database for study and customer information and populating predefined templates.

    File: /tf/active/vicechatdev/resources/documents.py | Lines: 15-147

    document-generation neo4j database word-documents delivery
  • class Sharepoint_API

    A SharePoint API client class that provides methods for interacting with SharePoint sites, including folder navigation, file operations, and content management using Office365 REST API.

    File: /tf/active/vicechatdev/resources/cpathapi.py | Lines: 7-175

    sharepoint office365 file-management cloud-storage document-library
  • function generate_failure_report

    Analyzes processing results from a JSON file, generates a comprehensive failure report with statistics and error categorization, and exports detailed failure information to a CSV file.

    File: /tf/active/vicechatdev/mailsearch/generate_failure_report.py | Lines: 11-134

    reporting error-analysis document-processing failure-analysis csv-export
  • function download_attachments_for_message

    Downloads file attachments from a Microsoft Graph API email message to a specified local directory, handling duplicate filenames automatically.

    File: /tf/active/vicechatdev/mailsearch/example_script.py | Lines: 105-141

    microsoft-graph email attachments download file-handling
  • function search_messages

    Searches Microsoft Graph API for email messages from a specific sender containing a keyword, with automatic pagination handling.

    File: /tf/active/vicechatdev/mailsearch/example_script.py | Lines: 55-102

    microsoft-graph email-search outlook api-integration pagination
  • function ensure_download_dir

    Creates a directory at the specified path, including any necessary parent directories, without raising an error if the directory already exists.

    File: /tf/active/vicechatdev/mailsearch/example_script.py | Lines: 51-52

    filesystem directory utility file-management path-creation
  • function get_access_token

    Obtains an OAuth access token using MSAL (Microsoft Authentication Library) by first attempting to retrieve a cached token, then falling back to device code flow authentication if needed.

    File: /tf/active/vicechatdev/mailsearch/example_script.py | Lines: 27-48

    authentication oauth msal microsoft azure-ad
  • function get_msal_app

    Creates and returns a Microsoft Authentication Library (MSAL) PublicClientApplication instance configured for Azure AD authentication with the specified client and tenant IDs.

    File: /tf/active/vicechatdev/mailsearch/example_script.py | Lines: 22-24

    authentication azure microsoft msal oauth2
  • function print_summary

    Prints a formatted summary report of document comparison results, including presence status, match quality statistics, and examples of absent and modified documents.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 355-409

    reporting summary statistics document-comparison console-output
  • function print_summary_v1

    Prints a comprehensive summary report of document comparison results, including status breakdowns, signature analysis, match quality metrics, and examples from each category.

    File: /tf/active/vicechatdev/mailsearch/enhanced_document_comparison.py | Lines: 379-445

    reporting statistics document-comparison summary console-output
  • function save_results

    Saves comparison results data to both CSV and JSON file formats with predefined field structure and UTF-8 encoding.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 324-352

    file-io csv json data-export persistence
  • function save_results_v1

    Saves a list of dictionary results to both CSV and JSON file formats with UTF-8 encoding.

    File: /tf/active/vicechatdev/mailsearch/enhanced_document_comparison.py | Lines: 365-376

    file-io data-export csv json serialization
  • function compare_documents

    Compares documents from an output folder with documents in a wuxi2 repository by matching document codes, file hashes, sizes, and filenames to identify identical, similar, or missing documents.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 208-321

    document-comparison file-matching hash-comparison fuzzy-matching duplicate-detection
  • function compare_documents_v1

    Compares two sets of PDF documents by matching document codes, detecting signatures, calculating content similarity, and generating detailed comparison results with signature information.

    File: /tf/active/vicechatdev/mailsearch/enhanced_document_comparison.py | Lines: 280-362

    document-comparison pdf-processing signature-detection file-matching content-similarity
  • function fuzzy_match_filename

    Calculates a fuzzy match similarity score between two filenames by comparing them after normalization, using exact matching, substring containment, and word overlap techniques.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 165-205

    string-matching fuzzy-matching filename-comparison similarity-score text-processing
  • function scan_wuxi2_folder

    Recursively scans a wuxi2 folder for PDF documents, extracts document codes from filenames, and organizes them into a dictionary mapping codes to file information.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 119-162

    file-scanning directory-traversal pdf-processing document-indexing code-extraction
  • function scan_wuxi2_folder_v1

    Recursively scans a directory for PDF files, extracts document codes from filenames, and returns a dictionary mapping each unique document code to a list of file metadata dictionaries.

    File: /tf/active/vicechatdev/mailsearch/enhanced_document_comparison.py | Lines: 188-222

    file-scanning pdf-processing document-management file-inventory metadata-extraction
  • function scan_output_folder

    Scans a specified output folder for PDF files containing document codes, extracts those codes, and returns a dictionary mapping each code to its associated file information.

    File: /tf/active/vicechatdev/mailsearch/compare_documents.py | Lines: 87-116

    file-scanning document-management pdf-processing directory-traversal code-extraction