<commit_before>#!/bin/bash

# http://stackoverflow.com/questions/392022/best-way-to-kill-all-child-processes/15139734#15139734
killtree() {
    local _pid=`cat /tmp/blinkypid`
    local _sig="SIGKILL"
    kill -stop ${_pid} # needed to stop quickly forking parent from producing children between child killing and parent killing
    for _child in $(ps -o pid --no-headers --ppid ${_pid}); do
        killtree ${_child} ${_sig}
    done
    kill -${_sig} ${_pid}
}

if [ $# -eq 0 -o $# -gt 2 ]; then
    echo "Usage: $(basename $0) <pid> [signal]"
    exit 1
fi

killtree()<commit_msg>Remove previous installation.<commit_after>#!/bin/bash

# http://stackoverflow.com/questions/392022/best-way-to-kill-all-child-processes/15139734#15139734
killtree() {
    local _pid=`cat /tmp/blinkypid`
    local _sig="SIGKILL"
    kill -stop ${_pid} # needed to stop quickly forking parent from producing children between child killing and parent killing
    for _child in $(ps -o pid --no-headers --ppid ${_pid}); do
        killtree ${_child} ${_sig}
    done
    kill -${_sig} ${_pid}
}

if [ $# -eq 0 -o $# -gt 2 ]; then
    echo "Usage: $(basename $0) <pid> [signal]"
    exit 1
fi

killtree()

# remove previous files
rm -rf /apps/blinky
{'fraction_non_alphanumeric': 0.14890154597233524, 'fraction_numerical': 0.04231082180634662, 'mean_word_length': 3.2268041237113403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5884529', 'n_tokens_mistral': 473, 'n_tokens_neox': 433, 'n_words': 127}