<commit_before><div class="row">
  <div class="col s12 m8 offset-m2">
    <div class="hoverable card center" style="margin: 20px 0 0 0; padding: 50px; border-bottom: 10px solid <%= Document.hex_color %>">


    <i class="material-icons large <%= Document.color %>-text"><%= Document.icon %></i>
    <h4>Document analysis</h4>

    <p>
      No analysis has been requested for this document yet.
    </p>
    <p>
      Our automated document analysis is a Premium-only feature currently in beta. 
      <% unless current_user.on_premium_plan? %>
        To request an analysis for your document, please <%= link_to 'upgrade to a Premium account', subscription_path %>.
      <% end %>
    </p>
    <p>
      <% if current_user.on_premium_plan? %>
        <%=
          link_to 'Request an analysis',
                  queue_analysis_document_path(@document),
                  class: 'btn orange white-text'
        %>
      <% else %>
        <%=
          link_to 'Request an analysis',
                  queue_analysis_document_path(@document),
                  class: 'btn orange white-text disabled'
        %>
      <% end %>
    </p>
  </div>
</div>

<p style="clear: both">
  &nbsp;
</p>

<div class="row">
  <div class="col s12 m4">
    <div class="hoverable card" style="border-bottom: 5px solid <%= Document.hex_color %>">
      <div class="card-content">
        <div class="card-title">Writing style</div>
        <ul>
          <li><i class="material-icons green-text left">check</i> Sentence rhythm</li>
          <li class="clearfix"><i class="material-icons green-text left">check</i> Word preferences</li>
          <li class="clearfix"><i class="material-icons green-text left">check</i> Comparison to famous authors</li>
        </ul><commit_msg>fix 500s<commit_after><div class="row">
  <div class="col s12 m8 offset-m2">
    <div class="hoverable card center" style="margin: 20px 0 0 0; padding: 50px; border-bottom: 10px solid <%= Document.hex_color %>">


    <i class="material-icons large <%= Document.color %>-text"><%= Document.icon %></i>
    <h4>Document analysis</h4>

    <p>
      No analysis has been requested for this document yet.
    </p>
    <p>
      Our automated document analysis is a Premium-only feature currently in beta. 
      <% unless user_signed_in? && current_user.on_premium_plan? %>
        To request an analysis for your document, please <%= link_to 'upgrade to a Premium account', subscription_path %>.
      <% end %>
    </p>
    <p>
      <% if user_signed_in? && current_user.on_premium_plan? %>
        <%=
          link_to 'Request an analysis',
                  queue_analysis_document_path(@document),
                  class: 'btn orange white-text'
        %>
      <% else %>
        <%=
          link_to 'Request an analysis',
                  queue_analysis_document_path(@document),
                  class: 'btn orange white-text disabled'
        %>
      <% end %>
    </p>
  </div>
</div>

<p style="clear: both">
  &nbsp;
</p>

<div class="row">
  <div class="col s12 m4">
    <div class="hoverable card" style="border-bottom: 5px solid <%= Document.hex_color %>">
      <div class="card-content">
        <div class="card-title">Writing style</div>
        <ul>
          <li><i class="material-icons green-text left">check</i> Sentence rhythm</li>
          <li class="clearfix"><i class="material-icons green-text left">check</i> Word preferences</li>
          <li class="clearfix"><i class="material-icons green-text left">check</i> Comparison to famous authors</li>
        </ul>
{'fraction_non_alphanumeric': 0.14698457223001402, 'fraction_numerical': 0.01150070126227209, 'mean_word_length': 2.5731462925851702, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '669890', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1053, 'n_words': 296}