<commit_before>.container
  -# %h1
  -#   Search for
  -#   = @q
  .search-header
    %form.form-inline{action: search_path}
      %h1.label-heading
        %label Search
      .input-group.col-sm-12.col-md-8.col-lg-7
        %input.form-control.input-lg#query{required: "required", type: "search", autofocus: (@q.blank? ? true : false), maxlength: "256", name: "q", value: "#{@q if !@q.blank?}"}/
        .input-group-btn
          %button.btn.btn-primary.btn-lg{type: "submit"} Search

  %ul.nav.nav-tabs
    %li{class: ('active' unless @type == "Users"), role: "presentation"}
      = link_to "#" do
        Scrapers
        %span.badge #{@scrapers.size}
    %li{class: ('active' if @type == "Users"), role: "presentation"}
      = link_to "#" do
        Users
        %span.badge 7

  = render partial: "users/fake_users_list"

  -# = paginate @scrapers
  -# = render partial: "sync/scrapers/scraper", collection: @scrapers
  -# = paginate @scrapers

  - if @scrapers.empty?
    %h2 No results found
    %p
      Sorry, we couldn't find any scrapers relevant to your search term
      %strong “#{@q}”.
    %p
      Suggestions:

    %ul
      %li check the spelling
      %li try some more general or alternate terms

    %p You could also try browsing all #{link_to "scrapers", scrapers_path} or #{link_to "users", users_path}.
<commit_msg>make search type nav-tab links dynamic<commit_after>.container
  -# %h1
  -#   Search for
  -#   = @q
  .search-header
    %form.form-inline{action: search_path}
      %h1.label-heading
        %label Search
      .input-group.col-sm-12.col-md-8.col-lg-7
        %input.form-control.input-lg#query{required: "required", type: "search", autofocus: (@q.blank? ? true : false), maxlength: "256", name: "q", value: "#{@q if !@q.blank?}"}/
        .input-group-btn
          %button.btn.btn-primary.btn-lg{type: "submit"} Search

  %ul.nav.nav-tabs
    %li{class: ('active' unless @type == "Users"), role: "presentation"}
      = link_to search_path(q: @q, type: "Scrapers") do
        Scrapers
        %span.badge #{@scrapers.size}
    %li{class: ('active' if @type == "Users"), role: "presentation"}
      = link_to search_path(q: @q, type: "Users") do
        Users
        %span.badge 7

  = render partial: "users/fake_users_list"

  -# = paginate @scrapers
  -# = render partial: "sync/scrapers/scraper", collection: @scrapers
  -# = paginate @scrapers

  - if @scrapers.empty?
    %h2 No results found
    %p
      Sorry, we couldn't find any scrapers relevant to your search term
      %strong “#{@q}”.
    %p
      Suggestions:

    %ul
      %li check the spelling
      %li try some more general or alternate terms

    %p You could also try browsing all #{link_to "scrapers", scrapers_path} or #{link_to "users", users_path}.

{'fraction_non_alphanumeric': 0.15442764578833693, 'fraction_numerical': 0.007919366450683946, 'mean_word_length': 2.6710700132100396, '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': '1764069', 'n_tokens_mistral': 998, 'n_tokens_neox': 969, 'n_words': 249}