<commit_before>export function causeAsyncException(reason: unknown): void {
  assert(!void console.debug(stringify(reason)));
  void new Promise((_, reject) =>
    void reject(reason));
}

function stringify(target: any): string {
  try {
    return target instanceof Error && typeof target.stack === 'string'
      ? target.stack
      : target !== undefined && target !== null && typeof target.toString === 'function'
        ? target + ''
        : Object.prototype.toString.call(target);
  }
  catch (reason) {
    return stringify(reason);
  }
}<commit_msg>refactor: refactoring<commit_after>export function causeAsyncException(reason: unknown): void {
  assert(!void console.error(reason));
  void new Promise((_, reject) =>
    void reject(reason));
}
{'fraction_non_alphanumeric': 0.1424802110817942, 'fraction_numerical': 0.0, 'mean_word_length': 4.198630136986301, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3257479', 'n_tokens_mistral': 206, 'n_tokens_neox': 204, 'n_words': 53}