<commit_before>#!/bin/bash

function check_templates {
  cloudmonkey list templates templatefilter=all | grep isready | grep --quiet False
  return $?
}

check_templates
while [ $? -ne 1 ]; do
  date | tr -d '\n'
  echo ": Templates not ready, waiting.."
  sleep 5
  check_templates
done

# Ready
date | tr -d '\n'
echo ": Templates ready!"<commit_msg>sleep a bit longer<commit_after>#!/bin/bash

function check_templates {
  cloudmonkey list templates templatefilter=all | grep isready | grep --quiet False
  return $?
}

check_templates
while [ $? -ne 1 ]; do
  date | tr -d '\n'
  echo ": Templates not ready, waiting.."
  sleep 15
  check_templates
done

# Ready
date | tr -d '\n'
echo ": Templates ready!"
{'fraction_non_alphanumeric': 0.12112676056338029, 'fraction_numerical': 0.007042253521126761, 'mean_word_length': 3.5, 'pattern_counts': {'":': 4, '<': 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': '3131101', 'n_tokens_mistral': 251, 'n_tokens_neox': 231, 'n_words': 80}