<commit_before>#! /bin/sh -e

tmpDir=/tmp/event.d

rm -rf $tmpDir

cp -prd $(readlink -f /etc/event.d) /tmp/event.d

for i in $*; do
    echo "building job $i..."
    nix-build /etc/nixos/nixos -A "upstartJobs.$i" -o $tmpDir/.result
    ln -sfn $(readlink -f $tmpDir/.result)/etc/event.d/* /tmp/event.d/
done

ln -sfn /tmp/event.d /etc/event.d

echo "restarting init..."
kill -TERM 1 

for i in $*; do
    echo "restarting job $i..."
    initctl stop "$i"
    sleep 1
    initctl start "$i"
done    
<commit_msg>* Fix doing repeated tests.<commit_after>#! /bin/sh -e

tmpDir=/tmp/event.d

mkdir -p /tmp/event.d

if test "$(readlink -f /etc/event.d)" != /tmp/event.d; then 
    cp -prd "$(readlink -f /etc/event.d)"/* /tmp/event.d/
fi

for i in $*; do
    echo "building job $i..."
    nix-build /etc/nixos/nixos -A "upstartJobs.$i" -o $tmpDir/.result
    ln -sfn $(readlink -f $tmpDir/.result)/etc/event.d/* /tmp/event.d/
done

ln -sfn /tmp/event.d /etc/event.d

echo "restarting init..."
kill -TERM 1 

for i in $*; do
    echo "restarting job $i..."
    initctl stop "$i"
    sleep 1
    initctl start "$i"
done    

{'fraction_non_alphanumeric': 0.18604651162790697, 'fraction_numerical': 0.0035778175313059034, 'mean_word_length': 2.252906976744186, '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': '1172735', 'n_tokens_mistral': 483, 'n_tokens_neox': 462, 'n_words': 134}