<commit_before>
    <%= render :partial => "shared/repos_branches" %>
    <%= render :partial => "shared/bugs" %>

    <div class="last_commits">

      <div class="commit">
        <div class="commit_pix"></div>
        <% stats = quick_stats(@commit.stats.files) %>
        <h4><%= @commit.sha %><%= @commit.author.name %> @ <%= @commit.commited_time.strftime("%x %X") %> on branch <a href="branch"><%= @commit.branch.name %></a></h4><div class="sub"><%= stats['files'] %> files, <%= stats['adds'] %> adds, <%= stats['subs'] %> subs, </div>
        <p><%= @commit.log %></p>
      </div>

    <div class="diff">
      <% i = 0 %>
      <% @diffs.each do |d| %>
        <div class="diff">
          <h4><%= link_to_function (d.b_path,  "Element.toggle('diff#{d.id}')") %> <span class="sub">(<%= @commit.stats.files[i][1] %> adds, <%= @commit.stats.files[i][2] %> subs)</span></h4>

          <div id="diff<%= d.id %>" style="display:none;">
          <% if d.b_path.split('.').last == "rb" %>
            <% format = :ruby %>
          <% elsif d.b_path.split('.').last == "erb" %>
            <% format = :rhtml %>
          <% elsif d.b_path.split('.').last == "css" %>
            <% format = :css %>
          <% end %>
          <%= CodeRay.scan(d.diff, format).div(:css => :class) %>
          </div>
        </div>
        <% i+= 1 %>
      <% end %>
    </div>

    </div>
    <div class="clear"></div>
  
  </div>
<commit_msg>fixing display of commit message : adding gsub call to replace eol with html paragraph carriage return<commit_after>
    <%= render :partial => "shared/repos_branches" %>
    <%= render :partial => "shared/bugs" %>

    <div class="last_commits">

      <div class="commit">
        <div class="commit_pix"></div>
        <% stats = quick_stats(@commit.stats.files) %>
        <h4><%= @commit.sha %><%= @commit.author.name %> @ <%= @commit.commited_time.strftime("%x %X") %> on branch <a href="branch"><%= @commit.branch.name %></a></h4><div class="sub"><%= stats['files'] %> files, <%= stats['adds'] %> adds, <%= stats['subs'] %> subs, </div>
        <p><%= @commit.log.gsub(/$/, "<br />") %></p>
      </div>

    <div class="diff">
      <% i = 0 %>
      <% @diffs.each do |d| %>
        <div class="diff">
          <h4><%= link_to_function (d.b_path,  "Element.toggle('diff#{d.id}')") %> <span class="sub">(<%= @commit.stats.files[i][1] %> adds, <%= @commit.stats.files[i][2] %> subs)</span></h4>

          <div id="diff<%= d.id %>" style="display:none;">
          <% if d.b_path.split('.').last == "rb" %>
            <% format = :ruby %>
          <% elsif d.b_path.split('.').last == "erb" %>
            <% format = :rhtml %>
          <% elsif d.b_path.split('.').last == "css" %>
            <% format = :css %>
          <% end %>
          <%= CodeRay.scan(d.diff, format).div(:css => :class) %>
          </div>
        </div>
        <% i+= 1 %>
      <% end %>
    </div>

    </div>
    <div class="clear"></div>
  
  </div>

{'fraction_non_alphanumeric': 0.25662529352566255, 'fraction_numerical': 0.005367326400536733, 'mean_word_length': 2.3244147157190636, 'pattern_counts': {'":': 0, '<': 112, '<?xml version=': 0, '>': 118, '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': '5900057', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1031, 'n_words': 196}