{% from 'macros.html' import comparison_chart, number, coverage_notice with context %}

{{ t.comparison }}{% if stats.percent is not none %}
{{ t.increased if stats.token_reduction < 0 else t.reduced }}{% endif %}

{% if not stats.estimator_available %}

{{ t.no_estimates }}

{{ t.no_estimates_body }}

{% elif stats.empty %}

{{ t.usage_empty }}

{% elif stats.percent is not none %}
{{ stats.percent }}%{{ '↑' if stats.token_reduction < 0 else '↓' }}

{{ t.more_tokens if stats.token_reduction < 0 else t.fewer_tokens }} {{ number(stats.token_reduction|abs) }} tokens

{% else %}

{{ t.no_comparison }}

{% endif %} {% if stats.estimator_available %}
{{ t.baseline }}
{{ number(stats.baseline_tokens) }}
{{ t.recalled }}
{{ number(stats.recalled_tokens) }}
{% endif %} {% if stats.comparable_preparations > 0 %}

{{ coverage_notice() }}

{% endif %}

{{ t.daily_title }}

tokens
{{ comparison_chart() }}
{% if stats.estimator_available %}
{{ t.estimate_notice }}
{% endif %} {% if stats.token_reduction < 0 %}

{{ t.negative_notice }}

{% endif %}