<commit_before>#!/bin/bash
#include env variables and node version
. /opt/elasticbeanstalk/env.vars

function error_exit
{
    eventHelper.py --msg "$1" --severity ERROR
    exit $2
}

#check if we have node binaries available globally
if [ ! -L /usr/bin/node ]; then
    ln -s /opt/elasticbeanstalk/node-install/node-v$NODE_VER-linux-$ARCH/bin/node /usr/bin/node
fi
if [ $APP_HOME ]; then
    cd $APP_HOME && $APP_HOME/node_modules/bower/bin/bower install -q && $APP_HOME/node_modules/brunch/bin/brunch build -P
fi<commit_msg>fix:    rather than running bower as root, switch to nodejs<commit_after>#!/bin/bash
#include env variables and node version
. /opt/elasticbeanstalk/env.vars

function error_exit
{
    eventHelper.py --msg "$1" --severity ERROR
    exit $2
}

#check if we have node binaries available globally
if [ ! -L /usr/bin/node ]; then
    ln -s /opt/elasticbeanstalk/node-install/node-v$NODE_VER-linux-$ARCH/bin/node /usr/bin/node
fi
if [ $APP_HOME ]; then
    su nodejs
    cd $APP_HOME && $APP_HOME/node_modules/bower/bin/bower install -q && $APP_HOME/node_modules/brunch/bin/brunch build -P
fi
{'fraction_non_alphanumeric': 0.12746858168761221, 'fraction_numerical': 0.003590664272890485, 'mean_word_length': 3.5510204081632653, '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': '2837441', 'n_tokens_mistral': 410, 'n_tokens_neox': 389, 'n_words': 102}