<commit_before>  <figure class="image" title="<%= @presenter.alt_text.first %>">
    <% if external_resource?(@presenter) == false %>
      <% if @presenter.image? %>
      <div id="image"></div>
      <script>
      $().ready(function() {

            //window.F = window.F || {};
            var $map = $("#image");

            var map = L.map('image', {
              center: [0, 0],
              crs: L.CRS.Simple,
              zoom: 0,
            }).addLayer(L.tileLayer.iiif("<%= riiif.info_path(@presenter.id) %>"));
          });
      </script>
      <% else %>
      <%= media_display @presenter %>
      <% end %>
    <% else %>
      <p class="external-text lead">This is an external resource hosted on another website.<br />
        <a href="<%= @presenter.ext_url_doi_or_handle.first %>" title="<%= @presenter.title.first %>" target="_blank" ><span class="glyphicon glyphicon-share" aria-hidden="true"></span> View object</a> at originating website.
      </p>
      <div id="image">
        <%= external_resource_linked_image(@presenter) %>
      </div>
    <% end %>
    <figcaption><%= presenter.attribute_to_html(:caption, render_as: :markdown, label: '') %></figcaption>
  </figure> <!-- /.image/media -->

  <% if @presenter.translation.present? %>
  <div class="panel panel-default translation">
    <div class="panel-heading">
      <h3 class="panel-title">Translation</h3>
    </div>
    <div class="panel-body fixed">
      <p><%= presenter.attribute_to_html(:translation, render_as: :markdown, label: '') %></p>
    </div>
  </div><!-- /.translation panel -->
  <% end %>
  <% if @presenter.transcript.present? %>
  <div class="panel panel-default transcript">
    <div class="panel-heading">
      <h3 class="panel-title">Transcript</h3>
    </div>
    <div class="panel-body fixed">
      <p><%= presenter.attribute_to_html(:transcript, render_as: :markdown, label: '') %></p>
    </div>
  </div><!-- /.transcript panel -->
  <% end %><commit_msg>want first title not its first character<commit_after>  <figure class="image" title="<%= @presenter.alt_text.first %>">
    <% if external_resource?(@presenter) == false %>
      <% if @presenter.image? %>
      <div id="image"></div>
      <script>
      $().ready(function() {

            //window.F = window.F || {};
            var $map = $("#image");

            var map = L.map('image', {
              center: [0, 0],
              crs: L.CRS.Simple,
              zoom: 0,
            }).addLayer(L.tileLayer.iiif("<%= riiif.info_path(@presenter.id) %>"));
          });
      </script>
      <% else %>
      <%= media_display @presenter %>
      <% end %>
    <% else %>
      <p class="external-text lead">This is an external resource hosted on another website.<br />
        <a href="<%= @presenter.ext_url_doi_or_handle.first %>" title="<%= @presenter.title %>" target="_blank" ><span class="glyphicon glyphicon-share" aria-hidden="true"></span> View object</a> at originating website.
      </p>
      <div id="image">
        <%= external_resource_linked_image(@presenter) %>
      </div>
    <% end %>
    <figcaption><%= presenter.attribute_to_html(:caption, render_as: :markdown, label: '') %></figcaption>
  </figure> <!-- /.image/media -->

  <% if @presenter.translation.present? %>
  <div class="panel panel-default translation">
    <div class="panel-heading">
      <h3 class="panel-title">Translation</h3>
    </div>
    <div class="panel-body fixed">
      <p><%= presenter.attribute_to_html(:translation, render_as: :markdown, label: '') %></p>
    </div>
  </div><!-- /.translation panel -->
  <% end %>
  <% if @presenter.transcript.present? %>
  <div class="panel panel-default transcript">
    <div class="panel-heading">
      <h3 class="panel-title">Transcript</h3>
    </div>
    <div class="panel-body fixed">
      <p><%= presenter.attribute_to_html(:transcript, render_as: :markdown, label: '') %></p>
    </div>
  </div><!-- /.transcript panel -->
  <% end %>
{'fraction_non_alphanumeric': 0.2029167714357556, 'fraction_numerical': 0.00352024138798089, 'mean_word_length': 2.7247191011235956, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, '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': '4225153', 'n_tokens_mistral': 1344, 'n_tokens_neox': 1246, 'n_words': 260}