<commit_before>-#  Copyright (C) 2013, 2014, 2015 Dr. <NAME>  (<EMAIL>, <EMAIL>)
-#  Licensed under the terms of the GNU Affero General Public License v3.
-#  See the LICENSE.txt file provided with this software.

:ruby
  job ||= @job
  cs = job.job_cache_signature
  tasks ||= @tasks

#tasks.tasks

  .pull-right
    = form_tag workspace_job_path(job), method: 'GET', class: "form-inline well right-top-form" do

      %fieldset
        .pull-right
          %ul.list-inline
            %li#tasks-select-condition-item.reload{data: {cache_signature: @tasks_select_condition}}
              .form-group
                %label.sr-only{for: "tasks_select_condition"}
                = select_tag :tasks_select_condition,
                  options_for_select([["All",:all], ["With unpassed trials",:with_unpassed_trials]],
                    @tasks_select_condition),
                  class: "form-control input-sm"

            %li
              .form-group
                %label.sr-only{for: "name_substring_term"}
                =text_field_tag :name_substring_term, nil, placeholder: "substr OR substr",
                  value: @name_substring_term,
                  class: "search-query form-control input-sm"

            %li
              = render 'per_page_form_group', items_count: tasks.unscoped.count

            %li
              = link_to workspace_job_path(job), class: 'btn btn-sm btn-warning' do
                %i.icon-remove-sign
                Reset


            %li
              =button_tag type: 'submit', class: 'btn btn-sm btn-primary' do
                %i.icon-filter
                Filter

  %h2 Tasks

  .clearfix

  %table#tasks-table.tasks.table.table-striped.reload{data: {cache_signature: tasks.map(&:id)}}
    %thead
    %tbody
      - tasks.each do |task|
        = render 'task_tr', task: task


  #task-pagination.replace-without-animation.reload{data: {cache_signature: cs.tasks_signature}}
    = paginate tasks, theme: 'default'<commit_msg>Fix count<commit_after>-#  Copyright (C) 2013, 2014, 2015 Dr. <NAME>  (<EMAIL>, <EMAIL>)
-#  Licensed under the terms of the GNU Affero General Public License v3.
-#  See the LICENSE.txt file provided with this software.

:ruby
  job ||= @job
  cs = job.job_cache_signature
  tasks ||= @tasks

#tasks.tasks

  .pull-right
    = form_tag workspace_job_path(job), method: 'GET', class: "form-inline well right-top-form" do

      %fieldset
        .pull-right
          %ul.list-inline
            %li#tasks-select-condition-item.reload{data: {cache_signature: @tasks_select_condition}}
              .form-group
                %label.sr-only{for: "tasks_select_condition"}
                = select_tag :tasks_select_condition,
                  options_for_select([["All",:all], ["With unpassed trials",:with_unpassed_trials]],
                    @tasks_select_condition),
                  class: "form-control input-sm"

            %li
              .form-group
                %label.sr-only{for: "name_substring_term"}
                =text_field_tag :name_substring_term, nil, placeholder: "substr OR substr",
                  value: @name_substring_term,
                  class: "search-query form-control input-sm"

            %li
              = render 'per_page_form_group', items_count: tasks.unscoped.where(job_id: @job.id).count

            %li
              = link_to workspace_job_path(job), class: 'btn btn-sm btn-warning' do
                %i.icon-remove-sign
                Reset


            %li
              =button_tag type: 'submit', class: 'btn btn-sm btn-primary' do
                %i.icon-filter
                Filter

  %h2 Tasks

  .clearfix

  %table#tasks-table.tasks.table.table-striped.reload{data: {cache_signature: tasks.map(&:id)}}
    %thead
    %tbody
      - tasks.each do |task|
        = render 'task_tr', task: task


  #task-pagination.replace-without-animation.reload{data: {cache_signature: cs.tasks_signature}}
    = paginate tasks, theme: 'default'
{'fraction_non_alphanumeric': 0.11481574329405866, 'fraction_numerical': 0.007019303083479569, 'mean_word_length': 2.0906274206041826, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1447659', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1174, 'n_words': 265}