<commit_before>set -x
if [ "$TYPE" == "Lively" ]; then
    git clone git://github.com/LivelyKernel/LivelyKernel.git
    mkdir LivelyKernel/users
    ln -s $PWD LivelyKernel/users/timfelgentreff
	
    npm install jsdoc@"<=3.3.0"
	./node_modules/.bin/jsdoc babelsberg csp -r -d docs
	cd docs
	curl -T Babelsberg.html http://www.lively-kernel.org/babelsberg/docs/
	for f in *.html
	do
	  echo $f
	done
	cd ..
    
	cd LivelyKernel
    Xvfb :1 -screen 0 800x600x24 &
    npm install
    node bin/lk-server --no-partsbin-check &
    sleep 15
    sed -i 's/var testList = baseTests;/var testList = [\"users.timfelgentreff.babelsberg.tests\"]; browserTests = [];/' run_tests.js
    DISPLAY=:1 npm test
    exitcode=$?

    if [ $exitcode -eq 0 ]; then
	curl -T $TRAVIS_BUILD_DIR/standalone/babelsberg.mini.js http://www.lively-kernel.org/babelsberg/
	curl -T $TRAVIS_BUILD_DIR/standalone/babelsberg.mini.prototype.js http://www.lively-kernel.org/babelsberg/
	fi
    exit $exitcode<commit_msg>added relevant sub directories<commit_after>set -x
if [ "$TYPE" == "Lively" ]; then
    git clone git://github.com/LivelyKernel/LivelyKernel.git
    mkdir LivelyKernel/users
    ln -s $PWD LivelyKernel/users/timfelgentreff
	
    npm install jsdoc@"<=3.3.0"
	./node_modules/.bin/jsdoc babelsberg cassowary cop csp deltablue jsinterpreter layout ohshima ometa standalone z3 -r -d docs
	cd docs
	curl -T Babelsberg.html http://www.lively-kernel.org/babelsberg/docs/
	for f in *.html
	do
	  echo $f
	done
	cd ..
    
	cd LivelyKernel
    Xvfb :1 -screen 0 800x600x24 &
    npm install
    node bin/lk-server --no-partsbin-check &
    sleep 15
    sed -i 's/var testList = baseTests;/var testList = [\"users.timfelgentreff.babelsberg.tests\"]; browserTests = [];/' run_tests.js
    DISPLAY=:1 npm test
    exitcode=$?

    if [ $exitcode -eq 0 ]; then
	curl -T $TRAVIS_BUILD_DIR/standalone/babelsberg.mini.js http://www.lively-kernel.org/babelsberg/
	curl -T $TRAVIS_BUILD_DIR/standalone/babelsberg.mini.prototype.js http://www.lively-kernel.org/babelsberg/
	fi
    exit $exitcode
{'fraction_non_alphanumeric': 0.1262135922330097, 'fraction_numerical': 0.01699029126213592, 'mean_word_length': 3.130260521042084, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '7000001', 'n_tokens_mistral': 839, 'n_tokens_neox': 760, 'n_words': 175}