<commit_before>"Compiling resource file"
RC /fo res\application.res res\application.rc

""
"Compiling executable"
cargo rustc --release --features "ui" -- -C link-args="/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup res\application.res"

""
"Creating output directory"
New-Item .\release\windows -type directory -Force | Out-Null
Remove-Item -Recurse .\release\windows\*

""
"Copying to output directory"
Copy-Item .\target\release\polaris.exe .\release\windows\
Copy-Item .\res\libeay32.dll .\release\windows\
Copy-Item .\res\libeay32md.dll .\release\windows\
Copy-Item .\res\DefaultConfig.toml .\release\windows\polaris.toml
Copy-Item .\web\ .\release\windows\ -recurse

""
"Creating installer"
candle -wx -arch x64 -out .\release\windows\installer.wixobj .\res\installer.wxs
light  -wx -out .\release\windows\Polaris_0.1.0.msi .\release\windows\installer.wixobj

""
Read-Host -Prompt "All clear! Press Enter to exit"<commit_msg>Release script no longer leaves artifacts behind<commit_after>"Compiling resource file"
RC /fo res\application.res res\application.rc

""
"Compiling executable"
cargo rustc --release --features "ui" -- -C link-args="/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup res\application.res"

""
"Creating output directory"
New-Item .\release\tmp -type directory -Force | Out-Null
Remove-Item -Recurse .\release\tmp\*

""
"Copying to output directory"
Copy-Item .\target\release\polaris.exe 	.\release\tmp\
Copy-Item .\res\libeay32.dll 			.\release\tmp\
Copy-Item .\res\libeay32md.dll 			.\release\tmp\
Copy-Item .\res\DefaultConfig.toml 		.\release\tmp\polaris.toml
Copy-Item .\web\ 						.\release\tmp\ -recurse

""
"Creating installer"
candle -wx -arch x64 	-out .\release\tmp\installer.wixobj 	.\res\installer.wxs
light  -wx -spdb		-out .\release\Polaris_0.1.0.msi 		.\release\tmp\installer.wixobj

"Cleaning up"
Remove-Item -Recurse .\release\tmp

""
Read-Host -Prompt "All clear! Press Enter to exit"
{'fraction_non_alphanumeric': 0.1497130933750652, 'fraction_numerical': 0.009389671361502348, 'mean_word_length': 3.5995203836930454, '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': '3187343', 'n_tokens_mistral': 723, 'n_tokens_neox': 666, 'n_words': 155}