<commit_before>extends layout

block content
  .container
    include ./includes/searchbar.jade
  #query_info
    #result_head
      h3 Results
    #query_head
      p
       | Your query: 
       em= query

  if results.length == 0
    .container
      p No results. Please try again!
  else 
    each result in results
      .container
        .result
          .excerpt
            ul.default
              each highlighted in result.highlight.content
                li!= highlighted.replace(/(\r\n|\n|\r)/gm,"")
          .source 
            strong= result.fields.title
            br
            a(href=result.fields.original_source_url) Source
  #pagination_container
    .pagination
      ul
        if currentPage > 1
          li.page-prev
            a(href='/search?q=' + query + '&page=' + (currentPage - 1)) Prev
        li
          ul
            - var i = 1
            while i <= pages + 1
              li<commit_msg>Add empty 'View Full Text' link.<commit_after>extends layout

block content
  .container
    include ./includes/searchbar.jade
  #query_info
    #result_head
      h3 Results
    #query_head
      p
       | Your query: 
       em= query

  if results.length == 0
    .container
      p No results. Please try again!
  else 
    each result in results
      .container
        .result
          .excerpt
            ul.default
              each highlighted in result.highlight.content
                li!= highlighted.replace(/(\r\n|\n|\r)/gm,"")
          .source 
            strong= result.fields.title
            br
            a(href='#') View Full Text
            br
            a(href=result.fields.original_source_url) Source
  #pagination_container
    .pagination
      ul
        if currentPage > 1
          li.page-prev
            a(href='/search?q=' + query + '&page=' + (currentPage - 1)) Prev
        li
          ul
            - var i = 1
            while i <= pages + 1
              li
{'fraction_non_alphanumeric': 0.08782742681047766, 'fraction_numerical': 0.0061633281972265025, 'mean_word_length': 1.3990147783251232, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2178274', 'n_tokens_mistral': 566, 'n_tokens_neox': 539, 'n_words': 151}