1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-tv/src/viewer_voices.rs
Items
const MAX_TEXT_CHARS const MAX_USER_CHARS const DEFAULT_CAP struct ViewerVoice struct VoiceBuffer impl Default for VoiceBuffer impl VoiceBuffer static STREAM_VOICES
Functions
By call-graph weight (PageRank; 1.0 is the average function). 37 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| sanitize_viewer_chatsrc/viewer_voices.rs:48 | fn | 3 | 1 | 10 | 2 | 4 | |
| sanitize_onesrc/viewer_voices.rs:52 | fn | 13 | 3 | 1 | 3 | 2.2 | |
| message_topicsrc/viewer_voices.rs:66 | fn | 3 | 1 | 1 | 0 | 2.2 | |
| chatsrc/viewer_voices.rs:280 | fn | 8 | 1 | 7 | 0 | 2 | |
| stream_voicessrc/viewer_voices.rs:248 | fn | 3 | 1 | 1 | 0 | 1.8 | |
| VoiceBuffer::with_capacitysrc/viewer_voices.rs:162 | method | 3 | 1 | 2 | 0 | 1.7 | |
| lock_stream_voicessrc/viewer_voices.rs:252 | fn | 6 | 2 | 2 | 1 | 1.5 | |
| collapse_whitespacesrc/viewer_voices.rs:128 | fn | 16 | 5 | 1 | 0 | 1.4 | |
| VoiceBuffer::ingestsrc/viewer_voices.rs:172 | method | 23 | 5 | 5 | 1 | 1.4 | |
| VoiceBuffer::defaultsrc/viewer_voices.rs:155 | trait impl | 3 | 1 | 4 | 1 | 1.1 | |
| message_textsrc/viewer_voices.rs:73 | fn | 9 | 1 | 1 | 0 | 1.1 | |
| message_usersrc/viewer_voices.rs:85 | fn | 13 | 1 | 1 | 0 | 1.1 | |
| scrubsrc/viewer_voices.rs:116 | fn | 10 | 3 | 1 | 1 | 1.1 | |
| VoiceBuffer::prompt_blocksrc/viewer_voices.rs:220 | method | 10 | 2 | 3 | 0 | 1.1 | |
| room_messages_inputsrc/viewer_voices.rs:234 | fn | 3 | 1 | 1 | 0 | 0.9 | |
| clear_streamsrc/viewer_voices.rs:271 | fn | 3 | 1 | 2 | 1 | 0.9 | |
| ingest_for_streamsrc/viewer_voices.rs:262 | fn | 6 | 1 | 2 | 3 | 0.8 | |
| VoiceBuffer::last_revisionsrc/viewer_voices.rs:212 | method | 3 | 1 | 2 | 0 | 0.8 | |
| VoiceBuffer::snapshotsrc/viewer_voices.rs:197 | method | 3 | 1 | 0 | 0 | 0.5 | |
| VoiceBuffer::lensrc/viewer_voices.rs:202 | method | 3 | 1 | 0 | 0 | 0.5 | |
| VoiceBuffer::is_emptysrc/viewer_voices.rs:207 | method | 3 | 1 | 0 | 0 | 0.5 | |
| newline_injection_is_flattened_to_a_single_linesrc/viewer_voices.rs:290 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| role_markers_braces_and_backticks_are_strippedsrc/viewer_voices.rs:301 | fn | 10 | 2 | 0 | 2 | 0.5 | |
| non_whitespace_control_characters_are_droppedsrc/viewer_voices.rs:313 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| whitespace_control_characters_become_a_single_spacesrc/viewer_voices.rs:322 | fn | 7 | 1 | 0 | 2 | 0.5 | |
| oversize_text_is_truncated_on_a_char_boundary_multibyte_safesrc/viewer_voices.rs:331 | fn | 9 | 1 | 0 | 2 | 0.5 | |
| user_is_truncated_and_falls_back_to_viewersrc/viewer_voices.rs:342 | fn | 16 | 1 | 0 | 2 | 0.5 | |
| user_falls_back_to_peer_id_when_payload_user_absentsrc/viewer_voices.rs:360 | fn | 10 | 1 | 0 | 1 | 0.5 | |
| wrapped_envelope_text_path_is_readsrc/viewer_voices.rs:372 | fn | 12 | 1 | 0 | 1 | 0.5 | |
| reactions_and_other_topics_are_excludedsrc/viewer_voices.rs:386 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| revision_gating_makes_re_ingest_a_no_opsrc/viewer_voices.rs:398 | fn | 15 | 1 | 0 | 3 | 0.5 | |
| dedup_skips_identical_user_text_already_bufferedsrc/viewer_voices.rs:415 | fn | 10 | 1 | 0 | 3 | 0.5 | |
| cap_evicts_oldest_firstsrc/viewer_voices.rs:427 | fn | 12 | 1 | 0 | 2 | 0.5 | |
| prompt_block_has_exact_framingsrc/viewer_voices.rs:441 | fn | 10 | 1 | 0 | 3 | 0.5 | |
| empty_buffer_prompt_block_is_just_the_fenced_disclaimersrc/viewer_voices.rs:453 | fn | 10 | 1 | 0 | 2 | 0.5 | |
| room_messages_input_builds_the_expected_requestsrc/viewer_voices.rs:465 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| stream_registry_persists_watermark_across_ingests_and_clearssrc/viewer_voices.rs:473 | fn | 25 | 1 | 0 | 2 | 0.5 |
Source not readable from this process.