<commit_before>import { exec } from 'child_process'

export function exec2(cmd: string) {
  return new Promise((resolve, reject) => {
    exec(cmd, (err, stdout, stderr) => {
      if (err) return reject(err)
      resolve(stdout || stderr)
    })
  })
}<commit_msg>update exec2<commit_after>import { exec } from 'child_process'

export function exec2(cmd: string) {
  return new Promise<string>((resolve, reject) => {
    exec(cmd, (err, stdout, stderr) => {
      if (err) return reject(err)
      resolve(stdout || stderr)
    })
  })
}
{'fraction_non_alphanumeric': 0.15213358070500926, 'fraction_numerical': 0.0055658627087198514, 'mean_word_length': 3.6551724137931036, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, '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': '2603903', 'n_tokens_mistral': 180, 'n_tokens_neox': 178, 'n_words': 45}