<commit_before>- if @projects.count == 0
  .jumbotron
    %p.center No projects found.
- else
  .dashboard-container
    %table.table.table-striped.table-borderless.table-hover
      %col{ width: '50%' }
      %col
      %col
      %col{ width: '1px' }
      %thead
        %tr
          = th_sort_field params[:order], 'projects.name', 'Name'
          %th.center Status
          %th.center Emails
          %th

      - @projects.each do |project|
        %tr{ data: { project_id: project.id } }
          %td
            = link_to project.name, project
          %td.center{ id: "project_#{project.id}_status" }
            = render 'project_preferences/status', project: project
          %td.center{ id: "project_#{project.id}_emails" }
            = render 'project_preferences/emails', project: project
          %td{ id: "project_#{project.id}_actions" }
            = render 'project_preferences/actions', project: project
<commit_msg>Show reverse order of projects on first click of column header<commit_after>- if @projects.count == 0
  .jumbotron
    %p.center No projects found.
- else
  .dashboard-container
    %table.table.table-striped.table-borderless.table-hover
      %col{ width: '50%' }
      %col
      %col
      %col{ width: '1px' }
      %thead
        %tr
          = th_sort_field_rev params[:order], 'projects.name', 'Name'
          %th.center Status
          %th.center Emails
          %th

      - @projects.each do |project|
        %tr{ data: { project_id: project.id } }
          %td
            = link_to project.name, project
          %td.center{ id: "project_#{project.id}_status" }
            = render 'project_preferences/status', project: project
          %td.center{ id: "project_#{project.id}_emails" }
            = render 'project_preferences/emails', project: project
          %td{ id: "project_#{project.id}_actions" }
            = render 'project_preferences/actions', project: project

{'fraction_non_alphanumeric': 0.12660833762223367, 'fraction_numerical': 0.004117344312918168, 'mean_word_length': 2.1609756097560977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1870114', 'n_tokens_mistral': 601, 'n_tokens_neox': 598, 'n_words': 136}