<commit_before>var Prom = require('es6-promise').Promise;

function delay (t) {
  function wait (fulfill) {
    setTimeout(function () {
      console.log('Resolving after', t);
      fulfill(t);
    }, t);
  }
  return new Prom(wait);
}

Promise
  .all([delay(700), delay(300), delay(500)])
  .then(function (results) {
    return delay(Math.min.apply(Math, results));
  });<commit_msg>Update 01_concurrent.js<commit_after>var Prom = require('es6-promise').Promise;

function delay (t) {
  function wait (fulfill) {
    setTimeout(function () {
      console.log('Resolving after', t);
      fulfill(t);
    }, t);
  }
  return new Prom(wait);
}

Prom
  .all([delay(700), delay(300), delay(500)])
  .then(function (results) {
    return delay(Math.min.apply(Math, results));
  });
{'fraction_non_alphanumeric': 0.17797695262483995, 'fraction_numerical': 0.028169014084507043, 'mean_word_length': 3.7393939393939393, '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': '350470', 'n_tokens_mistral': 280, 'n_tokens_neox': 269, 'n_words': 55}