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

scripts_dir=$(dirname $0)
. ${scripts_dir}/../helper_scripts/cosmic/helperlib.sh

set -e

say "Running script: $0"

until minikube_start "true"
do
  say "minikube failed to start, retrying."
done

minikube_get_ip

say "Waiting for kubernetes to be available."
while ! nc -w 2 -v ${minikube_ip} 8443 2>&1 > /dev/null; do
  sleep 1 # wait for 1/10 of the second before check again
done<commit_msg>Replace ncat as it keeps an open connection untill timeout<commit_after>#!/usr/bin/env bash

scripts_dir=$(dirname $0)
. ${scripts_dir}/../helper_scripts/cosmic/helperlib.sh

set -e

say "Running script: $0"

until minikube_start "true"
do
  say "minikube failed to start, retrying."
done

minikube_get_ip

say "Waiting for kubernetes to be available."
until (echo > /dev/tcp/${minikube_ip}/8443) &> /dev/null; do
    sleep 1 
done
{'fraction_non_alphanumeric': 0.12180974477958237, 'fraction_numerical': 0.02320185614849188, 'mean_word_length': 4.167664670658683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4859837', 'n_tokens_mistral': 330, 'n_tokens_neox': 315, 'n_words': 98}