<commit_before>import { spawn } from 'child_process'
import { platform } from 'os'
import { Dispatcher } from './dispatcher/dispatcher'

export function openTerminal(fullPath: string, dispatcher: Dispatcher) {
  const currentPlatform = platform()
  let command = ''

  switch (currentPlatform) {
    case 'darwin': {
      command = ''
      break
    }
    case 'win32': {
      command = ''
      break
    }
  }

  return spawn(command)
}<commit_msg>Spawn terminal process for mac<commit_after>import { spawn } from 'child_process'
import { platform } from 'os'

export function openTerminal(fullPath: string) {
  const currentPlatform = platform()
  let command = ''

  switch (currentPlatform) {
    case 'darwin': {
      command = 'open -a Terminal'
      break
    }
    case 'win32': {
      command = 'start /D "%cd%" cmd'
      break
    }
  }

  return spawn('open', [ '-a', 'Terminal', fullPath ])
}
{'fraction_non_alphanumeric': 0.12609649122807018, 'fraction_numerical': 0.0043859649122807015, 'mean_word_length': 2.986899563318777, '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': '7220594', 'n_tokens_mistral': 287, 'n_tokens_neox': 276, 'n_words': 78}