<commit_before>#! /usr/bin/env bash

# detects the correct path of current script
cd `dirname $0`
POW_ROOT=`dirname $(pwd -P)`

POW_BIN="$POW_ROOT/bin/`basename $0`"
NODE_PATH="$POW_ROOT/node_modules:$NODE_PATH"

export NODE_PATH POW_BIN

# loads RVM if available
if [ -f ~/.rvm/scripts/rvm ] ; then
  source ~/.rvm/scripts/rvm
elif [ -f /usr/local/rvm/scripts/rvm ] ; then
  source /usr/local/rvm/scripts/rvm
fi

# kills any running instance
PID=`ps x | awk -F " " "{ if ( \\$5 == \\"$POW_ROOT/bin/node\\" && \\$6 == \\"$POW_ROOT/lib/command.js\\" ) print \\$1 }"`
[ "$PID" == "" ] || kill $PID

# starts instance
exec "$POW_ROOT/bin/node" "$POW_ROOT/lib/command.js"

<commit_msg>Now loading ~/.powconfig before running pow.<commit_after>#! /usr/bin/env bash

# detects the correct path of current script
cd `dirname $0`
POW_ROOT=`dirname $(pwd -P)`

POW_BIN="$POW_ROOT/bin/`basename $0`"
NODE_PATH="$POW_ROOT/node_modules:$NODE_PATH"

export NODE_PATH POW_BIN

# loads user config
source ~/.powconfig

# loads RVM if available
if [ -f ~/.rvm/scripts/rvm ] ; then
  source ~/.rvm/scripts/rvm
elif [ -f /usr/local/rvm/scripts/rvm ] ; then
  source /usr/local/rvm/scripts/rvm
fi

# kills any running instance
PID=`ps x | awk -F " " "{ if ( \\$5 == \\"$POW_ROOT/bin/node\\" && \\$6 == \\"$POW_ROOT/lib/command.js\\" ) print \\$1 }"`
[ "$PID" == "" ] || kill $PID

# starts instance
exec "$POW_ROOT/bin/node" "$POW_ROOT/lib/command.js" $*


{'fraction_non_alphanumeric': 0.19624217118997914, 'fraction_numerical': 0.006958942240779402, 'mean_word_length': 3.5078369905956115, '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': '3244279', 'n_tokens_mistral': 599, 'n_tokens_neox': 581, 'n_words': 134}