<commit_before>#!/bin/sh

export APK_CACHE=$HOME/.apk-cache
export OPAM_DIR=$HOME/.opam
export BUILD_UI=1

# build keyfender container
docker/build-all-in-one.sh

docker network create -d bridge --subnet 10.99.99.0/24 --gateway 10.99.99.1 dockernet
docker run -i --rm --net dockernet --ip 10.99.99.3 --name irmin -v $OPAM_DIR:/home/opam/.opam keyfender_buildbase irmin init -a http://0.0.0.0:8081 -d --verbosity=debug -s mem 2>&1 | sed "s/^/<irmin> /" &

# run keyfender on port 4433
docker run -i --rm -p4433:4433 --device=/dev/net/tun:/dev/net/tun --cap-add=NET_ADMIN --net dockernet --ip 10.99.99.2 keyfender/keyfender --irmin http://10.99.99.3:8081 2>&1 | sed "s/^/<keyfender> /" &

# functional tests
cd tests/end-to-end/
sbt test 2>&1 | sed "s/^/<sbt> /"
<commit_msg>Make irmin test server less verbose<commit_after>#!/bin/sh

export APK_CACHE=$HOME/.apk-cache
export OPAM_DIR=$HOME/.opam
export BUILD_UI=1

# build keyfender container
docker/build-all-in-one.sh

docker network create -d bridge --subnet 10.99.99.0/24 --gateway 10.99.99.1 dockernet
docker run -i --rm --net dockernet --ip 10.99.99.3 --name irmin -v $OPAM_DIR:/home/opam/.opam keyfender_buildbase irmin init -a http://0.0.0.0:8081 -d --verbosity=info -s mem 2>&1 | sed "s/^/<irmin> /" &

# run keyfender on port 4433
docker run -i --rm -p4433:4433 --device=/dev/net/tun:/dev/net/tun --cap-add=NET_ADMIN --net dockernet --ip 10.99.99.2 keyfender/keyfender --irmin http://10.99.99.3:8081 2>&1 | sed "s/^/<keyfender> /" &

# functional tests
cd tests/end-to-end/
sbt test 2>&1 | sed "s/^/<sbt> /"

{'fraction_non_alphanumeric': 0.1837906828334397, 'fraction_numerical': 0.08679004467134652, 'mean_word_length': 3.1481481481481484, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, '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': '3989493', 'n_tokens_mistral': 750, 'n_tokens_neox': 656, 'n_words': 157}