<commit_before>#!/bin/bash

. build/version.sh

function waitForServer {
  # Give the server some time to start up. Look for a well-known
  # bit of text in the log file. Try at most 50 times before giving up.
  C=50
  while [ $C -gt 0 ]
  do
    grep "apiman-es started!" apiman.log
    if [ $? -eq 0 ]; then
      echo "Server started."
      C=0
    else
      echo -n "."
      C=$(( $C - 1 ))
    fi
    sleep 1
  done
}

docker pull ${APIMAN}
docker run -i -p 8080:8080 -p 8443:8443 ${APIMAN} > apiman.log 2>&1 &

waitForServer<commit_msg>CIing<commit_after>#!/bin/bash

. build/version.sh

function waitForServer {
  # Give the server some time to start up. Look for a well-known
  # bit of text in the log file. Try at most 50 times before giving up.
  C=50
  while [ $C -gt 0 ]
  do
    grep "apiman-es started!" apiman.log
    if [ $? -eq 0 ]; then
      echo "Server started."
      C=0
    else
      echo -n "."
      C=$(( $C - 1 ))
    fi
    sleep 1
  done
}

docker pull ${APIMAN}
docker run -i -p 8080:8080 -p 8443:8443 ${APIMAN} > ../apiman.log 2>&1 &

waitForServer
{'fraction_non_alphanumeric': 0.12442396313364056, 'fraction_numerical': 0.04976958525345622, 'mean_word_length': 2.1941176470588237, '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': '2058273', 'n_tokens_mistral': 450, 'n_tokens_neox': 400, 'n_words': 145}