<commit_before>.row
  .col-xs-12
    table.table
      thead
        tr
          th Project
          th Last check
          th Days to deadline
          th Last checked by
          th History
          th Check now?
          th Enable/disable
          th Assign reviewer
      tbody
        - project_checks.each do |pc|
          tr class="#{pc.css_date_class}" id="#{pc.project_name}"
            td = pc.project_name
            td = pc.last_check_date
            td = pc.days_to_deadline
            td = pc.last_checked_by
            td class="#{pc.project_name}"
              .toggle_history.btn.btn-success
                | Show
            td
              - if pc.enabled?
                = form_tag complete_check_path, method: :post do
                  = hidden_field_tag :project_check_id, pc.id
                  = button_tag type: :submit,
                    class: 'btn btn-success btn-sm',
                    data: { confirm: "Are you sure?", disable_with: pc.css_disabled_state } do
                      i.glyphicon.glyphicon-ok
                      | Check!
            td
              - if pc.enabled?
                = link_to project_check_toggle_state_path(pc), method: :post,
                  class: "btn btn-danger",
                  data: { confirm: "Are you sure?", disable_with: pc.css_disabled_state } do
                  i.glyphicon.glyphicon-ok-circle

              - else
                = link_to project_check_toggle_state_path(pc), method: :post,
                  class: "btn btn-success",
                  data: { confirm: "Are you sure?", disable_with: pc.css_disabled_state } do
                  i.glyphicon.glyphicon-ok-circle
            td
              .btn.btn-success
                | Pick random
            = render template: "review_history/reminder_project_checks",
              locals: { checks: pc.assignments, project_name: pc.project_name, table_size: pc.assignments_table_size }<commit_msg>display user if one has been assigned to do the review, else use form to pick random<commit_after>.row
  .col-xs-12
    table.table
      thead
        tr
          th Project
          th Last check
          th Days to deadline
          th Last checked by
          th History
          th Check now?
          th Enable/disable
          th Assign reviewer
      tbody
        - project_checks.each do |pc|
          tr class="#{pc.css_date_class}" id="#{pc.project_name}"
            td = pc.project_name
            td = pc.last_check_date
            td = pc.days_to_deadline
            td = pc.last_checked_by
            td class="#{pc.project_name}"
              .toggle_history.btn.btn-success
                | Show
            td
              - if pc.enabled?
                = form_tag complete_check_path, method: :post do
                  = hidden_field_tag :project_check_id, pc.id
                  = button_tag type: :submit,
                    class: 'btn btn-success btn-sm',
                    data: { confirm: "Are you sure?", disable_with: pc.css_disabled_state } do
                      i.glyphicon.glyphicon-ok
                      | Check!
            td
              - if pc.enabled?
                = link_to project_check_toggle_state_path(pc), method: :post,
                  class: "btn btn-danger",
                  data: { confirm: "Are you sure?", disable_with: pc.css_disabled_state } do
                  i.glyphicon.glyphicon-ok-circle

              - else
                = link_to project_check_toggle_state_path(pc), method: :post,
                  class: "btn btn-success",
                  data: { confirm: "Are you sure?", disable_with: pc.css_disabled_state } do
                  i.glyphicon.glyphicon-ok-circle
            td
              - if pc.has_appointed_review?
                | Assigned: #{pc.assigned_reviewer}

              - else
                = form_tag assign_checker_path, method: :post do
                  = hidden_field_tag :project_check_id, pc.id
                  = button_tag type: :submit,
                    class: 'btn btn-success btn-sm' do
                      | Pick random

            = render template: "review_history/reminder_project_checks",
              locals: { checks: pc.assignments, project_name: pc.project_name, table_size: pc.assignments_table_size }
{'fraction_non_alphanumeric': 0.08015708015708016, 'fraction_numerical': 0.000924000924000924, 'mean_word_length': 1.3988919667590027, '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': '3849940', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1139, 'n_words': 286}