<commit_before>#!/bin/sh
#
#  sh spawn.sh "brew cask install" Brewfile
#
if [ $# -ne 2 ]; then
    echo "Usage: $0 <COMMAND> <FILE>";
    exit 1;
fi

FILE=$2
COMMAND=$1

LINES=`cat $2 | wc -l`

LINES_DIV_FOUR=$(($LINES/4));

FROM=1
TO=$LINES_DIV_FOUR
for x in `seq 1 4`; do
    echo "${FROM} --> ${TO}";

    FROM=$(($FROM+$LINES_DIV_FOUR))
    TO=$(($FROM+$LINES_DIV_FOUR))

    (setsid $COMMAND `cat $FILE | sed "${FROM},${TO}!d"` &)
done
<commit_msg>List the apps that are being installed as it happens...<commit_after>#!/bin/sh
#
#  sh spawn.sh "brew cask install" Brewfile
#
. cecho.sh
if [ $# -ne 2 ]; then
    echo "Usage: $0 <COMMAND> <FILE>";
    exit 1;
fi

FILE=$2
COMMAND=$1

LINES=`cat $2 | wc -l`

PROC_TIMES=5
LINES_DIV=$(($LINES/$PROC_TIMES));

FROM=1
TO=$LINES_DIV
for x in `seq 1 $PROC_TIMES`; do
    APPLICATIONS=`cat $FILE | sed -e "${FROM},${TO}!d" | tr '\n' ' '`
    cecho "Launching ${cyan}$COMMAND${normal}${bold} for the following applications: ${green}${APPLICATIONS}";

    $COMMAND $APPLICATIONS &

    FROM=$(($FROM+$LINES_DIV))
    TO=$(($FROM+$LINES_DIV))
done

{'fraction_non_alphanumeric': 0.2078754578754579, 'fraction_numerical': 0.0173992673992674, 'mean_word_length': 3.8794642857142856, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '1126721', 'n_tokens_mistral': 478, 'n_tokens_neox': 453, 'n_words': 113}