<commit_before>#!/usr/bin/env bash

set -e

scriptDir=$(dirname "${BASH_SOURCE[0]}")
PATH="$HOME/.dotnet/:$PATH"
dotnet publish -f netcoreapp2.0 ./samples/SystemdTestApp/
cp -R ./samples/SystemdTestApp/bin/Debug/netcoreapp2.0/publish/ $scriptDir
cp -R ~/.dotnet/ $scriptDir

image=$(docker build -qf $scriptDir/Dockerfile $scriptDir)
container=$(docker run -Pd $image)

# Try to connect to SystemdTestApp once a second up to 10 times via all available ports.
for i in {1..10}; do
    curl -f http://$(docker port $container 8080/tcp) \<commit_msg>React to aspnet/BuildTools#611 (#2409)<commit_after>#!/usr/bin/env bash

set -e

scriptDir=$(dirname "${BASH_SOURCE[0]}")
PATH="$PWD/.dotnet/:$PATH"
dotnet publish -f netcoreapp2.0 ./samples/SystemdTestApp/
cp -R ./samples/SystemdTestApp/bin/Debug/netcoreapp2.0/publish/ $scriptDir
cp -R ./.dotnet/ $scriptDir

image=$(docker build -qf $scriptDir/Dockerfile $scriptDir)
container=$(docker run -Pd $image)

# Try to connect to SystemdTestApp once a second up to 10 times via all available ports.
for i in {1..10}; do
    curl -f http://$(docker port $container 8080/tcp) \
{'fraction_non_alphanumeric': 0.15295169946332737, 'fraction_numerical': 0.03130590339892665, 'mean_word_length': 4.278301886792453, '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': '797878', 'n_tokens_mistral': 419, 'n_tokens_neox': 390, 'n_words': 115}