<commit_before>// Now we are faking email sending a bit
// Here we are manually adding 1200ms wait time to mimic 
// Actual time spent on sending emails

var orig = AppConfig.configurePackage;
AppConfig.configurePackage = function(type) {
  if(type == 'email') {
    Meteor._sleepForMs(2300);
  }
  return orig.apply(this, arguments);
};<commit_msg>added new override machanism<commit_after>// nastly hack to prevent to delay email sending
// dev mode email is simply printing it to the console
// so we are going to use that to delay

var Fiber = Npm.require('fibers');
var origWrite = process.stdout.write;
process.stdout.write = function() {
  if(Fiber.current) {
    Meteor._sleepForMs(1000);
  }
  return origWrite.apply(process.stdout, arguments);
};
{'fraction_non_alphanumeric': 0.10449735449735449, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 4.220689655172414, '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': '618264', 'n_tokens_mistral': 237, 'n_tokens_neox': 223, 'n_words': 80}