<commit_before><%= render "govuk_publishing_components/components/heading", {
  text: topic_section["header"],
  margin_bottom: 6,
  font_size: "m"
} %>

<% link = topic_section["links"].shift %>
<p class="govuk-body govuk-!-margin-bottom-6">
  <%= link_to(
    link["label"].html_safe,
    link["url"],
    class: 'govuk-link',
    data: {
      module: "gem-track-click",
      track_category: "pageElementInteraction",
      track_action: "Statistics",
      track_label: link["url"],
    },
  ) %>
</p>

<% if statistics %>
  <div class="govuk-grid-row">
    <% if statistics.new_positive_tests %>
      <div class="govuk-grid-column-one-third">
        <%= render "govuk_publishing_components/components/heading", {
          text: topic_section.dig("tests", "title"),
          margin_bottom: 4,
          font_size: "s",
          heading_level: 3
        } %>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("tests", "daily_heading") %></span>
          <span class="covid-statistics__data"><%= number_with_delimiter(statistics.new_positive_tests) %></span>
        </p>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("tests", "weekly_heading") %></span>
          <span class="covid-statistics__data"><%= number_with_delimiter(statistics.current_week_positive_tests) %></span>
          <span class="govuk-tag govuk-tag--yellow covid-statistics__tag">
            <%= render partial: 'coronavirus_landing_page/components/landing_page/arrow', locals: { number: statistics.current_week_positive_tests_change_number } %>
            <span class="covid-statistics__data"><%= number_with_delimiter(statistics.current_week_positive_tests_change_number) %></span>
            (<%= number_to_percentage(statistics.current_week_positive_tests_change_percentage, precision: 1) %>)
          </span>
        </p>
        <p class="govuk-body covid-statistics__all-link">
          <%= link_to(
            topic_section.dig("tests", "guidance_link", "label"),
            topic_section.dig("tests", "guidance_link", "url"),
            class: 'govuk-link',
            data: {
              module: "gem-track-click",
              track_category: "pageElementInteraction",
              track_action: "Statistics",
              track_label: topic_section.dig("tests", "guidance_link", "url"),
            },
          ) %>
          <br/>
          <span class="covid-statistics__latest">
            <%= topic_section.dig("updated_date") %> <%= statistics.new_positive_tests_date.strftime("%d %B %Y") %>
          </span>
        </p>
      </div>
    <% end %>

    <% if statistics.hospital_admissions %>
      <div class="govuk-grid-column-one-third">
        <%= render "govuk_publishing_components/components/heading", {
          text: topic_section.dig("admissions", "title"),
          margin_bottom: 4,
          font_size: "s",
          heading_level: 3
        } %>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("admissions", "daily_heading") %></span>
          <span class="covid-statistics__data"><%= number_with_delimiter(statistics.hospital_admissions) %></span>
        </p>

        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("admissions", "weekly_heading") %></span>
          <span class="covid-statistics__data"><%= number_with_delimiter(statistics.current_week_hospital_admissions) %></span>
          <span class="govuk-tag govuk-tag--yellow covid-statistics__tag">
            <%= render partial: 'coronavirus_landing_page/components/landing_page/arrow', locals: { number: statistics.current_week_hospital_admissions_change_number } %>
            <span class="covid-statistics__data"><%= number_with_delimiter(statistics.current_week_hospital_admissions_change_number) %></span>
            (<%= number_to_percentage(statistics.current_week_hospital_admissions_change_percentage, precision: 1) %>)
          </span>
        </p>
        <p class="govuk-body covid-statistics__all-link">
          <%= link_to(
            topic_section.dig("admissions", "guidance_link", "label"),
            topic_section.dig("admissions", "guidance_link", "url"),
            class: 'govuk-link',
            data: {
              module: "gem-track-click",
              track_category: "pageElementInteraction",
              track_action: "Statistics",
              track_label: topic_section.dig("admissions", "guidance_link", "url"),
            },
          ) %>
          <br/>
          <span class="covid-statistics__latest">
            <%= topic_section.dig("updated_date") %> <%= statistics.hospital_admissions_date.strftime("%d %B %Y") %>
          </span>
        </p>
      </div>
    <% end %>

    <% if statistics.cumulative_first_dose_vaccinations %>
      <div class="govuk-grid-column-one-third">
        <%= render "govuk_publishing_components/components/heading", {
          text: topic_section.dig("vaccinations", "title"),
          margin_bottom: 4,
          font_size: "s",
          heading_level: 3
        } %>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("vaccinations", "first_dose", "heading") %></span>
          <span class="covid-statistics__data">
            <%= number_to_percentage(statistics.percentage_first_vaccine, precision: 1) %>
            (<%= number_with_delimiter(statistics.cumulative_first_dose_vaccinations) %> <%= topic_section.dig("vaccinations", "first_dose", "label") %>)
          </span>
        </p>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("vaccinations", "second_dose", "heading") %></span>
          <span class="covid-statistics__data">
            <%= number_to_percentage(statistics.percentage_second_vaccine, precision: 1) %>
            (<%= number_with_delimiter(statistics.cumulative_second_dose_vaccinations) %> <%= topic_section.dig("vaccinations", "second_dose", "label") %>)
          </span>
        </p>
        <p class="govuk-body covid-statistics__all-link">
          <%= link_to(<commit_msg>Display Booster or third dose statistics<commit_after><%= render "govuk_publishing_components/components/heading", {
  text: topic_section["header"],
  margin_bottom: 6,
  font_size: "m"
} %>

<% link = topic_section["links"].shift %>
<p class="govuk-body govuk-!-margin-bottom-6">
  <%= link_to(
    link["label"].html_safe,
    link["url"],
    class: 'govuk-link',
    data: {
      module: "gem-track-click",
      track_category: "pageElementInteraction",
      track_action: "Statistics",
      track_label: link["url"],
    },
  ) %>
</p>

<% if statistics %>
  <div class="govuk-grid-row">
    <% if statistics.new_positive_tests %>
      <div class="govuk-grid-column-one-third">
        <%= render "govuk_publishing_components/components/heading", {
          text: topic_section.dig("tests", "title"),
          margin_bottom: 4,
          font_size: "s",
          heading_level: 3
        } %>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("tests", "daily_heading") %></span>
          <span class="covid-statistics__data"><%= number_with_delimiter(statistics.new_positive_tests) %></span>
        </p>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("tests", "weekly_heading") %></span>
          <span class="covid-statistics__data"><%= number_with_delimiter(statistics.current_week_positive_tests) %></span>
          <span class="govuk-tag govuk-tag--yellow covid-statistics__tag">
            <%= render partial: 'coronavirus_landing_page/components/landing_page/arrow', locals: { number: statistics.current_week_positive_tests_change_number } %>
            <span class="covid-statistics__data"><%= number_with_delimiter(statistics.current_week_positive_tests_change_number) %></span>
            (<%= number_to_percentage(statistics.current_week_positive_tests_change_percentage, precision: 1) %>)
          </span>
        </p>
        <p class="govuk-body covid-statistics__all-link">
          <%= link_to(
            topic_section.dig("tests", "guidance_link", "label"),
            topic_section.dig("tests", "guidance_link", "url"),
            class: 'govuk-link',
            data: {
              module: "gem-track-click",
              track_category: "pageElementInteraction",
              track_action: "Statistics",
              track_label: topic_section.dig("tests", "guidance_link", "url"),
            },
          ) %>
          <br/>
          <span class="covid-statistics__latest">
            <%= topic_section.dig("updated_date") %> <%= statistics.new_positive_tests_date.strftime("%d %B %Y") %>
          </span>
        </p>
      </div>
    <% end %>

    <% if statistics.hospital_admissions %>
      <div class="govuk-grid-column-one-third">
        <%= render "govuk_publishing_components/components/heading", {
          text: topic_section.dig("admissions", "title"),
          margin_bottom: 4,
          font_size: "s",
          heading_level: 3
        } %>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("admissions", "daily_heading") %></span>
          <span class="covid-statistics__data"><%= number_with_delimiter(statistics.hospital_admissions) %></span>
        </p>

        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("admissions", "weekly_heading") %></span>
          <span class="covid-statistics__data"><%= number_with_delimiter(statistics.current_week_hospital_admissions) %></span>
          <span class="govuk-tag govuk-tag--yellow covid-statistics__tag">
            <%= render partial: 'coronavirus_landing_page/components/landing_page/arrow', locals: { number: statistics.current_week_hospital_admissions_change_number } %>
            <span class="covid-statistics__data"><%= number_with_delimiter(statistics.current_week_hospital_admissions_change_number) %></span>
            (<%= number_to_percentage(statistics.current_week_hospital_admissions_change_percentage, precision: 1) %>)
          </span>
        </p>
        <p class="govuk-body covid-statistics__all-link">
          <%= link_to(
            topic_section.dig("admissions", "guidance_link", "label"),
            topic_section.dig("admissions", "guidance_link", "url"),
            class: 'govuk-link',
            data: {
              module: "gem-track-click",
              track_category: "pageElementInteraction",
              track_action: "Statistics",
              track_label: topic_section.dig("admissions", "guidance_link", "url"),
            },
          ) %>
          <br/>
          <span class="covid-statistics__latest">
            <%= topic_section.dig("updated_date") %> <%= statistics.hospital_admissions_date.strftime("%d %B %Y") %>
          </span>
        </p>
      </div>
    <% end %>

    <% if statistics.cumulative_first_dose_vaccinations %>
      <div class="govuk-grid-column-one-third">
        <%= render "govuk_publishing_components/components/heading", {
          text: topic_section.dig("vaccinations", "title"),
          margin_bottom: 4,
          font_size: "s",
          heading_level: 3
        } %>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("vaccinations", "first_dose", "heading") %></span>
          <span class="covid-statistics__data">
            <%= number_to_percentage(statistics.percentage_first_vaccine, precision: 1) %>
            (<%= number_with_delimiter(statistics.cumulative_first_dose_vaccinations) %> <%= topic_section.dig("vaccinations", "first_dose", "label") %>)
          </span>
        </p>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("vaccinations", "second_dose", "heading") %></span>
          <span class="covid-statistics__data">
            <%= number_to_percentage(statistics.percentage_second_vaccine, precision: 1) %>
            (<%= number_with_delimiter(statistics.cumulative_second_dose_vaccinations) %> <%= topic_section.dig("vaccinations", "second_dose", "label") %>)
          </span>
        </p>
        <p class="govuk-body">
          <span class="covid-statistics__label"><%= topic_section.dig("vaccinations", "third_dose", "heading") %></span>
          <span class="covid-statistics__data">
            <%= number_to_percentage(statistics.percentage_third_vaccine, precision: 1) %>
            (<%= number_with_delimiter(statistics.cumulative_third_dose_vaccinations) %> <%= topic_section.dig("vaccinations", "third_dose", "label") %>)
          </span>
        </p>
        <p class="govuk-body covid-statistics__all-link">
          <%= link_to(
{'fraction_non_alphanumeric': 0.15436345366004484, 'fraction_numerical': 0.0019324418335008116, 'mean_word_length': 2.9409077063661284, 'pattern_counts': {'":': 0, '<': 221, '<?xml version=': 0, '>': 219, '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': '4158286', 'n_tokens_mistral': 4191, 'n_tokens_neox': 3892, 'n_words': 567}