<commit_before>#!/bin/bash

# testing arrayContainsElement 
# check, how we are called to source our utilities
DIRNAME=$(dirname $0)
## this file contains configuration and functions
source ${DIRNAME}/utils.sh

echo "** TESTING ${SERVICES[@]} "
echo "** Logging into \"$LOGFILE\"" 
echo "** --------------------- STARTING TEST ----------"  &>> $LOGFILE
date &>> $LOGFILE


##TODO check output of scripts
for s in ${SERVICES[@]} ;
do 
 ./build.sh $s
 ./push.sh $s
 ./pull.sh $s 
 ./start.sh $s 
 ./stop.sh $s 
 ./cleanup.sh $s
done

date &>> $LOGFILE
echo "** --------------------- FINISHED TEST ----------"  &>> $LOGFILE
echo "** TESTING DONE "
echo "** Please inspect logfile \"$LOGFILE\"" 
<commit_msg>script/test.sh can be called from main directory<commit_after>#!/bin/bash

# testing arrayContainsElement 
# check, how we are called to source our utilities
DIRNAME=$(dirname $0)
## this file contains configuration and functions
source ${DIRNAME}/utils.sh

echo "** TESTING ${SERVICES[@]} "
echo "** Logging into \"$LOGFILE\"" 
echo "** --------------------- STARTING TEST ----------"  &>> $LOGFILE
date &>> $LOGFILE


##TODO check output of scripts
for s in ${SERVICES[@]} ;
do 
 ${DIRNAME}/build.sh $s
 ${DIRNAME}/push.sh $s
 ${DIRNAME}/pull.sh $s 
 ${DIRNAME}/start.sh $s 
 ${DIRNAME}/stop.sh $s 
 ${DIRNAME}/cleanup.sh $s
done

date &>> $LOGFILE
echo "** --------------------- FINISHED TEST ----------"  &>> $LOGFILE
echo "** TESTING DONE "
echo "** Please inspect logfile \"$LOGFILE\"" 

{'fraction_non_alphanumeric': 0.24048096192384769, 'fraction_numerical': 0.0013360053440213762, 'mean_word_length': 2.7171215880893302, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '3165534', 'n_tokens_mistral': 499, 'n_tokens_neox': 483, 'n_words': 150}