<commit_before>#!/usr/bin/env bash
set -u



######################### config.cfg
commander () 
{ 
    local args=($@);
    local cmd="${args[@]}";
    echo "[CMD] $cmd"; 
 	eval "$cmd" 1>/tmp/out 2>/tmp/err || { trace ERR; cat 1>&2 /tmp/err; exit 1; }
}

trace(){
	echo 1>&2 $@
}

trap_err (){
	trace $FUNCNAME
}

export -f trap_err
export -f commander
export -f trace
trap trap_err ERR
#########################

set_env(){
true
}


test_self(){
sudo apt-get install -y -q curl
npm install bower
npm install -g
npm link
npm test
}

user_instructions(){
npm install -g
npm link .
mean status
grunt test
grunt &
}

test_navigation(){
while true; do  curl 0.0.0.0:3000 2>/dev/null && break ; sleep 1 ; done
}

test_mean_init(){
echo -e '\n' |  mean init myApp
cd myApp
user_instructions
test_navigation
}

tests(){
test_self
test_mean_init
}

capture1(){
chmod +x ./capture.sh
 #trap_err on subshell
( bash -c ./capture.sh )
}

steps(){
set_env
tests
capture1
}

steps<commit_msg>back to png to ascii testing<commit_after>#!/usr/bin/env bash
set -u



######################### config.cfg
commander () 
{ 
    local args=($@);
    local cmd="${args[@]}";
    echo "[CMD] $cmd"; 
 	eval "$cmd" 1>/tmp/out 2>/tmp/err || { trace ERR; cat 1>&2 /tmp/err; exit 1; }
}

trace(){
	echo 1>&2 $@
}

trap_err (){
	trace $FUNCNAME
}

export -f trap_err
export -f commander
export -f trace
trap trap_err ERR
#########################

set_env(){
true
}


test_self(){
sudo apt-get install -y -q curl
npm install bower
npm install -g
npm link
npm test
}

user_instructions(){
npm install -g
npm link .
mean status
grunt test
grunt &
}

test_navigation(){
while true; do  curl 0.0.0.0:3000 2>/dev/null && break ; sleep 1 ; done
}

test_mean_init(){
echo -e '\n' |  mean init myApp
cd myApp
user_instructions
test_navigation
}

tests(){
test_self
test_mean_init
}

capture1(){
chmod +x ./capture.sh
 #trap_err on subshell
( bash -c ./capture.sh )
}

steps(){
set_env
#tests
capture1
}

steps
{'fraction_non_alphanumeric': 0.19199594731509625, 'fraction_numerical': 0.019250253292806486, 'mean_word_length': 3.614485981308411, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4831887', 'n_tokens_mistral': 806, 'n_tokens_neox': 747, 'n_words': 228}