runs in db
{{ runs_total }}
judgments since latest run
{{ judged_this_run }}
est. LLM cost {% if cost_this_run %}${{ "%.4f"|format(cost_this_run) }}{% else %}$0.00{% endif %}
{% set vc = { 'malicious': verdict_counts.get('malicious', 0), 'suspicious': verdict_counts.get('suspicious', 0), 'unknown': verdict_counts.get('unknown', 0), 'benign': verdict_counts.get('benign', 0), } %} {% set vc_total = vc.values() | sum %} {# Spans two columns so the 3-card KPI row fills the grid (no empty 4th column) and the donut + legend get room to breathe. #}
verdict totals
{{ vc_total }}
{# Legend with proportional bars — fills the card's width and shows each verdict's share precisely (the donut can't, for tiny slices). #}
{% set rows = [ ('malicious', 'bg-red-500', 'text-red-300'), ('suspicious', 'bg-amber-500', 'text-amber-300'), ('unknown', 'bg-slate-500', 'text-slate-300'), ('benign', 'bg-emerald-500', 'text-emerald-300'), ] %} {% for name, dot_cls, label_cls in rows %}
{{ name }}
{{ vc[name] }}
{% endfor %}