MCPcopy Create free account
hub / github.com/ActivityWatch/aw-server-rust / categorize

Function categorize

aw-transform/src/classify.rs:99–105  ·  view source on GitHub ↗

Categorizes a list of events An event can only have one category, although the category may have a hierarchy, for instance: "Work -> ActivityWatch -> aw-server-rust" If multiple categories match, the deepest one will be chosen.

(mut events: Vec<Event>, rules: &[(Vec<String>, Rule)])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

test_categorizeFunction · 0.70

Calls 1

categorize_oneFunction · 0.85

Tested by 2

test_categorizeFunction · 0.56