<commit_before># Setup
$ErrorActionPreference = "Stop"
if (-not $env:Configuration) { $env:Configuration = "Release" }
if (-not $env:PackageVersion) { $env:PackageVersion = (gitversion | ConvertFrom-Json).FullSemVer }

# Helper functions
function Invoke-BuildStep { param([scriptblock]$cmd) & $cmd; if ($LASTEXITCODE -ne 0) { exit 1 } }

# Build
Push-Location src/GraphQL.Annotations
Invoke-BuildStep { dotnet restore }
Invoke-BuildStep { dotnet pack --include-symbols }
Pop-Location

# End
exit
<commit_msg>Run GitVersion when building locally<commit_after># Setup
$ErrorActionPreference = "Stop"
if (-not $env:Configuration) { $env:Configuration = "Release" }
if (-not $env:BuildRunner) { $env:PackageVersion = (gitversion | ConvertFrom-Json).NuGetVersionV2 }

# Helper functions
function Invoke-BuildStep { param([scriptblock]$cmd) & $cmd; if ($LASTEXITCODE -ne 0) { exit 1 } }

# Build
Push-Location src/GraphQL.Annotations
Invoke-BuildStep { dotnet restore }
Invoke-BuildStep { dotnet pack --include-symbols }
Pop-Location

# End
exit

{'fraction_non_alphanumeric': 0.13076923076923078, 'fraction_numerical': 0.004807692307692308, 'mean_word_length': 5.46583850931677, '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': '278658', 'n_tokens_mistral': 331, 'n_tokens_neox': 327, 'n_words': 84}