<commit_before><table id = "teams-table" class="table tablesorter">
  <thead>
  <tr>
    <th class="unsortable sort-index">Index</th><th>Team Name</th><th>Project Level</th><th>Has dropped</th><th>Student 1</th><th>Student 2</th>
    <th>Adviser</th><th>Mentor</th><th>Submission 1</th><th>Submission 2</th><th>Submission 3</th><th class="unsortable">Cohort</th><th class="unsortable">Actions</th>
  </tr>
  </thead>
  <tbody>
  <% locals[:teams].each_with_index do |team, idx| %>
      <tr>
        <td><%= idx + 1 %></td>
        <td>
          <%= render 'team_name_representation', locals: {team: team} %>
        </td>
        <td><%= team.get_project_level %></td>
        <td><%= team.has_dropped %></td>
        <td><%= team.get_team_members[1] == nil ? "": team.get_team_members[0].user_name %></td>
        <td><%= team.get_team_members[1] == nil ? "": team.get_team_members[1].user_name %></td>
        <td><%= team.adviser ? team.adviser.user.user_name : 'Not assigned' %></td>
        <td><%= team.mentor ? team.mentor.user.user_name : 'Not assigned' %></td>
        <td>
          <%if team.get_team_submission_status(team.get_own_submissions_in_order[1]) == "Submitted" %>
            <% submission = team.get_own_submissions_in_order[1] %>
          <a class="btn btn-primary btn-s" href="<%= milestone_team_submission_path(submission.milestone_id, submission.team_id, submission.id)%>"> View Submission </a>
          <% else %>
            <%= team.get_team_submission_status(team.get_own_submissions_in_order[1]) %>
          <% end %>
        </td>
        <td>
          <%if team.get_team_submission_status(team.get_own_submissions_in_order[2]) == "Submitted" %>
            <% submission = team.get_own_submissions_in_order[2] %>
            <a class="btn btn-primary btn-s" href="<%= milestone_team_submission_path(submission.milestone_id, submission.team_id, submission.id)%>"> View Submission </a>
          <% else %>
            <%= team.get_team_submission_status(team.get_own_submissions_in_order[3]) %>
          <% end %>
        </td>
        <td>
          <%if team.get_team_submission_status(team.get_own_submissions_in_order[3]) == "Submitted" %>
            <% submission = team.get_own_submissions_in_order[3] %>
            <a class="btn btn-primary btn-s" href="<%= milestone_team_submission_path(submission.milestone_id, submission.team_id, submission.id)%>"> View Submission </a>
          <% else %>
            <%= team.get_team_submission_status(team.get_own_submissions_in_order[3]) %>
          <% end %>
        </td>
        <td><%= team.cohort %></td>
        <td>
          <% if can_current_user_view_team(team) %>
              <a class="btn btn-primary btn-xs" href="<%=  team_path(team.id) %>">View</a>
          <% end %>
          <% if can_current_user_edit_team(team) %>
              <a class="btn btn-default btn-xs" href="<%= edit_team_path(team.id) %>">Edit</a>
          <% end %>
          <% if can_current_user_delete_team(team) %>
              <%= link_to 'Delete', team_path(team.id), method: :delete, class: 'btn btn-danger btn-xs',
                data: { confirm: 'Are you sure you want to delete this team and all associated resources?' } %>
          <% end %>
        </td>
      </tr>
  <% end %>
  </tbody>
</table>
<commit_msg>Change size of submission buttons<commit_after><table id = "teams-table" class="table tablesorter">
  <thead>
  <tr>
    <th class="unsortable sort-index">Index</th><th>Team Name</th><th>Project Level</th><th>Has dropped</th><th>Student 1</th><th>Student 2</th>
    <th>Adviser</th><th>Mentor</th><th>Submission 1</th><th>Submission 2</th><th>Submission 3</th><th class="unsortable">Cohort</th><th class="unsortable">Actions</th>
  </tr>
  </thead>
  <tbody>
  <% locals[:teams].each_with_index do |team, idx| %>
      <tr>
        <td><%= idx + 1 %></td>
        <td>
          <%= render 'team_name_representation', locals: {team: team} %>
        </td>
        <td><%= team.get_project_level %></td>
        <td><%= team.has_dropped %></td>
        <td><%= team.get_team_members[1] == nil ? "": team.get_team_members[0].user_name %></td>
        <td><%= team.get_team_members[1] == nil ? "": team.get_team_members[1].user_name %></td>
        <td><%= team.adviser ? team.adviser.user.user_name : 'Not assigned' %></td>
        <td><%= team.mentor ? team.mentor.user.user_name : 'Not assigned' %></td>
        <td>
          <%if team.get_team_submission_status(team.get_own_submissions_in_order[1]) == "Submitted" %>
            <% submission = team.get_own_submissions_in_order[1] %>
          <a class="btn btn-primary btn-xs" href="<%= milestone_team_submission_path(submission.milestone_id, submission.team_id, submission.id)%>"> View Submission </a>
          <% else %>
            <%= team.get_team_submission_status(team.get_own_submissions_in_order[1]) %>
          <% end %>
        </td>
        <td>
          <%if team.get_team_submission_status(team.get_own_submissions_in_order[2]) == "Submitted" %>
            <% submission = team.get_own_submissions_in_order[2] %>
            <a class="btn btn-primary btn-xs" href="<%= milestone_team_submission_path(submission.milestone_id, submission.team_id, submission.id)%>"> View Submission </a>
          <% else %>
            <%= team.get_team_submission_status(team.get_own_submissions_in_order[3]) %>
          <% end %>
        </td>
        <td>
          <%if team.get_team_submission_status(team.get_own_submissions_in_order[3]) == "Submitted" %>
            <% submission = team.get_own_submissions_in_order[3] %>
            <a class="btn btn-primary btn-xs" href="<%= milestone_team_submission_path(submission.milestone_id, submission.team_id, submission.id)%>"> View Submission </a>
          <% else %>
            <%= team.get_team_submission_status(team.get_own_submissions_in_order[3]) %>
          <% end %>
        </td>
        <td><%= team.cohort %></td>
        <td>
          <% if can_current_user_view_team(team) %>
              <a class="btn btn-primary btn-xs" href="<%=  team_path(team.id) %>">View</a>
          <% end %>
          <% if can_current_user_edit_team(team) %>
              <a class="btn btn-default btn-xs" href="<%= edit_team_path(team.id) %>">Edit</a>
          <% end %>
          <% if can_current_user_delete_team(team) %>
              <%= link_to 'Delete', team_path(team.id), method: :delete, class: 'btn btn-danger btn-xs',
                data: { confirm: 'Are you sure you want to delete this team and all associated resources?' } %>
          <% end %>
        </td>
      </tr>
  <% end %>
  </tbody>
</table>

{'fraction_non_alphanumeric': 0.17658580684043995, 'fraction_numerical': 0.005725478378785596, 'mean_word_length': 2.875072971395213, 'pattern_counts': {'":': 4, '<': 223, '<?xml version=': 0, '>': 223, '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': '3815337', 'n_tokens_mistral': 2437, 'n_tokens_neox': 2252, 'n_words': 378}