<commit_before><% page_title @ministerial_role.name %>
<div class="g3f">
  <section class="page_header ministerial_role minister">
    <h1 class="page_title ministerial_role has_meta"><%= @ministerial_role.name %></h1>
    <div class="meta">
      <% @ministerial_role.organisations.each do |organisation| %>
        <%= link_to organisation_display_name(organisation), organisation_path(organisation), class: "organisation tag", id: dom_id(organisation) %>
      <% end %>
    </div>
  </section>

  <section class="current_person page_detail">
    <div class="g1">
      <div class="img"><%= image_for_ministerial_role @ministerial_role %></div>
      <h2 class="name"><%= @ministerial_role.current_person_name %></h2>
    </div>
    <div class="g2">
      <div class="responsibilities">
        <%= govspeak_to_html @ministerial_role.responsibilities %>
      </div>
      <div class="biography">
        <%= format_in_paragraphs(@ministerial_role.current_person_biography) %>
      </div>
    </div>
  </section>

  <% if @announcements.any? %>
    <div class="g2 related_documents">
      <section class="news_and_speeches">
        <h1>News &amp; speeches</h1>
        <%= announcement_group(@announcements, groups_of: 3, class: "", partial: "default") %>
      </section>
    </div>
  <% end %>

  <% if @policies.any? %>
    <div class="g1 related_documents">
      <%= render partial: "documents/policies", object: @policies %>
    </div>
  <% end %>

  <% if @publications.any? %>
    <div class="g1 related_documents">
      <%= render partial: "documents/publications", object: @publications %>
    </div>
  <% end %>

  <% if @consultations.any? %><commit_msg>Use govspeak rendering for minister bios.<commit_after><% page_title @ministerial_role.name %>
<div class="g3f">
  <section class="page_header ministerial_role minister">
    <h1 class="page_title ministerial_role has_meta"><%= @ministerial_role.name %></h1>
    <div class="meta">
      <% @ministerial_role.organisations.each do |organisation| %>
        <%= link_to organisation_display_name(organisation), organisation_path(organisation), class: "organisation tag", id: dom_id(organisation) %>
      <% end %>
    </div>
  </section>

  <section class="current_person page_detail">
    <div class="g1">
      <div class="img"><%= image_for_ministerial_role @ministerial_role %></div>
      <h2 class="name"><%= @ministerial_role.current_person_name %></h2>
    </div>
    <div class="g2">
      <div class="responsibilities">
        <%= govspeak_to_html @ministerial_role.responsibilities %>
      </div>
      <div class="biography">
        <%= govspeak_to_html(@ministerial_role.current_person_biography) %>
      </div>
    </div>
  </section>

  <% if @announcements.any? %>
    <div class="g2 related_documents">
      <section class="news_and_speeches">
        <h1>News &amp; speeches</h1>
        <%= announcement_group(@announcements, groups_of: 3, class: "", partial: "default") %>
      </section>
    </div>
  <% end %>

  <% if @policies.any? %>
    <div class="g1 related_documents">
      <%= render partial: "documents/policies", object: @policies %>
    </div>
  <% end %>

  <% if @publications.any? %>
    <div class="g1 related_documents">
      <%= render partial: "documents/publications", object: @publications %>
    </div>
  <% end %>

  <% if @consultations.any? %>
{'fraction_non_alphanumeric': 0.16765578635014836, 'fraction_numerical': 0.00771513353115727, 'mean_word_length': 3.7146853146853145, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '3420762', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1108, 'n_words': 213}