<commit_before><h2> Attendance Summary </h2>
<p>
  <strong>Import CSV</strong>
  <%= form_tag import_user_time_checks_path, multipart: true do %>
    <%= file_field_tag :file %>
    <%= submit_tag 'Import' %>
    <small>
      <%= label_tag "NOTE: File should be headerless, tab separated and column sequence should be [S.No.  DATE  Check-In  Check-Out  NAME  ...]" %>
    </small>
  <% end %>
</p><br>
<% if @time_checks.empty? %>
  <% flash.now[:error] = 'No Records Found!' %>
<% else %>
  <table border="1">
    <thead>
      <tr align="left">
        <th>User</th>
        <th>Check-in Time</th>
        <th>Check-out Time</th>
        <th>Comments</th>
        <th>Spent Time</th>        
      </tr>
    </thead>
    <tbody>
      <% @time_checks.each do |time_check|%>
        <tr align="left" class="<%= cycle("odd", "even")%>">
          <td><%= User.find(time_check.user_id).name %></td>
          <td><%= time_check.check_in_time %></td>
          <td><%= time_check.check_out_time %></td>          
          <td><%= time_check.comments %></td>
          <td>
            <% unless time_check.check_out_time.nil? %>
              <% time_difference = time_check.check_out_time - time_check.check_in_time %>
              <%= Time.at(time_difference).utc.strftime("%H:%M:%S")%>
            <% end %>
          </td>          
          <td><commit_msg>minor modification: matched all table header positions to 'center' and added 'Action' for action column<commit_after><h2> Attendance Summary </h2>
<p>
  <strong>Import CSV</strong>
  <%= form_tag import_user_time_checks_path, multipart: true do %>
    <%= file_field_tag :file %>
    <%= submit_tag 'Import' %>
    <small>
      <%= label_tag "NOTE: File should be headerless, tab separated and column sequence should be [S.No.  DATE  Check-In  Check-Out  NAME  ...]" %>
    </small>
  <% end %>
</p><br>
<% if @time_checks.empty? %>
  <% flash.now[:error] = 'No Records Found!' %>
<% else %>
  <table border="1">
    <thead>
      <tr align="center">
        <th>User</th>
        <th>Check-in Time</th>
        <th>Check-out Time</th>
        <th>Comments</th>
        <th>Spent Time</th>
        <th>Action</th>        
      </tr>
    </thead>
    <tbody>
      <% @time_checks.each do |time_check|%>
        <tr align="center" class="<%= cycle("odd", "even")%>">
          <td><%= User.find(time_check.user_id).name %></td>
          <td><%= time_check.check_in_time %></td>
          <td><%= time_check.check_out_time %></td>          
          <td><%= time_check.comments %></td>
          <td>
            <% unless time_check.check_out_time.nil? %>
              <% time_difference = time_check.check_out_time - time_check.check_in_time %>
              <%= Time.at(time_difference).utc.strftime("%H:%M:%S")%>
            <% end %>
          </td>          
          <td>
{'fraction_non_alphanumeric': 0.1848208011243851, 'fraction_numerical': 0.0021082220660576245, 'mean_word_length': 2.2537142857142856, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, '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': '7545548', 'n_tokens_mistral': 1055, 'n_tokens_neox': 971, 'n_words': 196}