<commit_before>- @scope = definitions

.box-header
  - if input_tags.present?
    h3.box-title All Job Definitions tagged by #{input_tags.join(', ')}
  - else
    h3.box-title All Job Definitions

  .row
    #job_search.col-md-4.col-md-offset-8
      = form_tag job_definitions_path, method: :get, role: 'form', remote: true do
        .form-group
          .input-group
            = search_field_tag :q, params[:q], class: 'form-control', placeholder: 'Search'
            - for tag in input_tags
              = hidden_field_tag 'tag[]', tag
            span.input-group-btn
              button.btn.btn-flat
                i.fa.fa-search
#definitions.box-body
  - if definitions.present?
    table.table.table-hover
      tbody
        tr
          th &nbsp;
          th #
          th.col-md-3 Name
          th.col-md-3 Administrators
          th.col-md-5 Tags / Description
          th.col-md-1 &nbsp;
        - for definition in definitions
          tr
            td
              span.star-holder
                = star_link_for(definition)
            td= definition.id
            td.no-decorate= link_to definition.name, definition, class: ''
            td.no-decorate
              - definition.admins.each do |user|
                = link_to user.name, user_path(user)
                br
            td
              - definition.tags.each do |tag|
                =link_to tag.name, job_definitions_path('tag': [tag.name]), class: 'label label-default spacer-right-3'
              = first_line(definition.description)
            td
              = link_to definition, class: 'btn btn-sm btn-default' do
                i class="fa fa-chevron-right"
                | &nbsp;
                span class="small" View Details

  - else
    - if params[:q].present?
      .text-muted.well.well-sm.no-shadow No results found for the query.
    - else
      .text-muted.well.well-sm.no-shadow There are no job definitions yet.
.box-footer#pagination
  = paginate definitions, theme: 'list', remote: true<commit_msg>fixup! Add tags to job list<commit_after>- @scope = definitions

.box-header
  - if input_tags.present?
    h3.box-title All Job Definitions tagged by #{input_tags.join(', ')}
  - else
    h3.box-title All Job Definitions

  .row
    #job_search.col-md-4.col-md-offset-8
      = form_tag job_definitions_path, method: :get, role: 'form', remote: true do
        .form-group
          .input-group
            = search_field_tag :q, params[:q], class: 'form-control', placeholder: 'Search'
            - for tag in input_tags
              = hidden_field_tag 'tag[]', tag
            span.input-group-btn
              button.btn.btn-flat
                i.fa.fa-search
#definitions.box-body
  - if definitions.present?
    table.table.table-hover
      tbody
        tr
          th &nbsp;
          th #
          th.col-md-3 Name
          th.col-md-3 Administrators
          th.col-md-5 Tags / Description
          th.col-md-1 &nbsp;
        - for definition in definitions
          tr
            td
              span.star-holder
                = star_link_for(definition)
            td= definition.id
            td.no-decorate= link_to definition.name, definition
            td.no-decorate
              - definition.admins.each do |user|
                = link_to user.name, user_path(user)
                br
            td
              - definition.tags.each do |tag|
                =link_to tag.name, job_definitions_path('tag': [tag.name]), class: 'label label-default spacer-right-3'
              = first_line(definition.description)
            td
              = link_to definition, class: 'btn btn-sm btn-default' do
                i class="fa fa-chevron-right"
                | &nbsp;
                span class="small" View Details

  - else
    - if params[:q].present?
      .text-muted.well.well-sm.no-shadow No results found for the query.
    - else
      .text-muted.well.well-sm.no-shadow There are no job definitions yet.
.box-footer#pagination
  = paginate definitions, theme: 'list', remote: true
{'fraction_non_alphanumeric': 0.10449963117777232, 'fraction_numerical': 0.004425866732235063, 'mean_word_length': 1.6381322957198443, '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': '4553021', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1195, 'n_words': 289}