<commit_before><div id="workflow_filters">
  <h3>Currently showing</h3>
  <% unless (params.keys & ['category_id', 'uploader_id', 'query']).empty? %>
    <ul>
      <% unless params[:category_id].blank? %>
        <li>
          In category <strong><%= WorkflowCategory.find_by_id(params[:category_id]).try(:name)-%></strong>
          <%= workflow_filter('(clear)', params, :category_id, nil) -%>
        </li>
      <% end %>
      <% unless params[:uploader_id].blank? %>
        <li>
          Uploaded by <strong><%= User.find_by_id(params[:uploader_id]).try(:person).try(:name)-%></strong>
          <%= workflow_filter('(clear)', params, :uploader_id, nil) -%>
        </li>
      <% end %>
      <% unless params[:query].blank? %>
        <li>
          Matching query: <strong><%= params[:query]-%></strong>
          <%= workflow_filter('(clear)', params, :query, nil) -%>
        </li>
      <% end %>
    </ul>
    <%= link_to 'Clear all filters', workflows_path -%>
  <% else %>
      All workflows
  <% end %>
  <h3>Filter by category</h3>
  <ul>
    <% WorkflowCategory.all.each do |category| %>
      <li><%= workflow_filter category.name, params, :category_id, category.id -%></li>
    <% end %>
  </ul>
  <h3>Filter by uploader</h3>
  <ul>
  <% User.all.each do |user| %>
    <li><%= workflow_filter  user.person.name, params, :uploader_id, user.id -%></li>
  <% end %>
  </ul>
</div><commit_msg>Made sure current user is at the top of the workflow uploader filter list<commit_after><div id="workflow_filters">
  <h3>Currently showing</h3>
  <% unless (params.keys & ['category_id', 'uploader_id', 'query']).empty? %>
    <ul>
      <% unless params[:category_id].blank? %>
        <li>
          In category <strong><%= WorkflowCategory.find_by_id(params[:category_id]).try(:name)-%></strong>
          <%= workflow_filter('(clear)', params, :category_id, nil) -%>
        </li>
      <% end %>
      <% unless params[:uploader_id].blank? %>
        <li>
          Uploaded by <strong><%= User.find_by_id(params[:uploader_id]).try(:person).try(:name)-%></strong>
          <%= workflow_filter('(clear)', params, :uploader_id, nil) -%>
        </li>
      <% end %>
      <% unless params[:query].blank? %>
        <li>
          Matching query: <strong><%= params[:query]-%></strong>
          <%= workflow_filter('(clear)', params, :query, nil) -%>
        </li>
      <% end %>
    </ul>
    <%= link_to 'Clear all filters', workflows_path -%>
  <% else %>
      All workflows
  <% end %>
  <h3>Filter by category</h3>
  <ul>
    <% WorkflowCategory.all.each do |category| %>
      <li><%= workflow_filter category.name, params, :category_id, category.id -%></li>
    <% end %>
  </ul>
  <h3>Filter by uploader</h3>
  <ul>
    <% if logged_in? && current_user.person %>
      <li><%= workflow_filter  current_user.person.name, params, :uploader_id, current_user.id -%> (you)</li>
    <% end %>
  <% User.all.each do |user| %>
    <% unless user == current_user %>
      <li><%= workflow_filter  user.person.name, params, :uploader_id, user.id -%></li>
    <% end %>
  <% end %>
  </ul>
</div>
{'fraction_non_alphanumeric': 0.20623193061355605, 'fraction_numerical': 0.0038548024413748794, 'mean_word_length': 2.802197802197802, 'pattern_counts': {'":': 0, '<': 114, '<?xml version=': 0, '>': 114, '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': '5985069', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1057, 'n_words': 211}