Skip to content
1 viewer

rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off

cre8-app-attention-model attention cargo crate

Shared Attention types — AttentionRecord + related. Lifted from the old root attention model.

crates/cre8-app-attention-model · level 4 · 450 lines (344 code) · 1 files · 27 fns (10 tests) · cyclomatic Σ 41

3workspace deps
5direct dependents
44transitive dependents
5calls out
2calls in
24.2call-graph weight
0.0%exact crystals

Neighbourhood

Left: crates that declare this one. Right: crates it declares (dev-dependencies included). Edge width grows with resolved calls.

normal dep · 1 calls · source referencenormal dep · 0 calls · source referencenormal dep · 0 calls · source referencenormal dep · 1 calls · source referencenormal dep · 1 calls · source referencenormal dep · 3 calls · source referencenormal dep · 0 calls · source referencenormal dep · 1 calls · source referenceapp-attention-modelL4 · 344 linescre8-app-attention-modelapp-adL12 · 6,401 linescre8-app-adapp-analyticsL12 · 1,441 linescre8-app-analyticsapp-attentionL11 · 6,383 linescre8-app-attentionplatform-entropyL3 · 59 linescre8-platform-entropyplatform-timeL3 · 65 linescre8-platform-timeutil-cryptoL3 · 749 linescre8-util-cryptoapp-paymentL12 · 10,538 linescre8-app-paymentapp-virtual_agentL25 · 21,761 linescre8-app-virtual_agent

Files

lowhigh

Heaviest functions

By call-graph weight (PageRank; 1.0 is the average function). 27 functions in all.

functionkindlinescyclomaticcallerscalleesweightcrystal
cleansrc/lib.rs:158fn31302.2
AttentionRecord::normalizesrc/lib.rs:62method111851.9
raw_recordsrc/lib.rs:206fn191801.9
attention_unitssrc/lib.rs:136fn82301.3
slug_charsrc/lib.rs:185fn113101.2
inferred_started_atsrc/lib.rs:109fn42101.2
attention_idsrc/lib.rs:114fn51121.2
attention_asset_event_idsrc/lib.rs:120fn41110.9
push_slug_charsrc/lib.rs:179fn52110.8
slug_or_defaultsrc/lib.rs:197fn42100.8
clean_orsrc/lib.rs:162fn42110.8
slugsrc/lib.rs:167fn113120.8
AttentionRecord::normalize_text_fieldssrc/lib.rs:74method81120.8
AttentionRecord::normalize_collectionssrc/lib.rs:83method62110.8
AttentionRecord::normalize_timessrc/lib.rs:90method114110.8
AttentionRecord::ensure_idsrc/lib.rs:102method52110.8
attention_asset_idsrc/lib.rs:125fn101220.8
attention_asset_policysrc/lib.rs:145fn121100.6
attention_record_normalize_fills_defaults_and_clamps_intensitysrc/lib.rs:227fn271020.5
attention_record_normalize_backfills_started_at_from_durationsrc/lib.rs:256fn121020.5
attention_record_normalize_preserves_existing_started_atsrc/lib.rs:270fn111020.5
attention_record_serde_round_tripsrc/lib.rs:283fn301020.5
attention_units_scales_with_duration_and_intensitysrc/lib.rs:315fn301030.5
attention_asset_id_is_deterministic_and_namespacedsrc/lib.rs:347fn181030.5
attention_asset_id_slug_falls_back_for_punctuation_only_valuessrc/lib.rs:367fn141030.5
attention_asset_event_id_is_deterministicsrc/lib.rs:383fn91010.5
attention_asset_policy_captures_record_contextsrc/lib.rs:394fn201030.5

Outside the workspace

serde serde_json