1 viewer
rust 1,854,395 · typescript 233,161 · javascript 131,995 · python 19,227 · 6,379 files · digest 17dcda71e44b · built in 1.5 s · crystals off
crates/cre8-app-agent/src/alignment.rs
Items
trait ProfileLookup struct InMemoryProfileLookup impl InMemoryProfileLookup impl ProfileLookup for InMemoryProfileLookup struct FindAlignedPeersTool impl FindAlignedPeersTool struct FindArgs struct AlignmentMatch impl Tool for FindAlignedPeersTool struct MeritTool impl MeritTool struct AgentMerit impl Tool for MeritTool struct EmptyMeritSource impl MeritDataSource for EmptyMeritSource
Functions
By call-graph weight (PageRank; 1.0 is the average function). 37 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| InMemoryProfileLookup::newsrc/alignment.rs:52 | method | 3 | 1 | 19 | 0 | 3 | |
| freshsrc/alignment.rs:357 | fn | 21 | 1 | 11 | 6 | 2 | |
| FindAlignedPeersTool::newsrc/alignment.rs:103 | method | 3 | 1 | 8 | 0 | 1.6 | |
| profile_with_entrysrc/alignment.rs:381 | fn | 15 | 1 | 6 | 0 | 1.3 | |
| MeritTool::newsrc/alignment.rs:234 | method | 3 | 1 | 3 | 0 | 1 | |
| agent_alignment_toolssrc/alignment.rs:333 | fn | 11 | 2 | 4 | 4 | 1 | |
| FindAlignedPeersTool::namesrc/alignment.rs:138 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| MeritTool::namesrc/alignment.rs:267 | trait impl | 3 | 1 | 1 | 0 | 0.9 | |
| MeritTool::with_sourcesrc/alignment.rs:241 | method | 3 | 1 | 2 | 0 | 0.8 | |
| rep_ofsrc/alignment.rs:91 | fn | 3 | 1 | 2 | 1 | 0.7 | |
| default_min_similaritysrc/alignment.rs:121 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| default_limitsrc/alignment.rs:125 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| InMemoryProfileLookup::insertsrc/alignment.rs:56 | method | 3 | 1 | 0 | 0 | 0.5 | |
| InMemoryProfileLookup::lookupsrc/alignment.rs:62 | trait impl | 4 | 1 | 0 | 1 | 0.5 | |
| InMemoryProfileLookup::peer_universesrc/alignment.rs:67 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| lookup_returns_seeded_and_empty_profilessrc/alignment.rs:78 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| FindAlignedPeersTool::specsrc/alignment.rs:142 | trait impl | 30 | 1 | 0 | 1 | 0.5 | |
| FindAlignedPeersTool::executesrc/alignment.rs:173 | trait impl | 48 | 5 | 0 | 4 | 0.5 | |
| MeritTool::specsrc/alignment.rs:271 | trait impl | 18 | 1 | 0 | 1 | 0.5 | |
| MeritTool::executesrc/alignment.rs:290 | trait impl | 35 | 2 | 0 | 5 | 0.5 | |
| EmptyMeritSource::rep_historysrc/alignment.rs:400 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmptyMeritSource::ballot_responsessrc/alignment.rs:404 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmptyMeritSource::payout_outcomessrc/alignment.rs:408 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmptyMeritSource::offers_tosrc/alignment.rs:412 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| EmptyMeritSource::agent_receiptssrc/alignment.rs:416 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| profile_lookup_returns_empty_profile_for_unknown_peersrc/alignment.rs:422 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| alignment_tool_specs_are_named_and_describe_inputssrc/alignment.rs:432 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| find_aligned_returns_peers_above_thresholdsrc/alignment.rs:448 | fn | 15 | 1 | 0 | 3 | 0.5 | |
| find_aligned_filters_by_min_repsrc/alignment.rs:465 | fn | 13 | 1 | 0 | 4 | 0.5 | |
| find_aligned_excludes_selfsrc/alignment.rs:480 | fn | 9 | 1 | 0 | 3 | 0.5 | |
| find_aligned_sorts_by_similarity_then_repsrc/alignment.rs:491 | fn | 42 | 1 | 0 | 3 | 0.5 | |
| find_aligned_respects_limitsrc/alignment.rs:535 | fn | 11 | 2 | 0 | 3 | 0.5 | |
| find_aligned_defaults_invalid_arguments_and_tie_breaks_by_repsrc/alignment.rs:548 | fn | 17 | 1 | 0 | 4 | 0.5 | |
| merit_returns_rep_and_profile_fieldssrc/alignment.rs:569 | fn | 18 | 1 | 0 | 3 | 0.5 | |
| merit_with_source_uses_full_merit_walker_pathsrc/alignment.rs:589 | fn | 8 | 1 | 0 | 3 | 0.5 | |
| agent_alignment_tools_returns_two_toolssrc/alignment.rs:601 | fn | 8 | 1 | 0 | 2 | 0.5 | |
| agent_alignment_tools_can_wire_merit_sourcesrc/alignment.rs:611 | fn | 8 | 1 | 0 | 3 | 0.5 |
Source not readable from this process.