<commit_before>{% extends 'bookmarks/email_base.html' %}
{% load template_extras %}
{% load humanize %}
{% block title %}Your NCSO price concession alert from OpenPrescribing{% endblock %}

{% block content %}

<p><b>Hello!</b></p>

<p>
  New or updated price concession data has been published for
  <b>{{ latest_month|date:"F Y" }}</b>.
</p>

<p>
  We estimate that in {{ latest_month|date:"F Y" }} total price concessions for
  out-of-stock medicines will cost {{ entity_name }} an additional
  <b>£{{ additional_cost|sigfigs:5|floatformat:"0"|intcomma }}</b>.
</p>

<p>
  We check for updates on concessions every day and we will email you the next
  time concessions are announced.
</p>

<p>
  The top {{ breakdown|length }} most significant extra costs are:
</p>

<table>
  <thead>
    <tr>
      <th>Presentation</th>
      <th>Quantity</th>
      <th>Normally costs</th>
      <th>This month's extra cost</th>
    </tr>
  </thead>
  <tbody>
    {% for row in breakdown %}
      <tr>
        <td>{{ row.1 }}</td>
        <td align="right">{{ row.2|intcomma }}</td>
        <td align="right">£{{ row.3|floatformat:"0"|intcomma }}</td>
        <td align="right">£{{ row.4|floatformat:"0"|intcomma }}</td>
      </tr>
    {% endfor %}
  </tbody>
</table>

<p>
  <a href="{{ concessions_url }}"><img src="cid:{{ chart_image_cid }}"></a><br>
</p>

<p>
  <a href="{{ concessions_url }}">Further analysis</a> is on our website,
  where you can also <a href="{{ dashboard_url }}">view our dashboard for
  {{ entity_name }}</a> and subscribe to alerts for all our standard measures.
</p>

{% endblock %}<commit_msg>Don't show decimal places for quantity in email<commit_after>{% extends 'bookmarks/email_base.html' %}
{% load template_extras %}
{% load humanize %}
{% block title %}Your NCSO price concession alert from OpenPrescribing{% endblock %}

{% block content %}

<p><b>Hello!</b></p>

<p>
  New or updated price concession data has been published for
  <b>{{ latest_month|date:"F Y" }}</b>.
</p>

<p>
  We estimate that in {{ latest_month|date:"F Y" }} total price concessions for
  out-of-stock medicines will cost {{ entity_name }} an additional
  <b>£{{ additional_cost|sigfigs:5|floatformat:"0"|intcomma }}</b>.
</p>

<p>
  We check for updates on concessions every day and we will email you the next
  time concessions are announced.
</p>

<p>
  The top {{ breakdown|length }} most significant extra costs are:
</p>

<table>
  <thead>
    <tr>
      <th>Presentation</th>
      <th>Quantity</th>
      <th>Normally costs</th>
      <th>This month's extra cost</th>
    </tr>
  </thead>
  <tbody>
    {% for row in breakdown %}
      <tr>
        <td>{{ row.1 }}</td>
        <td align="right">£{{ row.2|floatformat:"0"|intcomma }}</td>
        <td align="right">£{{ row.3|floatformat:"0"|intcomma }}</td>
        <td align="right">£{{ row.4|floatformat:"0"|intcomma }}</td>
      </tr>
    {% endfor %}
  </tbody>
</table>

<p>
  <a href="{{ concessions_url }}"><img src="cid:{{ chart_image_cid }}"></a><br>
</p>

<p>
  <a href="{{ concessions_url }}">Further analysis</a> is on our website,
  where you can also <a href="{{ dashboard_url }}">view our dashboard for
  {{ entity_name }}</a> and subscribe to alerts for all our standard measures.
</p>

{% endblock %}
{'fraction_non_alphanumeric': 0.18431492218492523, 'fraction_numerical': 0.0051876716509002135, 'mean_word_length': 3.565459610027855, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2404827', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1123, 'n_words': 347}