<commit_before>#make path absolute
$rootDir = Split-Path -parent (Split-Path -parent $PSCommandPath)

# restore and compile

Write-Host "Testing HelloConsole..."

Push-Location "$rootDir\HelloConsole"

dotnet restore
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet build
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

Pop-Location

# dotnet new

Write-Host "Testing dotnet new..."

Remove-Item "$rootDir\test\test-dotnet-new" -Recurse -ErrorAction Ignore

mkdir "$rootDir\test\test-dotnet-new" -Force | Push-Location

if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet new --lang f#
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet restore
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet build
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet run a b
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

Pop-Location<commit_msg>verbose output<commit_after>#make path absolute
$rootDir = Split-Path -parent (Split-Path -parent $PSCommandPath)

# restore and compile

Write-Host "Testing HelloConsole..."

Push-Location "$rootDir\HelloConsole"

dotnet restore
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet --verbose build
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

Pop-Location

# dotnet new

Write-Host "Testing dotnet new..."

Remove-Item "$rootDir\test\test-dotnet-new" -Recurse -ErrorAction Ignore

mkdir "$rootDir\test\test-dotnet-new" -Force | Push-Location

if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet new --lang f#
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet restore
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet --verbose build
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

dotnet --verbose run a b
if ($LastExitCode -ne 0) {
    throw "Command failed with exit code $LastExitCode."
}

Pop-Location
{'fraction_non_alphanumeric': 0.1137855579868709, 'fraction_numerical': 0.00612691466083151, 'mean_word_length': 3.792452830188679, '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': '2059446', 'n_tokens_mistral': 754, 'n_tokens_neox': 731, 'n_words': 257}