<commit_before>require.load = function (context, moduleName, url) {
  var xhr;
  xhr = new XMLHttpRequest();
  xhr.open("GET", chrome.extension.getURL(url) + '?r=' + new Date().getTime(), true);
  xhr.onreadystatechange = function (e) {
    if (xhr.readyState === 4 && xhr.status === 200) {
      eval(xhr.responseText);
      context.completeLoad(moduleName)
    }
  };
  xhr.send(null);
};<commit_msg>Eval scripts with correct 'this' setting<commit_after>(function() {
  var global = this;
  require.load = function (context, moduleName, url) {
    var xhr;
    xhr = new XMLHttpRequest();
    xhr.open("GET", chrome.extension.getURL(url) + '?r=' + new Date().getTime(), true);
    xhr.onreadystatechange = function (e) {
      if (xhr.readyState === 4 && xhr.status === 200) {
        eval.call(global, xhr.responseText);
        context.completeLoad(moduleName)
      }
    };
    xhr.send(null);
  };
})();
{'fraction_non_alphanumeric': 0.17453347969264543, 'fraction_numerical': 0.008781558726673985, 'mean_word_length': 3.4057971014492754, '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': '4593277', 'n_tokens_mistral': 324, 'n_tokens_neox': 311, 'n_words': 64}