<commit_before>(function (w,d,s,urlArray,TextAreaElementTooltip){

  function createPromiseLoadScript(url) {
    return new Promise((resolve, reject) => {
      d.head.appendChild(Object.assign(d.createElement(s),{ src:url, onload:e=>resolve(e), onerror:e=>reject(e) }));
  }

  /*alert("hi1");*/
  var theTextArea = d.querySelector("textarea[title='"+TextAreaElementTooltip+"']");

  if (urlArray.length <= 0) {
    theTextArea.value = "No Library needs to load.";
    theTextArea.dispatchEvent(new Event("input")); /* None to be loaded. Done. */
  }

  var i = 0, p = createPromiseLoadScript(urlArray[i]);

  function onLoadOk(e) {
    /*alert('Library ({$i}/{$urlArray.length}) loaded: ({$urlArray[i]})');*/
    if (i >= urlArray.length - 1) {
      theTextArea.value = 'Library ({$i}/{$urlArray.length}) loaded. Done.';
      theTextArea.dispatchEvent(new Event("input")); /* The last one is loaded. Done. */
    } else {
      theTextArea.value = 'Library ({$i}/{$urlArray.length}) loaded: ({$urlArray[i]})';
      ++i;
      p=createPromiseLoadScript(urlArray[i]);
      p.then(onLoadOk).catch(onLoadFailed);
    }
  }

  function onLoadFailed(e) {
    /*alert('Library ({$i}/{$u.length}) loading FAILED! {$e} ({$u[i]})');*/
    theTextArea.value = 'Library ({$i}/{$urlArray.length}) loading FAILED! {$e} ({$urlArray[i]})';
  }

  p.then(onLoadOk).catch(onLoadFailed);

})(window,document,'script',<commit_msg>Update LoadLibsTriggerTextArea.js<commit_after>(function (w,d,s,urlArray,TextAreaElementTooltip){

  function createPromiseLoadScript(url) {
    return new Promise((resolve, reject) => {
      d.head.appendChild(Object.assign(d.createElement(s),{ src:url, onload:e=>resolve(e), onerror:e=>reject(e) }));
  }

  /*alert("hi1");*/
  let theTextArea = d.querySelector("textarea[title='"+TextAreaElementTooltip+"']");

  if (urlArray.length <= 0) {
    theTextArea.value = "No Library needs to load.";
    theTextArea.dispatchEvent(new Event("input")); /* None to be loaded. Done. */
  }

  let i = 0;

  function onLoadOk(e) {
    /*alert('Library ({$i}/{$urlArray.length}) loaded: ({$urlArray[i]})');*/
    if (i >= urlArray.length - 1) {
      theTextArea.value = 'Library ({$i}/{$urlArray.length}) loaded. Done.';
      theTextArea.dispatchEvent(new Event("input")); /* The last one is loaded. Done. */
    } else {
      theTextArea.value = 'Library ({$i}/{$urlArray.length}) loaded: ({$urlArray[i]})';
      ++i;
      createPromiseLoadScript(urlArray[i]).then(onLoadOk).catch(onLoadFailed);
    }
  }

  function onLoadFailed(e) {
    /*alert('Library ({$i}/{$u.length}) loading FAILED! {$e} ({$u[i]})');*/
    theTextArea.value = 'Library ({$i}/{$urlArray.length}) loading FAILED! {$e} ({$urlArray[i]})';
  }

  createPromiseLoadScript(urlArray[i]).then(onLoadOk).catch(onLoadFailed);

})(window,document,'script',
{'fraction_non_alphanumeric': 0.20712773465067044, 'fraction_numerical': 0.0028228652081863093, 'mean_word_length': 4.338983050847458, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3843044', 'n_tokens_mistral': 987, 'n_tokens_neox': 964, 'n_words': 169}