<commit_before><% title @body.name %>
<%- content_for :head do %><%= auto_discovery_link_tag(:atom, body_feed_url(body: @body, format: :atom)) %><% end -%>

<div class="page-header page-header--has-feed">
  <h1><%= @body.name %> <small><code>(<%= @body.state %>)</code></small></h1>
  <%= link_to body_feed_url(body: @body, format: :atom), class: 'feed', title: "neue Anfragen als Atom-Feed abonnieren" do %>
    <span class="sr-only">neue Anfragen als Atom-Feed abonnieren:</span><%= image_tag('feed-icon.svg', class: 'feed-icon', alt: 'Atom-Feed') %>
  <% end %>
</div>

<%- if @body.site_message -%>
<div class="alert alert-warning"><%= raw @body.site_message %></div>
<%- end -%>

<div class="page-content row">
  <div class="col-md-6">
    <ol class="legislative-terms-overview">
      <% @terms.each do |term| %>
      <li class="row">
        <h2 class="col-xs-9 col-sm-10"><%= link_to "#{term.term}. Wahlperiode", legislative_term_path(@body, term.term) %></h2>
        <div class="paper-count col-xs-3 col-sm-2">
          <span><%= number_with_delimiter term.papers.count %></span><br/>
          <%= t :anfragen, count: term.papers.count %>
        </div>
      </li>
      <% end %>
    </ol>
  </div>

  <div class="col-md-6">
    <div class="latest-result">
      <%- unless @scraper_result.nil? -%>
        Letztes Update vor <%= relative_time_dativ @scraper_result.stopped_at %>
        <span class="circle circle--large circle--<%= @scraper_result.status %>"><%= @scraper_result.success? ? 'erfolgreich' : 'fehlgeschlagen' %></span>
        <br/>
      <%- end -%>
      <%- unless @latest_paper.nil? -%>
        Neueste Anfrage vor <%= relative_time_dativ @latest_paper.published_at %> veröffentlicht
      <%- end -%>
    </div>

    <% if @body.ministries.size > 0 %>
    <h3>Behörden:</h3>
    <ul>
      <% @body.ministries.order(name: :asc).each do |ministry| %>
      <li><%= link_to ministry.name, ministry_path(@body, ministry) %> <small>(<%= number_with_delimiter ministry.papers.count %>)</small></li>
      <% end %>
    </ul>
    <% end %>

    <% if @body.organizations.size > 0 %>
    <h3>Fraktionen:</h3>
    <ul>
      <% @body.organizations.order(name: :asc).each do |organization| %><commit_msg>remove latest result information<commit_after><% title @body.name %>
<%- content_for :head do %><%= auto_discovery_link_tag(:atom, body_feed_url(body: @body, format: :atom)) %><% end -%>

<div class="page-header page-header--has-feed">
  <h1><%= @body.name %> <small><code>(<%= @body.state %>)</code></small></h1>
  <%= link_to body_feed_url(body: @body, format: :atom), class: 'feed', title: "neue Anfragen als Atom-Feed abonnieren" do %>
    <span class="sr-only">neue Anfragen als Atom-Feed abonnieren:</span><%= image_tag('feed-icon.svg', class: 'feed-icon', alt: 'Atom-Feed') %>
  <% end %>
</div>

<%- if @body.site_message -%>
<div class="alert alert-warning"><%= raw @body.site_message %></div>
<%- end -%>

<div class="page-content row">
  <div class="col-md-6">
    <ol class="legislative-terms-overview">
      <% @terms.each do |term| %>
      <li class="row">
        <h2 class="col-xs-9 col-sm-10"><%= link_to "#{term.term}. Wahlperiode", legislative_term_path(@body, term.term) %></h2>
        <div class="paper-count col-xs-3 col-sm-2">
          <span><%= number_with_delimiter term.papers.count %></span><br/>
          <%= t :anfragen, count: term.papers.count %>
        </div>
      </li>
      <% end %>
    </ol>
  </div>

  <div class="col-md-6">
    <% if @body.ministries.size > 0 %>
    <h3>Behörden:</h3>
    <ul>
      <% @body.ministries.order(name: :asc).each do |ministry| %>
      <li><%= link_to ministry.name, ministry_path(@body, ministry) %> <small>(<%= number_with_delimiter ministry.papers.count %>)</small></li>
      <% end %>
    </ul>
    <% end %>

    <% if @body.organizations.size > 0 %>
    <h3>Fraktionen:</h3>
    <ul>
      <% @body.organizations.order(name: :asc).each do |organization| %>
{'fraction_non_alphanumeric': 0.21827794561933533, 'fraction_numerical': 0.008559919436052367, 'mean_word_length': 3.309110629067245, 'pattern_counts': {'":': 0, '<': 142, '<?xml version=': 0, '>': 146, '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': '5689936', 'n_tokens_mistral': 1573, 'n_tokens_neox': 1460, 'n_words': 285}