<commit_before>#!/bin/bash
CWD="$(readlink -f `dirname "$0"`)"
cd $CWD/..

cd LivelyKernel

if [ -z $DISPLAY ]; then
    Xvfb :1 -screen 0 800x600x24 &
    export DISPLAY=:1
fi

npm install
node bin/lk-server --no-partsbin-check &
sleep 15
sed -i 's/var testList = baseTests;/var testList = [\"users.timfelgentreff.babelsberg.tests\", \"users.ohshima.ElectricalCircuitTests\", \"users.ohshima.ElectricalComponentsTests\"]; browserTests = [];/' run_tests.js
npm test
exitcode=$?

if [ $exitcode -eq 0 ]; then
    if [ "$TRAVIS_BRANCH" == "master" ]; then<commit_msg>run reactive and Z3 tests in Lively environment<commit_after>#!/bin/bash
CWD="$(readlink -f `dirname "$0"`)"
cd $CWD/..

cd LivelyKernel

if [ -z $DISPLAY ]; then
    Xvfb :1 -screen 0 800x600x24 &
    export DISPLAY=:1
fi

npm install
node bin/lk-server --no-partsbin-check &
sleep 15
sed -i 's/var testList = baseTests;/var testList = [\"users.timfelgentreff.babelsberg.tests\", \"users.ohshima.ElectricalCircuitTests\", \"users.ohshima.ElectricalComponentsTests\", \"users.timfelgentreff.reactive.reactive_test\", \"users.timfelgentreff.z3.Z3BBBTests\"]; browserTests = [];/' run_tests.js
npm test
exitcode=$?

if [ $exitcode -eq 0 ]; then
    if [ "$TRAVIS_BRANCH" == "master" ]; then
{'fraction_non_alphanumeric': 0.16600159616919394, 'fraction_numerical': 0.026336791699920193, 'mean_word_length': 4.139344262295082, 'pattern_counts': {'":': 0, '<': 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': '5129554', 'n_tokens_mistral': 504, 'n_tokens_neox': 458, 'n_words': 110}