<commit_before><div class="row">
  <div class="col-md-6">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title">Latest Revisions</h3>
          <div class="actions pull-right">
            <!-- <i class="fa fa-chevron-down"></i>
            <i class="fa fa-times"></i> -->
          </div>
      </div>
      <div class="panel-body">
        <div class="tab-wrapper tab-left ">
          <ul class="nav nav-tabs">
          <!-- This sets up the first active left tab button -->
            <li class="active"><a href="#<%=@first_revision.id%>" data-toggle="tab">1</a>
             </li>
             <!-- This iterates through the rest of the revs to make tab buttons-->
             <% @counter = 2 %>
              <% @last_ten_revisions.each do |revision| %>
                
                <li><a href="#<%=revision.id%>" data-toggle="tab"><%= @counter %></a>
                </li>
                <% @counter += 1 %>
              <% end %>
          </ul>
          <div class="tab-content">
          <!-- This sets up the first active content tab. -->
          <div class="tab-pane active tab_box" id="<%= @first_revision.id %>">
          <h3><strong><%=@first_revision.author.name %></strong> <br><small>on <%= @first_revision.get_date %></small></h3><hr>
            <p>
            <%= @first_revision.content.gsub("}}", "").html_safe %>
            </p>
          </div>
          <!-- This iterates through the rest of the rev content for tabs. -->
            <% @last_ten_revisions.each do |revision| %>
              <div class="tab-pane tab_scroll" id="<%=revision.id%>">
                <h3><strong><%=revision.author.name %></strong><br><small>on <%= revision.get_date %></small></h3><hr>
                
                <p>
                  <%= revision.content.gsub("}}", "").html_safe %>
                </p>
              </div>
            <% end %> 
          </div> 
    </div>  
  </div>
</div>
<commit_msg>renders revision content only if not nil<commit_after><div class="row">
  <div class="col-md-6">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title">Latest Revisions</h3>
          <div class="actions pull-right">
            <!-- <i class="fa fa-chevron-down"></i>
            <i class="fa fa-times"></i> -->
          </div>
      </div>
      <div class="panel-body">
        <div class="tab-wrapper tab-left ">
          <ul class="nav nav-tabs">
          <!-- This sets up the first active left tab button -->
            <li class="active"><a href="#<%=@first_revision.id%>" data-toggle="tab">1</a>
             </li>
             <!-- This iterates through the rest of the revs to make tab buttons-->
             <% @counter = 2 %>
              <% @last_ten_revisions.each do |revision| %>
                
                <li><a href="#<%=revision.id%>" data-toggle="tab"><%= @counter %></a>
                </li>
                <% @counter += 1 %>
              <% end %>
          </ul>
          <div class="tab-content">
          <!-- This sets up the first active content tab. -->
          <div class="tab-pane active tab_box" id="<%= @first_revision.id %>">
          <h3><strong><%=@first_revision.author.name %></strong> <br><small>on <%= @first_revision.get_date %></small></h3><hr>
            <p>
            <%= @first_revision.content.gsub("}}", "").html_safe %>
            </p>
          </div>
          <!-- This iterates through the rest of the rev content for tabs. -->
            <% @last_ten_revisions.each do |revision| %>
              <div class="tab-pane tab_scroll" id="<%=revision.id%>">
                <h3><strong><%=revision.author.name %></strong><br><small>on <%= revision.get_date %></small></h3><hr>
                
                <p>
                  <%= revision.content.gsub("}}", "").html_safe if !revision.content.nil?%>
                </p>
              </div>
            <% end %> 
          </div> 
    </div>  
  </div>
</div>

{'fraction_non_alphanumeric': 0.19295634920634921, 'fraction_numerical': 0.00496031746031746, 'mean_word_length': 1.6638044914134742, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, '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': '5922625', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1209, 'n_words': 268}