<commit_before>VERSION=$1
echo running tests for $VERSION of postgresql
UUID=$(cat /proc/sys/kernel/random/uuid)
PAYLOAD='{"platform":"local","boxfile":{"extensions":{},"locale":"en_US.UTF-8"},"uid":"'$UUID'","logtap_host":"127.0.0.1"}'
echo boxfile: "$PAYLOAD"

pass "unable to start the $VERSION container" docker run --privileged=true -d --name $UUID nanobox/mariadb:$VERSION
defer docker kill $UUID

# we should be able to run the basic configure hook
pass "unable to run the configure hook for $VERSION" docker exec $UUID /opt/bin/default-configure "$PAYLOAD"

# now we just need to verify that changes were atually made correctly.<commit_msg>Test the code image.<commit_after>VERSION=$1
echo running tests for $VERSION of postgresql
UUID=$(cat /proc/sys/kernel/random/uuid)
PAYLOAD='{"platform":"local","boxfile":{"extensions":{},"locale":"en_US.UTF-8"},"uid":"'$UUID'","logtap_host":"127.0.0.1"}'
echo boxfile: "$PAYLOAD"

pass "unable to start the $VERSION container" docker run --privileged=true -d --name $UUID nanobox/code:$VERSION
defer docker kill $UUID

# we should be able to run the basic configure hook
pass "unable to run the configure hook for $VERSION" docker exec $UUID /opt/bin/default-configure "$PAYLOAD"

# now we just need to verify that changes were atually made correctly.
{'fraction_non_alphanumeric': 0.1453846153846154, 'fraction_numerical': 0.012307692307692308, 'mean_word_length': 5.81151832460733, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3676228', 'n_tokens_mistral': 414, 'n_tokens_neox': 405, 'n_words': 138}