<commit_before>define((require, exports, module)=>{
  const koru            = require('koru');
  require('koru/server');
  const StackErrorConvert = require('koru/stack-error-convert');
  const UserAccount     = require('koru/user-account');
  const Ranking         = require('models/ranking');
  const EventPub        = require('pubsub/event-pub');
  const OrgPub          = require('pubsub/org-pub');
  const SelfPub         = require('pubsub/self-pub');

  require('models/reg-upload-server');

  console.log(`org-node KORU_APP_VERSION = `+process.env.KORU_APP_VERSION);
  if (process.env.KORU_APP_VERSION !== undefined) {
    StackErrorConvert.start({sourceMapDir: '../build', lineAdjust: -1});
  }

  const emailConfig = koru.config.userAccount.emailConfig;
  emailConfig.sendResetPasswordEmailText = (user, resetToken)=> require('server/email-text')
    .sendResetPasswordEmailText(user, resetToken);

  module.onUnload((mod, error)=>{
    if (error) return;
    const modId = mod.id;
    setTimeout(()=>{
      require(modId, sc =>{sc.start && sc.start()});
    });
  });


  return ()=>{
    require('koru/email').initPool(koru.config.mailUrl);
    UserAccount.init();
  };
});<commit_msg>fix stack traces for new bundle method<commit_after>define((require, exports, module)=>{
  const koru            = require('koru');
  require('koru/server');
  const StackErrorConvert = require('koru/stack-error-convert');
  const UserAccount     = require('koru/user-account');
  const Ranking         = require('models/ranking');
  const EventPub        = require('pubsub/event-pub');
  const OrgPub          = require('pubsub/org-pub');
  const SelfPub         = require('pubsub/self-pub');

  require('models/reg-upload-server');

  console.log(`org-node KORU_APP_VERSION = `+process.env.KORU_APP_VERSION);
  if (process.env.KORU_APP_VERSION !== void 0) {
    StackErrorConvert.start({sourceMapDir: '../build'});
  }

  const emailConfig = koru.config.userAccount.emailConfig;
  emailConfig.sendResetPasswordEmailText = (user, resetToken)=> require('server/email-text')
    .sendResetPasswordEmailText(user, resetToken);

  module.onUnload((mod, error)=>{
    if (error) return;
    const modId = mod.id;
    setTimeout(()=>{
      require(modId, sc =>{sc.start && sc.start()});
    });
  });


  return ()=>{
    require('koru/email').initPool(koru.config.mailUrl);
    UserAccount.init();
  };
});
{'fraction_non_alphanumeric': 0.16708333333333333, 'fraction_numerical': 0.0008333333333333334, 'mean_word_length': 3.7544554455445542, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5356108', 'n_tokens_mistral': 776, 'n_tokens_neox': 770, 'n_words': 127}