<commit_before>

function resizeDiv() {
  vpw = $(window).width();
  menusizemax= 875;
  min = parseInt($(".hdr").css("min-width"));

  if (vpw >= menusizemax) {
    if ($("#search:focus").size() == 1) {  // run this if user set focus on search box
        $("#searchbox").width($(window).width()-260-$("#rightbox").width());
    }
    $("#rightbox").show();
    $("#menu").hide();
  } else {
    $("#rightbox").hide();
    $("#menu").show();
    if (vpw > min && vpw < menusizemax && $("#search:focus").size() == 1) {
      $("#searchbox").width($(window).width()-295);
    }
  }
  document.getElementById('search').value = vpw +" "+ min;
}

if(Meteor.isClient)
{
  Template.header.onRendered(function(){
    if(Session.get('criteria') == undefined)
    {
      Session.set('criteria', []);
    }
    resizeDiv();
  }),
  search = function() {
    var criteria = Session.get('criteria');
    if(criteria != undefined)
    {
      if(window.location.pathname  != '/')
      {
        window.location.href = "/";
      }
      var text = document.getElementById('search').value;
      Session.setPersistent('criteria', text);
      if(text != '')<commit_msg>Fix value<commit_after>

function resizeDiv() {
  vpw = $(window).width();
  menusizemax= 875;
  min = parseInt($(".hdr").css("min-width"));

  if (vpw >= menusizemax) {
    if ($("#search:focus").size() == 1) {  // run this if user set focus on search box
        $("#searchbox").width($(window).width()-260-$("#rightbox").width());
    }
    $("#rightbox").show();
    $("#menu").hide();
  } else {
    $("#rightbox").hide();
    $("#menu").show();
    if (vpw > min && vpw < menusizemax && $("#search:focus").size() == 1) {
      $("#searchbox").width($(window).width()-295);
    }
  }
//  document.getElementById('search').value = vpw +" "+ min;
}

if(Meteor.isClient)
{
  Template.header.onRendered(function(){
    if(Session.get('criteria') == undefined)
    {
      Session.set('criteria', []);
    }
    resizeDiv();
  }),
  search = function() {
    var criteria = Session.get('criteria');
    if(criteria != undefined)
    {
      if(window.location.pathname  != '/')
      {
        window.location.href = "/";
      }
      var text = document.getElementById('search').value;
      Session.setPersistent('criteria', text);
      if(text != '')
{'fraction_non_alphanumeric': 0.23269896193771628, 'fraction_numerical': 0.009515570934256055, 'mean_word_length': 2.960616438356164, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4216299', 'n_tokens_mistral': 783, 'n_tokens_neox': 768, 'n_words': 125}