<commit_before>$currentDir = split-path -parent $MyInvocation.MyCommand.Definition
$root = [System.IO.Path]::Combine($currentDir, "..\")
$packages = [System.IO.Path]::Combine($env:Temp, "packages")
$nuget = [System.IO.Path]::Combine($root, ".tools\NuGet\nuget.exe")

$solution = [System.IO.Path]::Combine($root, "PortableExtensions.sln")

task Build {
	Write-Host "Build..."
}

task Clean {
	ExecInDir {
		Write-Host "Start git clean"
		git clean -xdf 
	} $root 0
}

function ExecInDir([Parameter(Mandatory=$true)][scriptblock]$Command, [Parameter(Mandatory=$true)][string]$Path,  [int[]]$ExitCode=0) {
	$private:location = Get-Location
	Set-Location $Path
	
	Write-Host "(Run in $private:location)"
	exec $Command $ExitCode
	
	Set-Location $private:location
}

task . Build, Clean

#&([System.IO.Path]::Combine($env:Temp, "packages\Invoke-Build\tools\Invoke-Build.ps1")) -File .\.build\Build.ps1<commit_msg>add nuget restore<commit_after>$currentDir = split-path -parent $MyInvocation.MyCommand.Definition
$root = [System.IO.Path]::Combine($currentDir, "..\")
$packages = [System.IO.Path]::Combine($env:Temp, "packages")
$nuget = [System.IO.Path]::Combine($root, ".tools\NuGet\nuget.exe")

$solution = [System.IO.Path]::Combine($root, "PortableExtensions.sln")

task Build {
	Write-Host "Build..."
}

# Removes all not tracked files
task Clean {
	ExecInDir {
		Write-Host "Start git clean"
		git clean -xdf 
	} $root 0
}

# Removes all not tracked files
task RestorePackages {
	exec {
		&$nuget restore $solution
	}
}

function ExecInDir([Parameter(Mandatory=$true)][scriptblock]$Command, [Parameter(Mandatory=$true)][string]$Path,  [int[]]$ExitCode=0) {
	$private:location = Get-Location
	Set-Location $Path
	
	Write-Host "(Run in $private:location)"
	exec $Command $ExitCode
	
	Set-Location $private:location
}

task . Build, Clean, RestorePackages

<#

&([System.IO.Path]::Combine($env:Temp, "packages\Invoke-Build\tools\Invoke-Build.ps1")) -File .\.build\Build.ps1

&"C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe"

#>
{'fraction_non_alphanumeric': 0.18137013307047806, 'fraction_numerical': 0.006407097092163627, 'mean_word_length': 5.265432098765432, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1949553', 'n_tokens_mistral': 763, 'n_tokens_neox': 724, 'n_words': 131}