<commit_before>- if @search_results.empty?
  = render partial: "search/results/empty"
- else
  .gray-content-block
    Search results for
    %code
      = @search_term
    - unless @show_snippets
      - if @project
        in project #{link_to @project.name_with_namespace, [@project.namespace.becomes(Namespace), @project]}
      - elsif @group
        in group #{link_to @group.name, @group}

  .results.prepend-top-10
    .search-results
      - if @scope == 'projects'
        .term
          = render 'shared/projects/list', projects: @objects
      - else
        = render partial: "search/results/#{@scope.singularize}", collection: @objects
    = paginate @objects, theme: 'gitlab'

:javascript
  $(".search-results .term").highlight("#{escape_javascript(params[:search])}");<commit_msg>Include pagination for other than projects search<commit_after>- if @search_results.empty?
  = render partial: "search/results/empty"
- else
  .gray-content-block
    Search results for
    %code
      = @search_term
    - unless @show_snippets
      - if @project
        in project #{link_to @project.name_with_namespace, [@project.namespace.becomes(Namespace), @project]}
      - elsif @group
        in group #{link_to @group.name, @group}

  .results.prepend-top-10
    .search-results
      - if @scope == 'projects'
        .term
          = render 'shared/projects/list', projects: @objects
      - else
        = render partial: "search/results/#{@scope.singularize}", collection: @objects
        = paginate @objects, theme: 'gitlab'

:javascript
  $(".search-results .term").highlight("#{escape_javascript(params[:search])}");
{'fraction_non_alphanumeric': 0.1383108935128519, 'fraction_numerical': 0.0024479804161566705, 'mean_word_length': 2.997555012224939, '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': '6869308', 'n_tokens_mistral': 496, 'n_tokens_neox': 483, 'n_words': 111}