<commit_before>$indir = "$Env:BUILD_SOURCESDIRECTORY\bin"
$outdir = "$Env:SYSTEM_ARTIFACTSDIRECTORY\archive"
$version = $Env:BUILD_BUILDNUMBER

Write-Host "indir=$indir"
Write-Host "outdir=$outdir"
Write-Host "Version=$version"

if (Test-Path $outdir) {Remove-Item -Path $outdir -Recurse}
if (!(Test-Path $outdir)) {New-Item -Path $outdir -Type Directory}

function Compress {
  <#
  .SYNOPSIS
  Compress a file with logging
  .EXAMPLE
   Compress -Source "inpath\MrMAPI.exe" -Target "outpath\MrMAPI.exe.$version.zip"
  .PARAMETER Source
  Name of the source file
  .PARAMETER Target
  Name of the target file
  #>
  [CmdletBinding()]
  param
  (
    [Parameter(Mandatory=$True)]
    [string]Source,
    [Parameter(Mandatory=$True)]
    [string]Target
    )
  process
  {
    Write-Host "Compressing $Source to $Target"
    #Try
    {
      Compress-Archive $Source $Target
    }
    #Catch
    {
    }
  }
}

Compress -Source "$indir\Win32\MrMAPI\MrMAPI.exe" -Target "$outdir\MrMAPI.exe.$version.zip"
Compress -Source "$indir\Win32\MrMAPI\MrMAPI.pdb" -Target "$outdir\MrMAPI.pdb.$version.zip"
Compress -Source "$indir\x64\MrMAPI\MrMAPI.exe" -Target "$outdir\MrMAPI.exe.x64.$version.zip"
Compress -Source "$indir\x64\MrMAPI\MrMAPI.exe" -Target "$outdir\MrMAPI.pdb.x64.$version.zip"
Compress -Source "$indir\Win32\Release\MFCMAPI.exe" -Target "$outdir\MFCMAPI.exe.$version.zip"
Compress -Source "$indir\Win32\Release\MFCMAPI.pdb" -Target "$outdir\MFCMAPI.pdb.$version.zip"
Compress -Source "$indir\x64\Release\MFCMAPI.exe" -Target "$outdir\MFCMAPI.exe.x64.$version.zip"
Compress -Source "$indir\x64\Release\MFCMAPI.exe" -Target "$outdir\MFCMAPI.pdb.x64.$version.zip"<commit_msg>Fix parameter names in script<commit_after>$indir = "$Env:BUILD_SOURCESDIRECTORY\bin"
$outdir = "$Env:SYSTEM_ARTIFACTSDIRECTORY\archive"
$version = $Env:BUILD_BUILDNUMBER

Write-Host "indir=$indir"
Write-Host "outdir=$outdir"
Write-Host "Version=$version"

if (Test-Path $outdir) {Remove-Item -Path $outdir -Recurse}
if (!(Test-Path $outdir)) {New-Item -Path $outdir -Type Directory}

function Compress {
  <#
  .SYNOPSIS
  Compress a file with logging
  .EXAMPLE
   Compress -Source "inpath\MrMAPI.exe" -Target "outpath\MrMAPI.exe.$version.zip"
  .PARAMETER Source
  Name of the source file
  .PARAMETER Target
  Name of the target file
  #>
  [CmdletBinding()]
  param
  (
    [Parameter(Mandatory=$True)]
    [string]$Source,
    [Parameter(Mandatory=$True)]
    [string]$Target
    )
  process
  {
    Write-Host "Compressing $Source to $Target"
    #Try
    {
      Compress-Archive $Source $Target
    }
    #Catch
    {
    }
  }
}

Compress -Source "$indir\Win32\MrMAPI\MrMAPI.exe" -Target "$outdir\MrMAPI.exe.$version.zip"
Compress -Source "$indir\Win32\MrMAPI\MrMAPI.pdb" -Target "$outdir\MrMAPI.pdb.$version.zip"
Compress -Source "$indir\x64\MrMAPI\MrMAPI.exe" -Target "$outdir\MrMAPI.exe.x64.$version.zip"
Compress -Source "$indir\x64\MrMAPI\MrMAPI.exe" -Target "$outdir\MrMAPI.pdb.x64.$version.zip"
Compress -Source "$indir\Win32\Release\MFCMAPI.exe" -Target "$outdir\MFCMAPI.exe.$version.zip"
Compress -Source "$indir\Win32\Release\MFCMAPI.pdb" -Target "$outdir\MFCMAPI.pdb.$version.zip"
Compress -Source "$indir\x64\Release\MFCMAPI.exe" -Target "$outdir\MFCMAPI.exe.x64.$version.zip"
Compress -Source "$indir\x64\Release\MFCMAPI.exe" -Target "$outdir\MFCMAPI.pdb.x64.$version.zip"
{'fraction_non_alphanumeric': 0.1553973902728351, 'fraction_numerical': 0.014234875444839857, 'mean_word_length': 4.102874432677761, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '466292', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1304, 'n_words': 227}