Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codag-megalith/codag-drain
/ functions
Functions
240 in github.com/codag-megalith/codag-drain
⨍
Functions
240
◇
Types & classes
41
↓ 1 callers
Function
capture_slots
Capture the `<*>` slot raw strings for a line. Returns a vector of length `slot_count`; entries are None when the regex doesn't match. LibreLog comma
codag-drain/src/compress/profile.rs:183
↓ 1 callers
Function
char_kind
(c: char)
codag-drain/src/compress/lex.rs:22
↓ 1 callers
Function
clip
(template: &str, max: usize)
codag-drain/src/compress.rs:184
↓ 1 callers
Method
cluster_count
Number of live clusters.
drain3_rust/src/drain.rs:146
↓ 1 callers
Function
constant_time_eq
(a: &[u8], b: &[u8])
examples/server/src/routes.rs:112
↓ 1 callers
Function
delimited_tokens
(line: &str, masker: &LogMasker)
codag-drain/src/compress/grouper.rs:149
↓ 1 callers
Function
distinct_samples
Build distinct first-seen samples (cap N) and a distinct count for a slot.
codag-drain/src/compress/profile.rs:199
↓ 1 callers
Function
env_u64
(name: &str, default: u64)
examples/server/src/session.rs:59
↓ 1 callers
Method
extra_delimiters
Return a reference to the extra delimiters used for tokenization.
drain3_rust/src/drain.rs:160
↓ 1 callers
Function
fmt_slot
(slot: &SlotSummary)
codag-drain/src/compress.rs:162
↓ 1 callers
Function
generate_logs
Generate realistic-looking log lines with variation.
drain3_rust/src/bench.rs:14
↓ 1 callers
Function
generic_delimiters
()
codag-drain/src/compress/grouper.rs:137
↓ 1 callers
Method
get_clusters_ids_for_seq_len
Collect every cluster ID reachable under the subtree for a given token count.
drain3_rust/src/drain.rs:376
↓ 1 callers
Function
group_count_from_drain3
(contents: &[String])
codag-drain/tests/eval_loghub.rs:456
↓ 1 callers
Function
has_static_anchor
True if the template has at least one *static anchor* - a non-placeholder, non-punctuation, non-whitespace char. A template that is all placeholders /
codag-drain/src/compress/template.rs:241
↓ 1 callers
Function
idf_table
(tokenized: &[Vec<LexToken>])
codag-drain/src/compress/grouper.rs:301
↓ 1 callers
Function
is_level_tok
(tok: &str)
codag-drain/src/input.rs:28
↓ 1 callers
Function
lines_of
(msgs: &[&str])
codag-drain/src/compress/profile.rs:219
↓ 1 callers
Method
masker
Return a reference to the configured masker, if any.
drain3_rust/src/drain.rs:170
↓ 1 callers
Method
match_log
Read-only match against existing clusters (sim_th = 1.0, no mutations).
drain3_rust/src/drain.rs:105
↓ 1 callers
Method
merge
(cluster: &mut StatCluster, idx: usize, toks: &[LexToken])
codag-drain/src/compress/grouper.rs:396
↓ 1 callers
Function
parse_body
Parse a whole newline-delimited body into [`LogLine`]s, skipping blanks. In NDJSON mode, lines that fail to parse are skipped.
codag-drain/src/input.rs:116
↓ 1 callers
Function
parse_grouper
(s: Option<&str>)
examples/server/src/routes.rs:67
↓ 1 callers
Function
parse_prompt_log_list
Extract the Python-repr log list embedded in the LoRA prompt. This is a generic quoted-string scanner, not a log parser.
codag-drain/tests/eval_loghub.rs:118
↓ 1 callers
Function
regex_string_from_placeholder
Build the anchored regex *string* for a placeholder template, applying the LibreLog comma-strip. Returns `None` if it has no static anchor or fails to
codag-drain/src/compress/template.rs:251
↓ 1 callers
Method
score
( &self, cluster: &StatCluster, toks: &[LexToken], idf: &HashMap<String, f64>,
codag-drain/src/compress/grouper.rs:332
↓ 1 callers
Function
template_groups
Build a template result from precomputed groups. Used by [`TemplateIndex`] and tests that need exact control over grouping.
codag-drain/src/compress.rs:296
↓ 1 callers
Method
templates
(&self)
codag-drain/src/stream.rs:47
↓ 1 callers
Method
tokenize
Tokenize content using the same logic as [`Drain::get_content_as_tokens`].
drain3_rust/src/pipeline.rs:75
↓ 1 callers
Method
touch
Mark a cluster as recently used (LRU promotion only).
drain3_rust/src/storage.rs:55
↓ 1 callers
Function
trailing_alpha_unit
Trailing-alphabetic unit of a value (e.g. "ms" from "45ms", "MB" from "512MB"). Empty if the value does not end in letters or is purely alphabetic.
codag-drain/src/compress.rs:262
↓ 1 callers
Function
ttl_sweeper
Background task: drop sessions idle longer than [`SESSION_TTL`].
examples/server/src/main.rs:19
↓ 1 callers
Function
use_compact_lexing
(line: &str)
codag-drain/src/compress/grouper.rs:171
↓ 1 callers
Function
whitespace_tokens
(line: &str)
codag-drain/src/compress/profile.rs:176
Method
add_log_message
Preprocess and ingest a log message. Tokenization runs on the calling task; only the token vector is sent to the updater task for tree mutation.
drain3_rust/src/pipeline.rs:59
Function
adjacent_placeholder_collapse
()
codag-drain/src/compress/template.rs:311
Function
alpha_enum_values_are_slot_metadata
()
codag-drain/src/compress.rs:374
Function
anchored_regex_matches_members
()
codag-drain/src/compress/template.rs:327
Function
bench_scale
run with: cargo test --release bench_scale -- --nocapture --ignored
drain3_rust/src/bench.rs:112
Method
build
Build the profile. `groups` are emitted in ascending first-member-index order; `gid[i]` maps line `i` to its group index.
codag-drain/src/compress/profile.rs:78
Method
collect_recursive
(node: &Node, ids: &mut Vec<usize>)
drain3_rust/src/drain.rs:377
Function
compression_github_lora
()
codag-drain/tests/eval_loghub.rs:962
Function
compression_loghub
()
codag-drain/tests/eval_loghub.rs:836
Function
concurrency_overflow_returns_429
()
examples/server/tests/integration.rs:338
Method
default
()
codag-drain/src/compress.rs:74
Method
default
()
codag-drain/src/compress/grouper.rs:103
Method
default
()
drain3_rust/src/drain.rs:397
Method
default
()
drain3_rust/src/node.rs:23
Method
default
()
examples/server/src/session.rs:81
Function
derive_multi_ragged_falls_back_to_pair
()
codag-drain/src/compress/template.rs:366
Function
derive_multi_static_vs_vary
()
codag-drain/src/compress/template.rs:355
Function
derive_pair_static_vs_vary
()
codag-drain/src/compress/template.rs:317
Function
derive_template_preserves_punctuation
()
codag-drain/src/compress/lex.rs:169
Function
deterministic_render
()
codag-drain/src/compress.rs:441
Function
empty_input
()
codag-drain/src/compress.rs:432
Function
empty_templates
()
codag-drain/src/stream.rs:84
Method
extend
(&mut self, lines: I)
codag-drain/src/stream.rs:33
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
drain3_rust/src/cluster.rs:26
Function
fmt_num
Format an f64 without trailing `.0` noise (`20.0` -> `20`, `0.8` -> `0.8`).
codag-drain/src/compress.rs:145
Method
from_env
()
examples/server/src/session.rs:36
Method
get_total_cluster_size
Sum of `size` across all live clusters.
drain3_rust/src/drain.rs:141
Function
grouping_github_lora
()
codag-drain/tests/eval_loghub.rs:655
Function
grouping_loghub
()
codag-drain/tests/eval_loghub.rs:473
Method
has_numbers
(s: &str)
drain3_rust/src/drain.rs:182
Function
health
()
examples/server/src/routes.rs:209
Function
health_returns_ok
()
examples/server/tests/integration.rs:68
Function
ingest
( State(state): State<AppState>, Path(id): Path<String>, Query(q): Query<TemplateQuery>, heade
examples/server/src/routes.rs:213
Function
ingest_counts_accumulate_across_two_calls
()
examples/server/tests/integration.rs:236
Function
ingest_ndjson_format
()
examples/server/tests/integration.rs:267
Function
ingest_then_templates_text_parity
()
examples/server/tests/integration.rs:125
Function
invalid_ndjson_returns_400
()
examples/server/tests/integration.rs:285
Function
is_useful_template
Port of `is_useful_template`, parameterized by `min_static_chars`. Counts static (non-placeholder, non-punctuation, non-space) chars.
codag-drain/src/compress/template.rs:272
Function
is_useful_template_threshold
()
codag-drain/src/compress/template.rs:345
Function
json_serializes
()
codag-drain/src/compress.rs:455
Function
lcs_opcodes_equal_and_gap
()
codag-drain/src/compress/template.rs:293
Function
len_and_is_empty
()
codag-drain/src/stream.rs:73
Function
lex_splits_compact_json
()
codag-drain/src/compress/lex.rs:148
Function
lex_splits_stack_frame_path
()
codag-drain/src/compress/lex.rs:158
Function
line_limit_returns_413
()
examples/server/tests/integration.rs:298
Function
main
()
codag-drain/src/bin/codag-drain.rs:21
Function
main
()
examples/server/src/main.rs:36
Function
mean
(vals: &[f64])
codag-drain/tests/eval_loghub.rs:316
Function
median_odd_and_even
()
codag-drain/src/compress/profile.rs:224
Function
median_over_all_values_not_distinct
()
codag-drain/src/compress/profile.rs:230
Function
member_indices_ascending
()
codag-drain/src/compress/grouper.rs:463
Method
new
(config: TemplaterConfig)
codag-drain/src/stream.rs:21
Method
new
Construct a line with no level/timestamp.
codag-drain/src/compress.rs:40
Method
new
Create a new concurrent drain pipeline. `drain` — a fully configured [`Drain`] instance (the updater takes ownership). `channel_capacity` — bounded M
drain3_rust/src/pipeline.rs:25
Method
new
(pattern: &str, mask_with: &str)
drain3_rust/src/masking.rs:11
Method
new
(tokens: Vec<String>, cluster_id: usize)
drain3_rust/src/cluster.rs:12
Method
new
( depth: usize, sim_th: f64, max_children: usize, max_clusters: Option<usize>,
drain3_rust/src/drain.rs:26
Method
new
()
drain3_rust/src/node.rs:14
Method
new
(max_clusters: Option<usize>)
drain3_rust/src/storage.rs:19
Method
new
()
examples/server/src/session.rs:75
Function
numeric_detection_majority
()
codag-drain/src/compress/profile.rs:238
Function
numeric_slot_summary_uses_all_values
()
codag-drain/src/compress.rs:398
Function
parse_body_skips_blanks_text
()
codag-drain/src/input.rs:177
Function
parse_json_line_full
()
codag-drain/src/input.rs:163
Function
parse_json_line_rejects_non_object
()
codag-drain/src/input.rs:171
Function
parse_line_extracts_iso_timestamp_and_level
()
codag-drain/src/input.rs:139
← previous
next →
101–200 of 240, ranked by callers