<commit_before>#!/bin/bash

server1=localhost:2020
server2=localhost:2021

result=`curl --request GET --silent --output /dev/null --write-out "%{http_code}" $server1/`

if [ $result == 200 ]
then
  echo "Success"
else
  echo "Failure"
fi

case $result in
  200)
    echo "Success"
    ;;
  *)
    echo "Failure"
    ;;
esac<commit_msg>Improve test framework<commit_after>#!/bin/bash

function call {
  local output=`curl --request GET --silent --write-out "%{http_code}\n" $1`
  result=`echo -e "$output" | tail -n 1`
  body=`echo -e "$output" | head -n -1`
}

server1=localhost:2020
server2=localhost:2021

call $server1/

if [ $result == 200 ]
then
  echo "Success"
  echo -e "$body"
else
  echo "Failure"
fi

case $result in
  200)
    echo "Success"
    ;;
  *)
    echo "Failure"
    ;;
esac
{'fraction_non_alphanumeric': 0.1620603015075377, 'fraction_numerical': 0.04648241206030151, 'mean_word_length': 3.1295336787564767, 'pattern_counts': {'":': 0, '<': 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': '5234274', 'n_tokens_mistral': 334, 'n_tokens_neox': 297, 'n_words': 81}