<commit_before>param(
  [Int32] $port,
  [Int32] $wrapPort,
  [string] $jlpath,
  [string] $boot,
  [string] $cwd
)

# change to working dir:
if (Test-Path $cwd) {
  cd $cwd
}

# start Julia
$proc = Start-Process "$jlpath" @("-i", "$boot", $port) -NoNewWindow -PassThru

# import GenerateConsoleCtrlEvent:
$MethodDefinition = @'
[DllImport("Kernel32.dll", CharSet = CharSet.Unicode)]
public static extern bool GenerateConsoleCtrlEvent(uint dwCtrlEvent, uint dwProcessGroupId);
[DllImport("Kernel32.dll", CharSet = CharSet.Unicode)]
public static extern bool SetConsoleCtrlHandler(EventHandler handler, bool add);<commit_msg>*actually* escape stuff, not just say so...<commit_after>param(
  [Int32] $port,
  [Int32] $wrapPort,
  [string] $jlpath,
  [string] $boot,
  [string] $cwd
)

# change to working dir:
if (Test-Path $cwd) {
  cd $cwd
}

# start Julia
$proc = Start-Process "`"$jlpath`"" @("-i", "`"$boot`"", $port) -NoNewWindow -PassThru

# import GenerateConsoleCtrlEvent:
$MethodDefinition = @'
[DllImport("Kernel32.dll", CharSet = CharSet.Unicode)]
public static extern bool GenerateConsoleCtrlEvent(uint dwCtrlEvent, uint dwProcessGroupId);
[DllImport("Kernel32.dll", CharSet = CharSet.Unicode)]
public static extern bool SetConsoleCtrlHandler(EventHandler handler, bool add);
{'fraction_non_alphanumeric': 0.14774494556765164, 'fraction_numerical': 0.012441679626749611, 'mean_word_length': 5.845744680851064, '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': '1529002', 'n_tokens_mistral': 453, 'n_tokens_neox': 441, 'n_words': 115}