MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / usage

Function usage

atomic-repository/src/workflow_usage.rs:648–656  ·  view source on GitHub ↗
(nodes: &'a [KgNode], id: &str)

Source from the content-addressed store, hash-verified

646 node
647 }
648 fn usage<'a>(nodes: &'a [KgNode], id: &str) -> &'a serde_json::Value {
649 &nodes
650 .iter()
651 .find(|node| node.id == id)
652 .unwrap()
653 .metadata
654 .as_ref()
655 .unwrap()["ai_usage"]
656 }
657
658 #[test]
659 fn intent_scopes_exclude_dependency_only_history_and_deduplicate_all_associations() {

Calls 3

as_refMethod · 0.80
unwrapMethod · 0.45
iterMethod · 0.45