<commit_before># Stop script execution when a non-terminating error occurs
$ErrorActionPreference = "Stop"

Write-Output "Installing chocolatey package manager"
Set-ExecutionPolicy Bypass -Scope Process -Force
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Write-Output "Installing awscli"
choco install -y awscli
If ($lastexitcode -ne 0) { Exit $lastexitcode }<commit_msg>windows: pin awscli to v1; v2 breaks 'aws ecr get-login'<commit_after># Stop script execution when a non-terminating error occurs
$ErrorActionPreference = "Stop"

Write-Output "Installing chocolatey package manager"
Set-ExecutionPolicy Bypass -Scope Process -Force
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Write-Output "Installing awscli"
# pinned because awscli v2 drops 'aws ecr get-login'
# https://github.com/buildkite-plugins/ecr-buildkite-plugin/issues/37
choco install -y awscli --version=1.18.11
If ($lastexitcode -ne 0) { Exit $lastexitcode }
{'fraction_non_alphanumeric': 0.11026615969581749, 'fraction_numerical': 0.013307984790874524, 'mean_word_length': 5.75, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1355278', 'n_tokens_mistral': 329, 'n_tokens_neox': 324, 'n_words': 93}