<commit_before>Set-ExecutionPolicy Bypass -scope Process
New-Item -Type Directory -Path "$($env:ProgramFiles)\docker"
wget -outfile $env:TEMP\docker-cs-1.12.zip "https://download.docker.com/components/engine/windows-server/cs-1.12/docker-1.12.2.zip"
Expand-Archive -Path $env:TEMP\docker-cs-1.12.zip -DestinationPath $env:TEMP -Force
copy $env:TEMP\docker\*.exe $env:ProgramFiles\docker
Remove-Item $env:TEMP\docker-cs-1.12.zip
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$($env:ProgramFiles)\docker", [EnvironmentVariableTarget]::Machine)
$env:Path = $env:Path + ";$($env:ProgramFiles)\docker"
. dockerd --register-service -H npipe:// -H 0.0.0.0:2375 -G docker

Write-Host "Fix --restart=always for reboot ..."
# see https://github.com/docker/docker/issues/27544
& sc config Docker depend=LanmanWorkstation

Start-Service Docker

Write-Host "Installing WindowsServerCore container image..."
& "C:\Program Files\docker\docker.exe" pull microsoft/windowsservercore:10.0.14393.321
& "C:\Program Files\docker\docker.exe" tag microsoft/windowsservercore:10.0.14393.321 microsoft/windowsservercore:latest

Write-Host "Installing NanoServer container image..."
& "C:\Program Files\docker\docker.exe" pull microsoft/nanoserver:10.0.14393.321
& "C:\Program Files\docker\docker.exe" tag microsoft/nanoserver:10.0.14393.321 microsoft/nanoserver:latest<commit_msg>Fix sc config Docker dependency<commit_after>Set-ExecutionPolicy Bypass -scope Process
New-Item -Type Directory -Path "$($env:ProgramFiles)\docker"
wget -outfile $env:TEMP\docker-cs-1.12.zip "https://download.docker.com/components/engine/windows-server/cs-1.12/docker-1.12.2.zip"
Expand-Archive -Path $env:TEMP\docker-cs-1.12.zip -DestinationPath $env:TEMP -Force
copy $env:TEMP\docker\*.exe $env:ProgramFiles\docker
Remove-Item $env:TEMP\docker-cs-1.12.zip
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$($env:ProgramFiles)\docker", [EnvironmentVariableTarget]::Machine)
$env:Path = $env:Path + ";$($env:ProgramFiles)\docker"
. dockerd --register-service -H npipe:// -H 0.0.0.0:2375 -G docker

Write-Host "Fix --restart=always for reboot ..."
# see https://github.com/docker/docker/issues/27544
& sc.exe config Docker depend= LanmanWorkstation

Start-Service Docker

Write-Host "Installing WindowsServerCore container image..."
& "C:\Program Files\docker\docker.exe" pull microsoft/windowsservercore:10.0.14393.321
& "C:\Program Files\docker\docker.exe" tag microsoft/windowsservercore:10.0.14393.321 microsoft/windowsservercore:latest

Write-Host "Installing NanoServer container image..."
& "C:\Program Files\docker\docker.exe" pull microsoft/nanoserver:10.0.14393.321
& "C:\Program Files\docker\docker.exe" tag microsoft/nanoserver:10.0.14393.321 microsoft/nanoserver:latest
{'fraction_non_alphanumeric': 0.15755161173487867, 'fraction_numerical': 0.05287939152480985, 'mean_word_length': 5.438228438228438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7370748', 'n_tokens_mistral': 1046, 'n_tokens_neox': 921, 'n_words': 164}