<commit_before><div class="row">
  <div class="col s12">
    <div class="card horizontal">
      <div class="card-image">
        <%= image_tag 'card-headers/document-mini.jpg' %>
      </div>
      <div class="card-stacked">
        <div class="card-content">
          <div class="card-title">
            <%= document.title || 'Untitled document' %><br />
            <span class="grey-text">by</span>
            <%= link_to document.user.name, document.user %>
          </div>

          <p>Language: <%= analysis.language %></p>
          <p>Originally created <%= time_ago_in_words document.created_at %> ago</p>
          <p>Last edited <%= time_ago_in_words document.updated_at %> ago</p>
          <p>Analysis took <%= (analysis.completed_at - analysis.created_at).round(1) %> minutes</p>
          <p>Analysis completed <%= time_ago_in_words analysis.completed_at %> ago</p>
        </div>
        <div class="card-action">
          <%= link_to 'View document', document_path(document) %>
          <%= link_to 'Edit document', edit_document_path(document), class: 'right', target: '_new' %>
        </div>
      </div>
    </div>
  </div>
</div>
<commit_msg>header design on doc analysis<commit_after><div class="row">
  <div class="col s12">
    <div class="card horizontal">
      <div class="card-image">
        <%= image_tag 'card-headers/document-mini.jpg' %>
      </div>
      <div class="card-stacked">
        <div class="card-content">
          <div class="card-title">
            <%= document.title || 'Untitled document' %><br />
            <span class="grey-text">by</span>
            <%= link_to document.user.name, document.user %>
          </div>

          <!--<p>Language: <%= analysis.language %></p>-->
          <ul class="browser-default">
            <li>This document:</li>
              <ul class="browser-default">
                <li>Originally created <%= time_ago_in_words document.created_at %> ago</li>
                <li>Last edited <%= time_ago_in_words document.updated_at %> ago</li>
              </ul>
            <li>This analysis:</li>
              <ul class="browser-default">
                <li>Took <%= (analysis.completed_at - analysis.created_at).round(1) %> minutes to complete</li>
                <li>Completed <%= time_ago_in_words analysis.completed_at %> ago</li>
              </ul>
          </ul>
        </div>
        <div class="card-action">
          <%= link_to 'View document', document_path(document) %>
          <%= link_to 'Edit document', edit_document_path(document), class: 'right', target: '_new' %>
        </div>
      </div>
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.17233560090702948, 'fraction_numerical': 0.0022675736961451248, 'mean_word_length': 2.228048780487805, 'pattern_counts': {'":': 0, '<': 92, '<?xml version=': 0, '>': 92, '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': '2010122', 'n_tokens_mistral': 855, 'n_tokens_neox': 790, 'n_words': 161}