<commit_before><div class= "container page-container">
  <div class = "panel panel-default panel-shadow">
    <div class="panel-heading">
      <div class="panel-title">Submissions</div>
    </div>
    <div class="panel-body table-responsive">
      <table class="table table-bordered datatable-submission table-hover " cellspacing="0" width="100%">
        <thead >
            <tr>
                <th style="color:#ffffff; background-color: #2c3e50;">User</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Date/Time</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Prob code</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Result</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Time</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Lang</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Sol</th>
            </tr>
        </thead>
        <tbody>
          <% @Submissions.each_with_index do |submission, index|%>
            <tr>
                <td class = "user" ><%= @Users[index][:name]%></td>
                <td>
                  <time class ="timeago" datetime="<%= submission[:created_at].localtime.to_datetime%>">
                    <%= submission[:created_at].localtime.to_datetime%>
                  </time>
                </td>
                <td class = "problem"><%= @Problems[index][:name] %></td>
                <td class="submission_status" data-id ="<%= submission[:_id]%>" data-status="<%= submission[:status_code] %>">
                  <% ext = '.png' %>
                  <% ext = '.gif' if submission[:status_code] == 'PE' %>
                    <img src="/icons/<%= submission[:status_code]%><%= ext%>" alt="<%= submission[:status_code]%>" width="23" height="23" />
                      <figcaption><%= submission[:status_code] if submission[:status_code] != 'RTE'%></figcaption>
                      <figcaption><%= submission[:error_desc] if submission[:status_code] == 'RTE'%></figcaption>
                </td>
                <td>
                  <% if submission[:status_code] == 'CE' || submission[:status_code] == 'PE' %>
                    <%= "-" %>
                   <% else %>
                     <%= submission[:time_taken] %>
                   <% end %>
                </td>
                <td><%= submission.language[:lang_code]%></td>
                <td class = "submission-btn">
                  <div class="btn btn-primary btn-sm" data-get-id="<%= submission[:_id]%>">
                    view
                  </div>
                </td>
            </tr>
            <% end %>
        </tbody>
      </table>
      <div class="pagination-right">
        <%= paginate @Submissions , theme: 'twitter-bootstrap-3' %>
      </div>
    </div>

  </div>
</div>

<div class="modal fade custom_width" id="submission_modal" role="dialog" >
    <div class="modal-dialog modal-lg" role="document" style="width: 60%">
        <div class="modal-content">
            <div class="modal-header" style="border-radius: 3px;">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 style="font-size: 18px" class="modal-title"></h4>
            </div>
            <div class="modal-body" id= "code-body" style="border-radius: 3px;">
              Loading ...
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-info btn-sm" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
<commit_msg>Corrected Table Header in view Submission#index<commit_after><div class= "container page-container">
  <div class = "panel panel-default panel-shadow">
    <div class="panel-heading">
      <div class="panel-title">Submissions</div>
    </div>
    <div class="panel-body table-responsive">
      <table class="table table-bordered datatable-submission table-hover " cellspacing="0" width="100%">
        <thead >
            <tr>
                <th style="color:#ffffff; background-color: #2c3e50;">User</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Date/Time</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Prob code</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Result</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Time</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Lang</th>
                <th style="color:#ffffff; background-color: #2c3e50;">Sol</th>
            </tr>
        </thead>
        <tbody>
          <% @Submissions.each_with_index do |submission, index|%>
            <tr>
                <td class = "user" ><%= @Users[index][:name]%></td>
                <td>
                  <time class ="timeago" datetime="<%= submission[:created_at].localtime.to_datetime%>">
                    <%= submission[:created_at].localtime.to_datetime%>
                  </time>
                </td>
                <td class = "problem"><%= @Problems[index][:code] %></td>
                <td class="submission_status" data-id ="<%= submission[:_id]%>" data-status="<%= submission[:status_code] %>">
                  <% ext = '.png' %>
                  <% ext = '.gif' if submission[:status_code] == 'PE' %>
                    <img src="/icons/<%= submission[:status_code]%><%= ext%>" alt="<%= submission[:status_code]%>" width="23" height="23" />
                      <figcaption><%= submission[:status_code] if submission[:status_code] != 'RTE'%></figcaption>
                      <figcaption><%= submission[:error_desc] if submission[:status_code] == 'RTE'%></figcaption>
                </td>
                <td>
                  <% if submission[:status_code] == 'CE' || submission[:status_code] == 'PE' %>
                    <%= "-" %>
                   <% else %>
                     <%= submission[:time_taken] %>
                   <% end %>
                </td>
                <td><%= submission.language[:lang_code]%></td>
                <td class = "submission-btn">
                  <div class="btn btn-primary btn-sm" data-get-id="<%= submission[:_id]%>">
                    view
                  </div>
                </td>
            </tr>
            <% end %>
        </tbody>
      </table>
      <div class="pagination-right">
        <%= paginate @Submissions , theme: 'twitter-bootstrap-3' %>
      </div>
    </div>

  </div>
</div>

<div class="modal fade custom_width" id="submission_modal" role="dialog" >
    <div class="modal-dialog modal-lg" role="document" style="width: 60%">
        <div class="modal-content">
            <div class="modal-header" style="border-radius: 3px;">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 style="font-size: 18px" class="modal-title"></h4>
            </div>
            <div class="modal-body" id= "code-body" style="border-radius: 3px;">
              Loading ...
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-info btn-sm" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

{'fraction_non_alphanumeric': 0.1819300164024057, 'fraction_numerical': 0.012301804264625479, 'mean_word_length': 1.917464114832536, 'pattern_counts': {'":': 0, '<': 203, '<?xml version=': 0, '>': 203, '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': '6594595', 'n_tokens_mistral': 2353, 'n_tokens_neox': 2101, 'n_words': 401}