<commit_before>#!/bin/bash
set +e
# Remove any currently running containers
docker stop mysql teamspeak mock-esi redis nsqlookup nsqadmin nsqd | xargs docker rm

# MySQL Server
docker run --net=host --name=mysql --health-cmd='mysqladmin ping --silent' -d -p 127.0.0.1:3306:3306 -h sql.evedata -e MYSQL_ALLOW_EMPTY_PASSWORD=true percona

# Teamspeak Server
docker run --net=host --name=teamspeak -d -p 127.0.0.1:9987:9987/udp -p 127.0.0.1:30033:30033 -p 127.0.0.1:10011:10011 -p 127.0.0.1:41144:41144 mbentley/teamspeak clear_database=1 serveradmin_password=<PASSWORD>

# Mock ESI Server
docker run --net=host --name=mock-esi -d  -h mock-esi -p 127.0.0.1:8080:8080 antihax/mock-esi

# Redis 
docker run --net=host --name=redis -d -p 127.0.0.1:6379:6379 -h evedata.sql redis

# NSQ Service
docker run --net=host --name=nsqlookup -d -p 127.0.0.1:4160:4160 -p 4161:4161 -h nsqlookupd1.nsq nsqio/nsq /nsqlookupd
docker run --net=host --name=nsqadmin -d -p 127.0.0.1:4171:4171 -h nsqadmin.nsq nsqio/nsq /nsqadmin --lookupd-http-address=127.0.0.1:4161
docker run --net=host --name=nsqd -d -p 127.0.0.1:4151:4151 -p 4150:4150 -h localhost nsqio/nsq /nsqd --lookupd-tcp-address=127.0.0.1:4160 -max-msg-size=8388608

# Get the admin token for the TS server
until [ `docker inspect -f "{{.State.Status}}" teamspeak | grep -c running` -eq 1 ]
do
    sleep 1
    echo TeamSpeak not ready yet.
done
echo TeamSpeak Ready
docker exec teamspeak /bin/bash -c 'cat /data/logs/*.log | grep -oE "token=([A-Za-z0-9+_=]+)" | cut -d= -f2' > teamspeakToken.txt
<commit_msg>ts not working in travis<commit_after>#!/bin/bash
set +e
# Remove any currently running containers
docker stop mysql teamspeak mock-esi redis nsqlookup nsqadmin nsqd | xargs docker rm

# MySQL Server
docker run --net=host --name=mysql --health-cmd='mysqladmin ping --silent' -d -p 127.0.0.1:3306:3306 -h sql.evedata -e MYSQL_ALLOW_EMPTY_PASSWORD=true percona

# Teamspeak Server
docker run --net=host --name=teamspeak -d -p 127.0.0.1:9987:9987/udp -p 127.0.0.1:30033:30033 -p 127.0.0.1:10011:10011 -p 127.0.0.1:41144:41144 mbentley/teamspeak clear_database=1 serveradmin_password=<PASSWORD>

# Mock ESI Server
docker run --net=host --name=mock-esi -d  -h mock-esi -p 127.0.0.1:8080:8080 antihax/mock-esi

# Redis 
docker run --net=host --name=redis -d -p 127.0.0.1:6379:6379 -h evedata.sql redis

# NSQ Service
docker run --net=host --name=nsqlookup -d -p 127.0.0.1:4160:4160 -p 4161:4161 -h nsqlookupd1.nsq nsqio/nsq /nsqlookupd
docker run --net=host --name=nsqadmin -d -p 127.0.0.1:4171:4171 -h nsqadmin.nsq nsqio/nsq /nsqadmin --lookupd-http-address=127.0.0.1:4161
docker run --net=host --name=nsqd -d -p 127.0.0.1:4151:4151 -p 4150:4150 -h localhost nsqio/nsq /nsqd --lookupd-tcp-address=127.0.0.1:4160 -max-msg-size=8388608

# Get the admin token for the TS server
until [ `docker inspect -f "{{.State.Status}}" teamspeak | grep -c running` -eq 1 ]
do
    sleep 1
    docker logs teamspeak
    echo TeamSpeak not ready yet.
done
echo TeamSpeak Ready
docker exec teamspeak /bin/bash -c 'cat /data/logs/*.log | grep -oE "token=([A-Za-z0-9+_=]+)" | cut -d= -f2' > teamspeakToken.txt

{'fraction_non_alphanumeric': 0.15065432492818384, 'fraction_numerical': 0.12511969358442387, 'mean_word_length': 3.515850144092219, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 24, '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': '1603039', 'n_tokens_mistral': 1574, 'n_tokens_neox': 1311, 'n_words': 339}