<commit_before><commit_msg>pm2 config<commit_after>const path = require('path');
const cwd = process.cwd();

module.exports = {
  /**
   * Application configuration section
   * http://pm2.keymetrics.io/docs/usage/application-declaration/
   */
  apps: [{
    name:            'express',
    script:          './dist/server.js',
    instances:       -1,
    exec_mode:       'cluster',
    // watch:           true,
    ignore_watch:    ['node_modules'],
    error_file:      path.join(cwd, 'logs', 'err.log'),
    out_file:        path.join(cwd, 'logs', 'out.log'),
    merge_logs:      true,
    // log_date_format: 'YYYY-MM-DD HH:mm Z',
    env:             {
      NODE_ENV: 'development',
      COMMON_VARIABLE: 'true'
    },
    env_production:  {
      NODE_ENV: 'production'
    }
  }],
  
  /**
   * Deployment section
   * http://pm2.keymetrics.io/docs/usage/deployment/
   */
  // deploy: {
  //   production: {
  //     user:          "node",
  //     host:          "172.16.58.3",
  //     ref:           "origin/master",
  //     repo:          "<EMAIL>:repo.git",
  //     path:          "/var/www/production",
  //     "post-deploy": "npm install && pm2 startOrRestart ecosystem.json --env production"
  //   },
  //   dev:        {
  //     user:          "node",
  //     host:          "172.16.58.3",
  //     ref:           "origin/master",
  //     repo:          "<EMAIL>:repo.git",
  //     path:          "/var/www/development",
  //     "post-deploy": "npm install && pm2 startOrRestart ecosystem.json --env dev",
  //     env:           {
  //       NODE_ENV: "dev"
  //     }
  //   }
  // }
};
{'fraction_non_alphanumeric': 0.175817396668723, 'fraction_numerical': 0.013571869216533004, 'mean_word_length': 1.5030864197530864, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '5173972', 'n_tokens_mistral': 570, 'n_tokens_neox': 555, 'n_words': 92}