<commit_before><% if @user.projects.count > 0 %>
  <div id="user-projects">
    <% if @user.id == session[:user_id] %>
      <h1>My Projects</h1>
    <% else %>
      <h1><%= @user.name.possessive %> Projects</h1>
    <% end %>

    <ul class="project-list" id="projects-list-for-<%= @user.id %>">
      <% @user.recent_projects.each do |project| %>
        <%
          updated_text = ''
          if project.created_at != project.updated_at
            updated_text = ", updated #{time_ago_in_words(project.updated_at)} ago"
          end
        %>
        <li class="project-item" id="<%= project.id %>">
          <span class="status <%= Constants.get_status_css_class_by_id(project.status) %>">
            <span id="priority-<%= @user.id.to_s + '-' + project.id.to_s %>"><%= project.priority %>.</span>
            <%= project.name %>
          </span>
          <span class="project-actions">
            (<%= link_to 'Details', project %> | #<%= Category.find_by_id(project.category_id).name %> |
              <%= User.find_by_id(project.boss_id).name %> | <%= time_ago_in_words(project.created_at) %> ago<%= updated_text %>)
          </span>
        </li>
      <% end %>
    </ul>

    <%= form_tag(projects_prioritize_path) do %>
      <div class="hidden">
        <%= hidden_field_tag(:employee_id, @user.id) %>
        <% @user.recent_projects.each do |project| %>
          <%<commit_msg>Clean up the created/updated text code a bit<commit_after><% if @user.projects.count > 0 %>
  <div id="user-projects">
    <% if @user.id == session[:user_id] %>
      <h1>My Projects</h1>
    <% else %>
      <h1><%= @user.name.possessive %> Projects</h1>
    <% end %>

    <ul class="project-list" id="projects-list-for-<%= @user.id %>">
      <% @user.recent_projects.each do |project| %>
        <%
          time_text = ''
          
          # Created
          time_text += "added #{time_ago_in_words(project.created_at)} ago"
          
          # Updated
          if project.created_at != project.updated_at
            time_text += ", updated #{time_ago_in_words(project.updated_at)} ago"
          end
        %>
        <li class="project-item" id="<%= project.id %>">
          <span class="status <%= Constants.get_status_css_class_by_id(project.status) %>">
            <span id="priority-<%= @user.id.to_s + '-' + project.id.to_s %>"><%= project.priority %>.</span>
            <%= project.name %>
          </span>
          <span class="project-actions">
            (<%= link_to 'Details', project %> | #<%= Category.find_by_id(project.category_id).name %> |
              <%= User.find_by_id(project.boss_id).name %> | <%= time_text %>)
          </span>
        </li>
      <% end %>
    </ul>

    <%= form_tag(projects_prioritize_path) do %>
      <div class="hidden">
        <%= hidden_field_tag(:employee_id, @user.id) %>
        <% @user.recent_projects.each do |project| %>
          <%
{'fraction_non_alphanumeric': 0.1881628463906945, 'fraction_numerical': 0.0034211426616489907, 'mean_word_length': 2.2670391061452513, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 80, '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': '4030608', 'n_tokens_mistral': 1053, 'n_tokens_neox': 948, 'n_words': 151}