<commit_before>#!/usr/bin/env bash
set -e

SERVER_IP=$(cat public_ip)
SERVER_URL="https://$SERVER_IP"
GET_HTTP_CODE_COMMAND="curl --write-out %{http_code} --silent --output /dev/null $SERVER_URL/user -k"

NEXT_WAIT_TIME=0
HTTP_CODE=$($GET_HTTP_CODE_COMMAND)

MAX_TRIES=5
TRY_COUNT=1
until [ $HTTP_CODE != 433 ] || [ $TRY_COUNT = $MAX_TRIES ]; do
    echo "server is not ready - wait another 1 minute"
   sleep 1m
   ((TRY_COUNT++))
   HTTP_CODE=$($GET_HTTP_CODE_COMMAND)
done

if [ $HTTP_CODE == 433 ]
then
    echo "Server is not ready :("
    exit 1
fi<commit_msg>run tests against instance<commit_after>#!/usr/bin/env bash
set -e

SERVER_IP=$(cat public_ip)
SERVER_URL="https://$SERVER_IP"
GET_HTTP_CODE_COMMAND="curl --write-out %{http_code} --silent --output /dev/null $SERVER_URL/user -k"

NEXT_WAIT_TIME=0
HTTP_CODE=$($GET_HTTP_CODE_COMMAND)

MAX_TRIES=5
TRY_COUNT=1
until [ $HTTP_CODE != 433 ] || [ $TRY_COUNT = $MAX_TRIES ]; do
    echo "server is not ready - wait another 1 minute"
   sleep 1m
   ((TRY_COUNT++))
   HTTP_CODE=$($GET_HTTP_CODE_COMMAND)
done

if [ $HTTP_CODE = 433 ]
then
    echo "Server is not ready :("
    exit 1
fi
{'fraction_non_alphanumeric': 0.14248251748251747, 'fraction_numerical': 0.02097902097902098, 'mean_word_length': 4.350467289719626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6706151', 'n_tokens_mistral': 458, 'n_tokens_neox': 437, 'n_words': 104}