<commit_before>.col-md-12
  .page-header
    h1
      = "Papers of " + @activity.name
  div.seach_bar
    = form_tag admin_activity_papers_path(@activity), method: :get
      span.search_field
        = " Search by:"
        = select_tag "search_field", options_for_select(fixed_search_fields + get_all_custom_field_strings, params[:search_field]), include_blank: true 
      span.search_type
        = " Search type:"
        = select_tag "search_type", options_for_select(["like","equal"], params[:search_type])
      span.search_key
        = " Keyword:"
        = text_field_tag "search_key", params[:search_key]
      span.search_submit
        = " | "
        = submit_tag("Search", class: "btn btn-primary")
        = " | "
        = submit_tag("Clear Search", class: "btn btn-info")
        = " | "
        = link_to "Stats", admin_activity_stats_path(@activity), class: "btn btn-success"
  = form_for @notification, url: admin_activity_mails_path(@activity) do |f|
    table.table.tble-striped.papers
      thead
        tr
          th
            = check_box_tag "notification_check_all", nil, false, id: "notification_check_all"
          th
            | #
            = sortable("id")
          th
            | Title
            = sortable("title")<commit_msg>#64 Add show paper count<commit_after>.col-md-12
  .page-header
    h1
      = "Papers of " + @activity.name
  div.seach_bar
    = form_tag admin_activity_papers_path(@activity), method: :get
      span.search_field
        = " Search by:"
        = select_tag "search_field", options_for_select(fixed_search_fields + get_all_custom_field_strings, params[:search_field]), include_blank: true 
      span.search_type
        = " Search type:"
        = select_tag "search_type", options_for_select(["like","equal"], params[:search_type])
      span.search_key
        = " Keyword:"
        = text_field_tag "search_key", params[:search_key]
      span.search_submit
        = " | "
        = submit_tag("Search", class: "btn btn-primary")
        = " | "
        = submit_tag("Clear Search", class: "btn btn-info")
        = " | "
        = link_to "Stats", admin_activity_stats_path(@activity), class: "btn btn-success"
  = form_for @notification, url: admin_activity_mails_path(@activity) do |f|
    p
      = "Total: #{@papers.size} papers"
    table.table.tble-striped.papers
      thead
        tr
          th
            = check_box_tag "notification_check_all", nil, false, id: "notification_check_all"
          th
            | #
            = sortable("id")
          th
            | Title
            = sortable("title")
{'fraction_non_alphanumeric': 0.12197928653624857, 'fraction_numerical': 0.0030686612965093976, 'mean_word_length': 2.4091503267973855, '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': '1870084', 'n_tokens_mistral': 815, 'n_tokens_neox': 800, 'n_words': 147}