<commit_before>extends domain

block domain-content
  form.form-search
    input(type="text", name="query", value=query).search-query.span9
    .pull-right
      input(type="submit", value="Search").btn.btn-primary
    .clearfix

  if query !== null
    p
      | Request URL: 
      a(href=requestURL, target="_blank")= requestURL

    if !results.hits || results.hits.hit.length === 0
      .alert.alert-error
        strong Not found 
        | for query '
        strong= query
        | '
    else
      table.table.table-bordered
        each hit, index in results.hits.hit
          tr.id-row
            td= index + start + 1
            td.id-cell(colspan=2)= hit.id
          each value, columnName in hit.data
            tr
              td
              td= columnName
              td= value
<commit_msg>Show number of found entries on search result<commit_after>extends domain

block domain-content
  form.form-search
    input(type="text", name="query", value=query).search-query.span9
    .pull-right
      input(type="submit", value="Search").btn.btn-primary
    .clearfix

  if query !== null
    p
      | Request URL: 
      a(href=requestURL, target="_blank")= requestURL

    if !results.hits || results.hits.hit.length === 0
      .alert.alert-error
        strong Not found 
        | for query '
        strong= query
        | '
    else
      .alert.alert-info
        strong Found #{results.hits.found} records. 
        | Showing #{results.hits.start + 1} - #{results.hits.start + results.hits.hit.length} (#{results.hits.hit.length} records).

      table.table.table-bordered
        each hit, index in results.hits.hit
          tr.id-row
            td= index + start + 1
            td.id-cell(colspan=2)= hit.id
          each value, columnName in hit.data
            tr
              td
              td= columnName
              td= value

{'fraction_non_alphanumeric': 0.11235356762513313, 'fraction_numerical': 0.004792332268370607, 'mean_word_length': 1.8298192771084338, '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': '2099648', 'n_tokens_mistral': 569, 'n_tokens_neox': 553, 'n_words': 135}