<commit_before>exports.locate = function(load) {
  console.log();
  return window.location.protocol + '//' + load.name;
};

exports.fetch = function(load) {
  return new Promise(function(resolve, reject) {
    var head = document.getElementsByTagName('head')[0];
    var s = document.createElement('script');
    s.async = true;

    function complete(evt) {
      if (s.readyState && s.readyState !== 'loaded' && s.readyState != 'complete'){
        return;
      }
      cleanup();
    }

    function error(evt) {
      cleanup();
      reject(evt);
    }

    if (s.attachEvent) {<commit_msg>Resolve promise<commit_after>exports.locate = function(load) {
  console.log();
  return window.location.protocol + '//' + load.name;
};

exports.fetch = function(load) {
  return new Promise(function(resolve, reject) {
    var head = document.getElementsByTagName('head')[0];
    var s = document.createElement('script');
    s.async = true;

    function complete(evt) {
      if (s.readyState && s.readyState !== 'loaded' && s.readyState != 'complete'){
        return;
      }
      cleanup();
      resolve('');
    }

    function error(evt) {
      cleanup();
      reject(evt);
    }

    if (s.attachEvent) {
{'fraction_non_alphanumeric': 0.16075845012366036, 'fraction_numerical': 0.0016488046166529267, 'mean_word_length': 2.878594249201278, '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': '1001207', 'n_tokens_mistral': 381, 'n_tokens_neox': 381, 'n_words': 74}