🔍 Code Extractor

Browse Components

Showing 20 of 1484 components

  • function run_command

    Executes a shell command with error handling and provides formatted console output with status indicators (emoji-based feedback).

    File: /tf/active/vicechatdev/email-forwarder/setup_venv.py | Lines: 13-25

    shell subprocess command-execution error-handling automation
  • function start_service

    Orchestrates the startup sequence for an email forwarder service by validating environment, dependencies, configuration, and project structure before launching the main application.

    File: /tf/active/vicechatdev/email-forwarder/run_service.py | Lines: 54-114

    service-startup email-forwarder validation dependency-check configuration
  • function check_configuration_v1

    Validates the presence of a .env configuration file and checks that all required environment variables (TENANT_ID, CLIENT_ID, CLIENT_SECRET, FROM_EMAIL) are defined.

    File: /tf/active/vicechatdev/email-forwarder/run_service.py | Lines: 35-52

    configuration validation environment-variables dotenv setup
  • function check_dependencies_v1

    Validates the presence of required Python packages by attempting to import them and returns a list of any missing dependencies.

    File: /tf/active/vicechatdev/email-forwarder/run_service.py | Lines: 17-33

    dependency-check validation package-management installation prerequisites
  • function check_virtual_env

    Detects whether the Python interpreter is running inside a virtual environment by checking system attributes.

    File: /tf/active/vicechatdev/email-forwarder/run_service.py | Lines: 13-15

    virtual-environment environment-detection venv virtualenv system-check
  • function test_smtp_basic

    Tests basic SMTP server connectivity by attempting to establish a connection to a local SMTP server on port 2525 and performing an EHLO handshake.

    File: /tf/active/vicechatdev/email-forwarder/service_status.py | Lines: 34-42

    smtp testing network connectivity email
  • function check_port_listening

    Checks if TCP port 2525 on localhost (127.0.0.1) is actively listening and accepting connections.

    File: /tf/active/vicechatdev/email-forwarder/service_status.py | Lines: 23-32

    network port-checking socket health-check smtp
  • function check_service_process

    Checks if a specific Python process (email forwarder service running 'python src/main.py') is currently active on the system by parsing the output of the 'ps aux' command.

    File: /tf/active/vicechatdev/email-forwarder/service_status.py | Lines: 11-21

    process-monitoring service-check system-administration health-check subprocess
  • function get_database_statistics

    Retrieves statistical information about a Neo4j graph database, including counts of nodes grouped by label and counts of relationships grouped by type.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2294-2314

    neo4j graph-database statistics database-monitoring cypher-query
  • function complex_query_example

    Executes a Neo4j Cypher query to find relationships between LIMS_Parameters nodes where either the source or target node name contains a specified search term.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2283-2291

    neo4j graph-database cypher-query lims database-search
  • function create_references_tnv_relationship

    Creates a REFERENCES_TNV relationship in a Neo4j graph database between a dbo_Treatments node and a dbo_TNV node, with optional properties on the relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2258-2278

    neo4j graph-database relationship-creation cypher-query database
  • function get_dbo_treatments_with_references_tnv_dbo_tnv

    Queries a Neo4j graph database to retrieve dbo_TNV nodes that are connected to a specific dbo_Treatments node through a REFERENCES_TNV relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2249-2256

    neo4j graph-database cypher-query database-query graph-traversal
  • function create_references_product_relationship

    Creates a REFERENCES_PRODUCT relationship in a Neo4j graph database between a dbo_Treatments node and a dbo_Product node, with optional properties on the relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2226-2246

    neo4j graph-database relationship-creation cypher-query database
  • function get_dbo_treatments_with_references_product_dbo_product

    Retrieves dbo_Product nodes from a Neo4j graph database that are connected to a specific dbo_Treatments node via a REFERENCES_PRODUCT relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2217-2224

    neo4j graph-database cypher-query database-query relationship-traversal
  • function create_references_houses_relationship_v3

    Creates a REFERENCES_HOUSES relationship in a Neo4j graph database between a dbo_Treatments node (source) and a dbo_Houses node (target), with optional properties on the relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2194-2214

    neo4j graph-database relationship-creation cypher-query database-operations
  • function get_dbo_treatments_with_references_houses_dbo_houses

    Retrieves dbo_Houses nodes from a Neo4j graph database that are connected to a specific dbo_Treatments node via a REFERENCES_HOUSES relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2185-2192

    neo4j graph-database cypher-query relationship-traversal database-query
  • function create_references_flocks_relationship_v2

    Creates a REFERENCES_FLOCKS relationship in a Neo4j graph database between a dbo_Treatments node (source) and a dbo_Flocks node (target), with optional properties on the relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2162-2182

    neo4j graph-database relationship-creation cypher-query database-management
  • function get_dbo_treatments_with_references_flocks_dbo_flocks

    Retrieves dbo_Flocks nodes from a Neo4j graph database that are connected to a specific dbo_Treatments node via a REFERENCES_FLOCKS relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2153-2160

    neo4j graph-database cypher-query database-query relationship-traversal
  • function create_references_establishment_relationship_v6

    Creates a REFERENCES_ESTABLISHMENT relationship in a Neo4j graph database between a dbo_Treatments node (source) and a dbo_Establishment node (target), with optional properties on the relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2130-2150

    neo4j graph-database relationship-creation cypher-query healthcare-data
  • function get_dbo_treatments_with_references_establishment_dbo_establishment

    Queries a Neo4j graph database to retrieve dbo_Establishment nodes that are connected to a specific dbo_Treatments node through a REFERENCES_ESTABLISHMENT relationship.

    File: /tf/active/vicechatdev/neo4j_schema/neo4j_python_snippets.py | Lines: 2121-2128

    neo4j graph-database cypher-query relationship-traversal healthcare