<commit_before>{% extends "base.html" %}
{% load humanize %}
{% load template_extras %}

{% block title %}Prescribing on {{ measure.name }} for {{ entity.name }}{% endblock %}
{% block active_class %}{{ entity_type|lower }}{% endblock %}

{% block extra_css %}
  <link href='https://api.mapbox.com/mapbox.js/v2.2.1/mapbox.css' rel='stylesheet' />
{% endblock extra_css %}

{% block content %}
  <h1>
    {{ measure.name }}
    <br><small>{{ entity.name }}</small>
  </h1>
  <p>
    <a href="{% url measures_url_name entity.code %}" class="btn btn-default">
      View all measures for this {{ entity_type }} &rarr;
    </a>
  </p>

  <p>This measure shows how this organisation compares with its peers across NHS England. This is indicative only, and should be approached with caution. <a href='{% url 'faq' %}#measureinterpret'>Read more about measures</a>.</p>

  {% include '_measures_heading.html' with entity_type=entity_type %}
  {% include '_measures_panel.html' %}

  <hr>

  {% if measure.numerator_can_be_queried %}

    <h2>Presentations contributing to variation</h2>

    <p>In the quarter ending {{ current_at|date:"M Y" }}, the numerator in this measure was composed of the following presentations:</p>

    <table id="numerator_breakdown" class="table">
      <thead>
        <tr>
          <th>Presentation</th>
          <th>Items</th>
          <th>Quantity</th>
          <th>Cost</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>Loading...</th>
          <td></td>
          <td></td>
          <td></td>
        </tr>
      </tbody>
    </table>

    <a class="btn btn-primary" href="{% url 'measure_numerators_by_org' %}?org={{ entity.code }}&measure={{ measure.id }}&format=csv"><span class="glyphicon glyphicon-download-alt"></span> Download this data</a>

    <hr>

  {% endif %}

  {% include '_get_in_touch.html' %}
{% endblock %}

{% block extra_js %}
  {{ measure_options|json_script:"measure-options" }}
  {% conditional_js 'measures' %}
  {% include '_measure_breakdown_table.html' %}
{% endblock %}
<commit_msg>Use correct numerator breakdown flag in template<commit_after>{% extends "base.html" %}
{% load humanize %}
{% load template_extras %}

{% block title %}Prescribing on {{ measure.name }} for {{ entity.name }}{% endblock %}
{% block active_class %}{{ entity_type|lower }}{% endblock %}

{% block extra_css %}
  <link href='https://api.mapbox.com/mapbox.js/v2.2.1/mapbox.css' rel='stylesheet' />
{% endblock extra_css %}

{% block content %}
  <h1>
    {{ measure.name }}
    <br><small>{{ entity.name }}</small>
  </h1>
  <p>
    <a href="{% url measures_url_name entity.code %}" class="btn btn-default">
      View all measures for this {{ entity_type }} &rarr;
    </a>
  </p>

  <p>This measure shows how this organisation compares with its peers across NHS England. This is indicative only, and should be approached with caution. <a href='{% url 'faq' %}#measureinterpret'>Read more about measures</a>.</p>

  {% include '_measures_heading.html' with entity_type=entity_type %}
  {% include '_measures_panel.html' %}

  <hr>

  {% if measure.numerator_is_list_of_bnf_codes %}

    <h2>Presentations contributing to variation</h2>

    <p>In the quarter ending {{ current_at|date:"M Y" }}, the numerator in this measure was composed of the following presentations:</p>

    <table id="numerator_breakdown" class="table">
      <thead>
        <tr>
          <th>Presentation</th>
          <th>Items</th>
          <th>Quantity</th>
          <th>Cost</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>Loading...</th>
          <td></td>
          <td></td>
          <td></td>
        </tr>
      </tbody>
    </table>

    <a class="btn btn-primary" href="{% url 'measure_numerators_by_org' %}?org={{ entity.code }}&measure={{ measure.id }}&format=csv"><span class="glyphicon glyphicon-download-alt"></span> Download this data</a>

    <hr>

  {% endif %}

  {% include '_get_in_touch.html' %}
{% endblock %}

{% block extra_js %}
  {{ measure_options|json_script:"measure-options" }}
  {% conditional_js 'measures' %}
  {% include '_measure_breakdown_table.html' %}
{% endblock %}

{'fraction_non_alphanumeric': 0.17364266921789046, 'fraction_numerical': 0.0033484812245874193, 'mean_word_length': 3.169491525423729, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '975244', 'n_tokens_mistral': 1470, 'n_tokens_neox': 1337, 'n_words': 328}