<commit_before>#!/bin/bash
#
#<UDF name="<PASSWORD>_password" label="<PASSWORD>">

if [ "$LINODE_ID" != "" ] ; then
    # prevent the script from running multiple times
    # (a workaround for Linode StackScript bug with CentOS 7 image)
    [ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" || :

    # redirect stdout and stderr to a log file
    exec >>/var/log/stackscript.log 2>&1
fi

set -e
set -u<commit_msg>Always copy stdout and stderr to a file<commit_after>#!/bin/bash
#
#<UDF name="keeper_password" label="<PASSWORD>">

if [ "$LINODE_ID" != "" ] ; then
    # prevent the script from running multiple times
    # (a workaround for Linode StackScript bug with CentOS 7 image)
    [ "${FLOCKER}" != "$0" ] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@" || :
fi

# copy stdout and stderr to a log file
exec > >(tee -a /var/log/stackscript.log) 2>&1

set -e
set -u
{'fraction_non_alphanumeric': 0.17483296213808464, 'fraction_numerical': 0.015590200445434299, 'mean_word_length': 3.586734693877551, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 14, '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': '1973482', 'n_tokens_mistral': 338, 'n_tokens_neox': 321, 'n_words': 106}