<commit_before>window.setInterval(function(){
  function reqListener () {
    var rsp = JSON.parse(this.responseText)
    console.log(rsp);
    if (rsp.now - rsp.issued > 60*50){
      window.alert("Your session has expired.")
    }
  }
  var oReq = new XMLHttpRequest();
  oReq.addEventListener("load", reqListener);
  oReq.open("POST", "../security/server.php?checkStatus");
  oReq.send();
}, (1000*60*5));<commit_msg>don't bother instances where security disabled<commit_after>window.setInterval(function(){
  function reqListener () {
    var rsp = JSON.parse(this.responseText)
    console.log(rsp);
    if (rsp.issued && (rsp.now - rsp.issued > 60*50)){
      window.alert("Your session has expired.")
    }
  }
  var oReq = new XMLHttpRequest();
  oReq.addEventListener("load", reqListener);
  oReq.open("POST", "../security/server.php?checkStatus");
  oReq.send();
}, (1000*60*5));
{'fraction_non_alphanumeric': 0.1732283464566929, 'fraction_numerical': 0.024746906636670417, 'mean_word_length': 4.028248587570621, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1978183', 'n_tokens_mistral': 306, 'n_tokens_neox': 290, 'n_words': 55}