<commit_before>jQuery(function() {
  // Initialize lunr with the fields to be searched, plus the boost.
  window.idx = lunr(function () {
    this.field('id');
    this.field('title');
    this.field('content', { boost: 10 });
    this.field('author');
    this.field('tags');
  });

  // Get the generated search_data.json file so lunr.js can search it locally.
  window.data = $.getJSON('/search_data/index.html');
<commit_msg>Fixed base_url for github_pages<commit_after>jQuery(function() {
  // Initialize lunr with the fields to be searched, plus the boost.
  window.idx = lunr(function () {
    this.field('id');
    this.field('title');
    this.field('content', { boost: 10 });
    this.field('author');
    this.field('tags');
  });

 var base_url =  document.getElementById('base_url').getAttribute("value")
  // Get the generated search_data.json file so lunr.js can search it locally.
  window.data = $.getJSON(base_url + '/search_data/index.html');

{'fraction_non_alphanumeric': 0.1600831600831601, 'fraction_numerical': 0.004158004158004158, 'mean_word_length': 3.767326732673267, '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': '189813', 'n_tokens_mistral': 301, 'n_tokens_neox': 294, 'n_words': 75}