<commit_before>Push-Location $PSScriptRoot

if(Test-Path .\artifacts) { Remove-Item .\artifacts -Force -Recurse }

& dotnet restore

$revision = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = 1 }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];

Push-Location src/Serilog

& dotnet pack -c Release -o ..\..\.\artifacts --version-suffix=$revision
if($LASTEXITCODE -ne 0) { exit 1 }    

Pop-Location

Push-Location test/Serilog.Tests

& dotnet test
if($LASTEXITCODE -ne 0) { exit 2 }

Pop-Location

Pop-Location<commit_msg>Build binaries for tests to consume<commit_after>Push-Location $PSScriptRoot

if(Test-Path .\artifacts) { Remove-Item .\artifacts -Force -Recurse }

& dotnet restore

$revision = @{ $true = $env:APPVEYOR_BUILD_NUMBER; $false = 1 }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL];

Push-Location src/Serilog

& dotnet build -c Release
if($LASTEXITCODE -ne 0) { exit 1 }    

& dotnet pack -c Release -o ..\..\.\artifacts --version-suffix=$revision
if($LASTEXITCODE -ne 0) { exit 1 }    

Pop-Location

Push-Location test/Serilog.Tests

& dotnet test
if($LASTEXITCODE -ne 0) { exit 2 }

Pop-Location

Pop-Location
{'fraction_non_alphanumeric': 0.1400359066427289, 'fraction_numerical': 0.010771992818671455, 'mean_word_length': 3.826839826839827, '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': '6448665', 'n_tokens_mistral': 425, 'n_tokens_neox': 408, 'n_words': 101}