parameters: (name: str, which: str, index: int)
return_statement: return Context(id=f"{_DOMAIN_SHORT}_{name_hash}_{which}_{index}")
docstring: Create a context that can identify this integration.
docstring_summary: Create a context that can identify this integration.
docstring_tokens: Create a context that can identify this integration .
function: def create_context(name: str, which: str, index: int) -> Context:
      """Create a context that can identify this integration."""
      # Use a hash for the name because otherwise the context might become
      # too long (max len == 36) to fit in the database.
      name_hash = _short_hash(name)
      return Context(id=f"{_DOMAIN_SHORT}_{name_hash}_{which}_{index}")
function_tokens: def create_context ( name : str , which : str , index : int ) -> Context : # Use a hash for the name because otherwise the context might become # too long (max len == 36) to fit in the database. name_hash = _short_hash ( name ) return Context ( id = f"{_DOMAIN_SHORT}_{name_hash}_{which}_{index}" )