<commit_before>.f-c-index-header
  h1.f-c-index-header__h1
    a.f-c-index-header__h1-a href=title_url
      = title

  - if model.respond_to?(:by_query) && options[:by_query] != false
    = query_form do |f|
      .input-group
        = f.input(:by_query, label: false, \
                             wrapper: false, \
                             autocomplete: query_autocomplete, \
                             input_html: { value: params[:by_query], id: nil })
        .input-group-append
          button[
            class="btn"
            class="fa fa-search"
            type="submit"
          ]
          - if controller.params[:by_query].present?
            a[
              class="btn"
              class="fa fa-times"
              href=query_reset_url
            ]

        - if controller.send(:index_filters).present?
          - controller.send(:index_filters).keys.each do |key|
            - if controller.params[key].present?
              = f.hidden_field key, value: controller.params[key], id: nil

  - if options[:csv]
    a.btn.btn-secondary.f-c-index-header__btn href=csv_path
      i.fa.fa-download<>
      ' CSV

  - if options[:react_new]
    button.btn.btn-success[
      class="f-c-index-header__btn"
      class="f-c-index-header__btn--new"
      class="f-c-index-header__btn--react"
      type="button"
    ]
      = render(:_new_button_label)

  - else
    - if options[:types] || options[:new_dropdown_links]
      .f-c-index-header__new-dropdown
        == cell('folio/console/dropdown', title: render(:_new_button_label),  \
                                          class_name: 'btn btn-success', \
                                          links: new_dropdown_links)
<commit_msg>add :right option to console/index/header<commit_after>.f-c-index-header
  h1.f-c-index-header__h1
    a.f-c-index-header__h1-a href=title_url
      = title

  - if model.respond_to?(:by_query) && options[:by_query] != false
    = query_form do |f|
      .input-group
        = f.input(:by_query, label: false, \
                             wrapper: false, \
                             autocomplete: query_autocomplete, \
                             input_html: { value: params[:by_query], id: nil })
        .input-group-append
          button[
            class="btn"
            class="fa fa-search"
            type="submit"
          ]
          - if controller.params[:by_query].present?
            a[
              class="btn"
              class="fa fa-times"
              href=query_reset_url
            ]

        - if controller.send(:index_filters).present?
          - controller.send(:index_filters).keys.each do |key|
            - if controller.params[key].present?
              = f.hidden_field key, value: controller.params[key], id: nil

  - if options[:right]
    == options[:right]

  - if options[:csv]
    a.btn.btn-secondary.f-c-index-header__btn href=csv_path
      i.fa.fa-download<>
      ' CSV

  - if options[:react_new]
    button.btn.btn-success[
      class="f-c-index-header__btn"
      class="f-c-index-header__btn--new"
      class="f-c-index-header__btn--react"
      type="button"
    ]
      = render(:_new_button_label)

  - else
    - if options[:types] || options[:new_dropdown_links]
      .f-c-index-header__new-dropdown
        == cell('folio/console/dropdown', title: render(:_new_button_label),  \
                                          class_name: 'btn btn-success', \
                                          links: new_dropdown_links)

{'fraction_non_alphanumeric': 0.12617220801364024, 'fraction_numerical': 0.0017050298380221654, 'mean_word_length': 1.6307922272047832, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3512110', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1046, 'n_words': 163}