<commit_before>#!/bin/bash

set -ex

pushd .
cd ./tracing-framework/bindings/cpp/
# as of 2017/02 default threading won't work; using STD threading model instead
make THREADING=std
echo "Going to install Google Tracing Framework"
sudo make install
popd

# build js stuff
pushd .
cd tracing-framework
npm install
third_party/anvil-build/setup-local.sh
third_party/anvil-build/anvil-local.sh deploy -o build-bin/ :wtf_node_js_compiled
popd<commit_msg>Few sanity checks in WTF build script<commit_after>#!/bin/bash

set -ex

if [ ! -e /usr/local/lib/libwtf.so ]; then
    pushd .
    cd ./tracing-framework/bindings/cpp/
    # as of 2017/02 default threading won't work; using STD threading model instead
    make THREADING=std
    echo "Going to install Google Tracing Framework"
    sudo make install
    popd
fi

if [ ! -e third-party/tracing-framework/build-out/wtf_node_js_compiled.js ]; then
    # build js stuff
    pushd .
    cd tracing-framework
    npm install
    third_party/anvil-build/setup-local.sh
    third_party/anvil-build/anvil-local.sh deploy -o build-bin/ :wtf_node_js_compiled
    popd
fi
{'fraction_non_alphanumeric': 0.09017132551848513, 'fraction_numerical': 0.010820559062218215, 'mean_word_length': 3.4578313253012047, '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': '5963334', 'n_tokens_mistral': 406, 'n_tokens_neox': 376, 'n_words': 107}