<commit_before>#!/bin/sh

port=$1
if [ -z $port ]; then
    port=3000
fi

if [ ! -z $2 ]; then
    verbose="-v"
fi

curl localhost:$port/book $verbose | json_reformat
curl localhost:$port/sell --data '{"qty":10,"prc":15}' -H "Content-Type: application/json" $verbose
curl localhost:$port/sell --data '{"qty":10,"prc":13}' -H "Content-Type: application/json" $verbose
curl localhost:$port/buy  --data '{"qty":10,"prc":7}' -H "Content-Type: application/json" $verbose
curl localhost:$port/buy  --data '{"qty":10,"prc":9.5}' -H "Content-Type: application/json" $verbose
curl localhost:$port/book $verbose | json_reformat
curl localhost:$port/sell --data '{"qty":5, "prc":9.5}' -H "Content-Type: application/json" $verbose
curl localhost:$port/book $verbose | json_reformat
curl localhost:$port/buy  --data '{"qty":6, "prc":13}' -H "Content-Type: application/json" $verbose
curl localhost:$port/book $verbose | json_reformat
curl localhost:$port/sell --data '{"qty":7, "prc":7}' -H "Content-Type: application/json" $verbose
curl localhost:$port/book $verbose | json_reformat
curl localhost:$port/sell --data '{"qty":12, "prc":6}' -H "Content-Type: application/json" $verbose
curl localhost:$port/book $verbose | json_reformat<commit_msg>Add formatting to validation shell script.<commit_after>#!/bin/sh

port=$1
if [ -z $port ]; then
    port=3000
fi

if [ ! -z $2 ]; then
    verbose="-v"
fi

echo "***"
curl --silent localhost:$port/book $verbose | json_reformat
echo
echo "***"
curl --silent localhost:$port/sell --data '{"qty":10,"prc":15}' -H "Content-Type: application/json" $verbose
echo
echo
echo "***"
curl --silent localhost:$port/sell --data '{"qty":10,"prc":13}' -H "Content-Type: application/json" $verbose
echo
echo
echo "***"
curl --silent localhost:$port/buy  --data '{"qty":10,"prc":7}' -H "Content-Type: application/json" $verbose
echo
echo
echo "***"
curl --silent localhost:$port/buy  --data '{"qty":10,"prc":9.5}' -H "Content-Type: application/json" $verbose
echo
echo
echo "***"
curl --silent localhost:$port/book $verbose | json_reformat
echo
echo "***"
curl --silent localhost:$port/sell --data '{"qty":5, "prc":9.5}' -H "Content-Type: application/json" $verbose
echo
echo
echo "***"
curl --silent localhost:$port/book $verbose | json_reformat
echo
echo "***"
curl --silent localhost:$port/buy  --data '{"qty":6, "prc":13}' -H "Content-Type: application/json" $verbose
echo
echo
echo "***"
curl --silent localhost:$port/book $verbose | json_reformat
echo
echo "***"
curl --silent localhost:$port/sell --data '{"qty":7, "prc":7}' -H "Content-Type: application/json" $verbose
echo
echo
echo "***"
curl --silent localhost:$port/book $verbose | json_reformat
echo
echo "***"
curl --silent localhost:$port/sell --data '{"qty":12, "prc":6}' -H "Content-Type: application/json" $verbose
echo
echo
echo "***"
curl --silent localhost:$port/book $verbose | json_reformat
echo
{'fraction_non_alphanumeric': 0.20138648180242635, 'fraction_numerical': 0.02218370883882149, 'mean_word_length': 5.0, 'pattern_counts': {'":': 32, '<': 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': '1801536', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1003, 'n_words': 266}