<commit_before>#!/usr/bin/env bash

header="Running deprecation checks"

check () {
    if [[ -z "$DOTFILES_OLD_VERSION" ]]; then
        echo 'DOTFILES_OLD_VERSION is unset; cannot run deprecation checks'
        return 1
    fi

    return 0
}

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
run () {
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Attempts to copy a file, printing pretty output
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    local srcfile="$1"
    local srcfile_basename="${srcfile##*/}"
    local srcfile_version="${srcfile_basename%.*}"

    local comparison
    comparison="$(compare_versions "$DOTFILES_OLD_VERSION" \
        "$srcfile_version")"

    if (( comparison <= 0 )); then
        source "$srcfile"
    fi
}
<commit_msg>Slight change to 10_deprecate.sh to avoid problem with unset variable running under nounset<commit_after>#!/usr/bin/env bash

header="Running deprecation checks"

check () {
    if [[ -z "${DOTFILES_OLD_VERSION:-}" ]]; then
        echo 'DOTFILES_OLD_VERSION is unset; cannot run deprecation checks'
        return 1
    fi

    return 0
}

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
run () {
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Attempts to copy a file, printing pretty output
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    local srcfile="$1"
    local srcfile_basename="${srcfile##*/}"
    local srcfile_version="${srcfile_basename%.*}"

    local comparison
    comparison="$(compare_versions "$DOTFILES_OLD_VERSION" \
        "$srcfile_version")"

    if (( comparison < 0 )); then
        source "$srcfile"
    fi
}

{'fraction_non_alphanumeric': 0.35019455252918286, 'fraction_numerical': 0.005558643690939411, 'mean_word_length': 4.572755417956657, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3263548', 'n_tokens_mistral': 511, 'n_tokens_neox': 464, 'n_words': 114}