<commit_before>var path = require('path');

process.on('uncaughtException', function (err) {
  console.error(err.message || err);
  process.exit(1);
})

require('../dist/cli/git-cz.js').bootstrap({
  cliPath: path.join(__dirname, '../')
});<commit_msg>fix(cli): Exit CLI with 1(as failed) when received SIGINT (#736)<commit_after>var path = require('path');

process.on('uncaughtException', function (err) {
  console.error(err.message || err);
  process.exit(1);
});

// catch SIGINT signal
process.stdin.on('data', function (key) {
  if (key == '\u0003') {
    process.exit(130); // 128 + SIGINT
  }
});

require('../dist/cli/git-cz.js').bootstrap({
  cliPath: path.join(__dirname, '../')
});
{'fraction_non_alphanumeric': 0.22046109510086456, 'fraction_numerical': 0.023054755043227664, 'mean_word_length': 4.387596899224806, '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': '3654744', 'n_tokens_mistral': 254, 'n_tokens_neox': 237, 'n_words': 45}