<commit_before><% title "#{@paper.title} (#{@paper.reference}) &mdash; #{@department.short_name}" %>
<%- content_for :head do %>
<%= tag 'link', href: paper_path(@department, @paper, {format: :json}), rel: 'alternate', type: 'application/json' -%>
<%- end -%>

<div class="page-header">
  <p><%= link_to @department do %><strong class="dep-short"><%= @department.short_name %></strong>: <%= @department.subject %><% end %></p>
  <h1>
    <span class="label label-default"><%= @paper.reference %></span>
    <%= @paper.title %>
  </h1>
</div>

<div class="row">
  <div class="col-xs-7 col-md-9">
    <p>
      Ausarbeitung vom <%= time_tag(@paper.created_at, l(@paper.created_at))%>, <%= @paper.page_count || '?' %> Seiten
    </p>
  </div>
  <div class="col-xs-5 col-md-3 text-right">
    <%= link_to 'Download PDF', @paper.url, class: 'btn btn-primary' %>
  </div>
</div>

<iframe src="<%= @paper.url %>" width="100%" height="650px" class="paper-iframe"></iframe>

<p class="pull-right"><small><%= link_to 'Quelle: Bundestag', @department.source_url, target: '_blank' %></small></p>

<!-- Paper/<%= @paper.id %> --><commit_msg>add links to text, json versions<commit_after><% title "#{@paper.title} (#{@paper.reference}) &mdash; #{@department.short_name}" %>
<%- content_for :head do %>
<%= tag 'link', href: paper_path(@department, @paper, format: :txt), rel: 'alternate', type: 'text/plain' %>
<%= tag 'link', href: paper_path(@department, @paper, format: :json), rel: 'alternate', type: 'application/json' -%>
<%- end -%>

<div class="page-header">
  <p><%= link_to @department do %><strong class="dep-short"><%= @department.short_name %></strong>: <%= @department.subject %><% end %></p>
  <h1>
    <span class="label label-default"><%= @paper.reference %></span>
    <%= @paper.title %>
  </h1>
</div>

<div class="row">
  <div class="col-xs-7 col-md-9">
    <p>
      Ausarbeitung vom <%= time_tag(@paper.created_at, l(@paper.created_at))%>, <%= @paper.page_count || '?' %> Seiten
    </p>
  </div>
  <div class="col-xs-5 col-md-3 text-right">
    <%= link_to 'Download PDF', @paper.url, class: 'btn btn-primary' %><br/>
    <small><%= link_to "als Text", paper_path(@department, @paper, format: :txt), target: '_blank' %></small>
  </div>
</div>

<iframe src="<%= @paper.url %>" width="100%" height="650px" class="paper-iframe"></iframe>

<div class="row">
  <div class="col-xs-6">
    <p class="text-left"><small>
      Weitere Formate:
      <%= link_to ".txt", paper_path(@department, @paper, format: :txt), target: '_blank' %>,
      <%= link_to ".json", paper_path(@department, @paper, format: :json), target: '_blank' %>
    </small></p>
  </div>
  <div class="col-xs-6">
    <p class="text-right"><small><%= link_to 'Quelle: Bundestag', @department.source_url, target: '_blank' %></small></p>
  </div>
</div>

<!-- Paper/<%= @paper.id %> -->
{'fraction_non_alphanumeric': 0.2552521008403361, 'fraction_numerical': 0.009103641456582634, 'mean_word_length': 4.400756143667297, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 102, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7222136', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1063, 'n_words': 232}