<commit_before>#!/bin/bash -e

err_msg() { echo "Non-zero exit in ${1} - line ${2}: ${3}"; }

trap 'if (test ${?} -gt 0); then err_msg ${0} ${LINENO} ${BASH_COMMAND}; fi' EXIT

usage() { echo "Usage: $0 -h <host> -s <source> -d <destination> -o <rdiff-options> -t <mysql|lvm>" 1>&2; exit 1; }

while getopts "h:s:d:o:t:" o; do
    case "${o}" in
        h)
            HOST=${OPTARG}
            ;;
        s)
            SOURCE_PATH=${OPTARG}
            ;;
        d)
            DEST_PATH=${OPTARG}
            ;;<commit_msg>Refactored trap to match ERR as well - removed output function<commit_after>#!/bin/bash -e

trap 'if (test ${?} -gt 0); then echo "Non-zero exit in ${0} - line ${LINENO}: ${BASH_COMMAND}"; fi' ERR EXIT

usage() { echo "Usage: $0 -h <host> -s <source> -d <destination> -o <rdiff-options> -t <mysql|lvm>" 1>&2; exit 1; }

while getopts "h:s:d:o:t:" o; do
    case "${o}" in
        h)
            HOST=${OPTARG}
            ;;
        s)
            SOURCE_PATH=${OPTARG}
            ;;
        d)
            DEST_PATH=${OPTARG}
            ;;
{'fraction_non_alphanumeric': 0.19345794392523363, 'fraction_numerical': 0.014018691588785047, 'mean_word_length': 1.9667590027700832, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '1879332', 'n_tokens_mistral': 416, 'n_tokens_neox': 397, 'n_words': 113}