<commit_before>// IE <= 10 can fire "interactive" too early (#243).
var isOldIE = !!document.attachEvent;  // attachEvent was removed in IE11.

function isReady() {
  if (isOldIE) {
    return document.readyState === 'complete';
  } else {
    return document.readyState === 'loading' || document.readyState === 'complete';
  }<commit_msg>ready: "interactive" rather than "loading".<commit_after>// IE <= 10 can fire "interactive" too early (#243).
var isOldIE = !!document.attachEvent;  // attachEvent was removed in IE11.

function isReady() {
  if (isOldIE) {
    return document.readyState === 'complete';
  } else {
    return document.readyState === 'interactive' || document.readyState === 'complete';
  }
{'fraction_non_alphanumeric': 0.1544943820224719, 'fraction_numerical': 0.019662921348314606, 'mean_word_length': 4.0928571428571425, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3902159', 'n_tokens_mistral': 224, 'n_tokens_neox': 210, 'n_words': 64}