<commit_before>$path = $env:homedrive + "\" + $env:homepath + "\Documents\WindowsPowerShell\Modules\todo"

if($args[0])
{
	$path = $args[0]
}

if(!(Test-Path $path))
{
	mkdir $path
}

$files = @("license.txt", "readme.markdown", `
 "todo.ps1xml", "todo.psd1", `
 "todo.psm1", "todo_cfg.ps1")

Copy-Item -path $files -destination $path

$path = $path + "\staging"

if(!(Test-Path $path))
{
	mkdir $path
}

Add-Type -AssemblyName "Microsoft.Build.Utilities.v3.5"
$msbuild = [Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToDotNetFrameworkFile("msbuild.exe", "VersionLatest")

Write-Host $msbuild

& $msbuild /p:Configuration=Release /p:TargetVersion=v3.5 /fileLogger ".\todotxtlib.net\todotxtlib.net.csproj" 

Copy-Item -path .\todotxtlib.net\bin\Release\* -destination $path -force

Write-Host ""
Write-Host ""
Write-Host "Todo.txt deployed - you'll need to restart PowerShell"
Write-Host "and call 'Import-Module todo' to load it"<commit_msg>Added cleanup after deploy;<commit_after>$path = $env:homedrive + "\" + $env:homepath + "\Documents\WindowsPowerShell\Modules\todo"

if($args[0])
{
	$path = $args[0]
}

if(!(Test-Path $path))
{
	mkdir $path
}

$files = @("license.txt", "readme.markdown", `
 "todo.ps1xml", "todo.psd1", `
 "todo.psm1", "todo_cfg.ps1")

Copy-Item -path $files -destination $path

$path = $path + "\staging"

if(!(Test-Path $path))
{
	mkdir $path
}

Add-Type -AssemblyName "Microsoft.Build.Utilities.v3.5"
$msbuild = [Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToDotNetFrameworkFile("msbuild.exe", "VersionLatest")

Write-Host $msbuild

& $msbuild /p:Configuration=Release /p:TargetVersion=v3.5 /fileLogger ".\todotxtlib.net\todotxtlib.net.csproj" 

Copy-Item -path .\todotxtlib.net\bin\Release\* -destination $path -force

Remove-Item Task.dll
Remove-Item Task.pdb
Remove-Item msbuild.log

Write-Host ""
Write-Host ""
Write-Host "Todo.txt deployed - you'll need to restart PowerShell"
Write-Host "and call 'Import-Module todo' to load it"
{'fraction_non_alphanumeric': 0.1751640585562847, 'fraction_numerical': 0.010095911155981827, 'mean_word_length': 4.881305637982196, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6733858', 'n_tokens_mistral': 769, 'n_tokens_neox': 749, 'n_words': 142}