<commit_before>import { execSync } from 'child_process'

export default function editor(file, cb) {
  try {
    let result = execSync(`atom ${file}`, { stdio: 'inherit' })
    cb && cb(result)
  }
  catch(e) {
    print(
      `Error running atom, install at https://atom.io`,
      `\n  be sure to run "Atom > Install Shell Commands"`,
      e
    )
  }
}<commit_msg>:new: Execute atom on realpath of file<commit_after>import { realpathSync } from 'fs'
import { execSync } from 'child_process'

export default function editor(file, cb) {
  try {
    const realPath = realpathSync(file)
    let result = execSync(`atom ${realPath}`, { stdio: 'inherit' })
    cb && cb(result)
  }
  catch(e) {
    print(
      `Error running atom, install at https://atom.io`,
      `\n  be sure to run "Atom > Install Shell Commands"`,
      e
    )
  }
}

{'fraction_non_alphanumeric': 0.13690476190476192, 'fraction_numerical': 0.0, 'mean_word_length': 2.8935185185185186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5311997', 'n_tokens_mistral': 283, 'n_tokens_neox': 281, 'n_words': 85}