<commit_before>#docker build -t somatic/bat-country .
docker run  -e "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" -e "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY"  -d -p 5000:5000 somatic/bat-country python /home/ubuntu/somaticagent/web.py -s
sleep 1
curl --fail -X POST -F i=@tests/slawek.jpg -F o=blah.jpg  http://127.0.0.1:5000/run
<commit_msg>Add test with apitester.py<commit_after>#docker build -t somatic/bat-country .
docker run  -e "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" -e "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY"  -d -p 5000:5000 somatic/bat-country python /home/ubuntu/somaticagent/web.py -s
sleep 1
curl --fail -X POST -F i=@tests/slawek.jpg -F o=blah.jpg  http://1192.168.3.11:5000/run
sleep 1
docker run  -e "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" -e "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY"  -t -p 5000:5000 somatic/bat-country python /home/ubuntu/somaticagent/apitester.py -n 1
{'fraction_non_alphanumeric': 0.13111111111111112, 'fraction_numerical': 0.057777777777777775, 'mean_word_length': 4.7025316455696204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3578112', 'n_tokens_mistral': 436, 'n_tokens_neox': 377, 'n_words': 75}