INNER CODE UNIT · Python
occurrence_count
WMAL/kodachios · Kodachi-OS-10-stable/open/dock/lib/kodachi_direct.py:504
occurrence_count = sum(
len(operation["occurrences"]) for operation in self.operations.values())
denominators = self.document["actionableControlDenominators"]
if (command_window.get("uniqueRegistryOperations") != len(self.operations)
or command_window.get("registryReferenceOccurrences")
!= occurrence_count
or reference_count != occurrence_count
or command_window.get("actionableRows")
!= denominators["commandWindowRows"]):
raise DirectContractError(
"the generated command-window census differs from its inventory")
def operation(self, key):
identity = tuple(key or ())
operation = self.operations.get(identity)
if operation is None:
shown = " / ".join(identity) if identity else "<missing identity>"
raise DirectContractError(