<commit_before>#!/bin/bash

mkdir -p $HOME/.reactor
mkdir -p $HOME/reactor
 
if (type vagrant) && (type virtualbox) then

    echo "get latest vagrant file"
    wget https://raw.githubusercontent.com/tascape/reactor/master/doc/Vagrantfile -O Vagrantfile
    vagrant up

    export PROP=$HOME/.reactor/reactor.properties
    echo "create reactor system properties file" $PROP
    echo "# reactor system properties" > $PROP
    echo "# use -Dkey=value to override or add in commandline " >> $PROP
    echo "reactor.db.type=mysql" >> $PROP
    echo "reactor.db.host=localhost:23306" >> $PROP
    echo "reactor.log.path=$HOME/reactor/logs" >> $PROP
    echo "reactor.case.station=localhost" >> $PROP
    echo "reactor.JOB_NAME=local-run" >> $PROP
    cat $PROP

    echo "check report at http://localhost:28088/rr/suites_result.xhtml"
    open "http://localhost:28088/rr/suites_result.xhtml" || echo "OK"

else
    echo "you need to first install vagrant (http://www.vagrantup.com/downloads.html) and virtualbox (https://www.virtualbox.org/wiki/Downloads)"
fi<commit_msg>Update reactor.sh<commit_after>#!/bin/bash

mkdir -p $HOME/.reactor
 
if (type vagrant) && (type virtualbox) then

    echo "get latest vagrant file"
    wget https://raw.githubusercontent.com/tascape/reactor/master/doc/Vagrantfile -O Vagrantfile
    vagrant up

    export PROP=$HOME/.reactor/reactor.properties
    echo "create reactor system properties file" $PROP
    echo "# reactor system properties" > $PROP
    echo "# use -Dkey=value to override or add in commandline " >> $PROP
    echo "reactor.db.type=mysql" >> $PROP
    echo "reactor.db.host=localhost:23306" >> $PROP
    echo "reactor.log.path=$HOME/.reactor/logs" >> $PROP
    echo "reactor.case.station=localhost" >> $PROP
    echo "reactor.JOB_NAME=local-run" >> $PROP
    cat $PROP

    echo "check report at http://localhost:28088/rr/suites_result.xhtml"
    open "http://localhost:28088/rr/suites_result.xhtml" || echo "OK"

else
    echo "you need to first install vagrant (http://www.vagrantup.com/downloads.html) and virtualbox (https://www.virtualbox.org/wiki/Downloads)"
fi
{'fraction_non_alphanumeric': 0.1337429111531191, 'fraction_numerical': 0.014177693761814745, 'mean_word_length': 3.714922048997773, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2827869', 'n_tokens_mistral': 739, 'n_tokens_neox': 696, 'n_words': 171}