<commit_before><#

.SYNOPSIS
This script initiates the project build and deployment process.

.PARAMETER TaskList
A collection of psake tasks to invoke.

.NOTES
This script depends on the psake module.

#>

Param(
    [Parameter(Position=2)]
    [string[]]$TaskList = @("default"),

    [Parameter(Position=1)]
    [string]$NuGetKey = $null
)

Clear-Host;
Push-Location (Split-Path $PSScriptRoot -Parent);

# Restore NuGet packages.
    $nuget = "$PWD\tools\nuget.exe";
    if(-not (Test-Path $nuget -PathType Leaf))
    {
        $toolsDir = "$PWD\tools";
        if(-not (Test-Path $toolsDir -PathType Container)) { New-Item  $toolsDir -ItemType Directory | Out-Null; }
        Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile $nuget;
    }
    & $nuget restore $(Get-ChildItem -Filter "*.sln" -Recurse | Select-Object -ExpandProperty FullName -First 1);

# Import psake module
    Remove-Module [p]sake;
    $psakeModule = (Get-ChildItem "$PWD\src\[Pp]ackages\psake*\tools\psake.psm1").FullName | Sort-Object $_ | Select-Object -Last 1;
    Import-Module $psakeModule;

# Start deployment
Invoke-psake `
    -buildFile "$PWD\build\deploy.ps1"  `
    -taskList $TaskList `
    -framework 4.5.2 `
    -properties @{
        "NugetEXE" = $nuget;
        "NuGetKey" = $NuGetKey
    };

Pop-Location;
if(-not $psake.build_success) { exit 1; }<commit_msg>Update start-deployment script<commit_after><#

.SYNOPSIS
This script initiates the project build and deployment process.

.PARAMETER TaskList
A collection of psake tasks to invoke.

.NOTES
This script depends on the psake module.

#>

Param(
    [Parameter(Position=2)]
    [string[]]$TaskList = @("default"),

    [Parameter(Position=1)]
    [string]$NuGetKey = $null
)

Clear-Host;
Push-Location (Split-Path $PSScriptRoot -Parent);

# Restore NuGet packages.
    $nuget = "$PWD\tools\nuget.exe";
    if(-not (Test-Path $nuget -PathType Leaf))
    {
        $toolsDir = "$PWD\tools";
        if(-not (Test-Path $toolsDir -PathType Container)) { New-Item  $toolsDir -ItemType Directory | Out-Null; }
        Invoke-WebRequest -Uri "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile $nuget;
    }
    & $nuget restore $(Get-ChildItem -Filter "*.sln" -Recurse | Select-Object -ExpandProperty FullName -First 1);

# Import psake module
    Remove-Module [p]sake;
    $psakeModule = (Get-ChildItem "$PWD\src\[Pp]ackages\psake*\tools\psake.psm1").FullName | Sort-Object $_ | Select-Object -Last 1;
    Import-Module $psakeModule;

# Start deployment
Invoke-psake `
    -buildFile "$PWD\build\build.ps1"  `
    -taskList $TaskList `
    -framework 4.5.2 `
    -properties @{
        "NugetEXE" = $nuget;
        "NuGetKey" = $NuGetKey
    };

Pop-Location;
if(-not $psake.build_success) { exit 1; }
{'fraction_non_alphanumeric': 0.14626334519572953, 'fraction_numerical': 0.008540925266903915, 'mean_word_length': 3.220720720720721, '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': '3484764', 'n_tokens_mistral': 1017, 'n_tokens_neox': 981, 'n_words': 224}