<commit_before># The MIT License (MIT)
# Copyright (c) 2016 <NAME>
#
# https://github.com/idleberg/sublime-makensis

$DebugPreference = "SilentlyContinue"

If (-Not (Test-Path HKLM:)) {
    # This should never be shown when run from Sublime Text
    Write-Host "Error: This script is meant to be run on Windows only"
    Exit
}

If ($PSVersionTable.PSVersion.Major -lt 3) {
    # PowerShell 3.0 is integrated with Windows 8 and with Windows Server 2012
    Write-Host "Error: This script requires PowerShell 3.0 (or higher)"
    Exit
}

If (Get-Command "makensis.exe" -ErrorAction SilentlyContinue) {
    Write-Debug "'makensis.exe' found in %PATH%"
    $makensis = "makensis.exe"
} Else {
    Write-Debug "Checking registry for NSIS installation path"
    If ([System.Environment]::Is64BitOperatingSystem) {
        $nsis_key = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\NSIS'
    } Else {
        $nsis_key = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NSIS'
    }

    $nsis_path = (Get-ItemProperty -Path $nsis_key -Name InstallLocation).InstallLocation
    $makensis = Join-Path -Path $nsis_path -ChildPath "makensis.exe"
}

Try {
    Write-Debug "Executing `"$makensis $args`""
    Start-Process -NoNewWindow -FilePath "$makensis" -ArgumentList "$args"
} Catch [System.Management.Automation.CommandNotFoundException] {
    Write-Host "'makensis.exe' is not recognized as an internal or external command, operable program or batch file."
}<commit_msg>modify script<commit_after># The MIT License (MIT)
# Copyright (c) 2016 <NAME>
#
# https://github.com/idleberg/sublime-makensis

$DebugPreference = "SilentlyContinue"

If (-Not (Test-Path HKLM:)) {
    # This should never be shown when run from Sublime Text
    Write-Host "Error: This script is meant to be run on Windows only"
    Exit
}

If ($PSVersionTable.PSVersion.Major -lt 3) {
    # PowerShell 3.0 is integrated with Windows 8 and with Windows Server 2012
    Write-Host "Error: This script requires PowerShell 3.0 (or higher)"
    Exit
}

If (Get-Command "makensis.exe" -ErrorAction SilentlyContinue) {
    Write-Debug "'makensis.exe' found in %PATH%"
    $makensis = "makensis.exe"
} Else {
    Write-Debug "Checking registry for NSIS installation path"
    If ([System.Environment]::Is64BitOperatingSystem) {
        $nsis_key = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\NSIS'
    } Else {
        $nsis_key = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NSIS'
    }

    $nsis_path = (Get-ItemProperty -Path $nsis_key -Name InstallLocation).InstallLocation
    $makensis = Join-Path -Path $nsis_path -ChildPath "makensis.exe"
}

If (-Not $makensis) {
    Write-Host "'makensis.exe' is not recognized as an internal or external command, operable program or batch file."
} Else {
    Write-Debug "Executing `"$makensis $args`""
    Start-Process -NoNewWindow -FilePath "$makensis" -ArgumentList "$args"
}
{'fraction_non_alphanumeric': 0.11464321947920189, 'fraction_numerical': 0.013527223537368955, 'mean_word_length': 3.857142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?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': '609823', 'n_tokens_mistral': 1018, 'n_tokens_neox': 928, 'n_words': 268}