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

function interactive_load() {
    export TERM=xterm-256color
    export PATH=$HOME/bin:$PATH
    module color util
    source "$(module_get_path interactive)"/variables.sh
    source "$(module_get_path interactive)"/functions.sh
    source "$(module_get_path interactive)"/aliases.sh
}

function interactive_post_load() {
    # Ensure The One True Editor
    export EDITOR=/usr/bin/vim
    set -o vi

    # interactive shell options
    shopt -s dirspell

    # start SSH agent, if it's not already running
    export SSH_ENV="$HOME"/.ssh/environment
    if [ -f "${SSH_ENV}" ]; then
        . "${SSH_ENV}" > /dev/null
        ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
            interactive_start_agent
        }
    else
        interactive_start_agent
    fi

    # run NVM
    [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
}<commit_msg>Load datetime when interactive. General tidy.<commit_after>#!/usr/bin/env bash

function interactive_load() {
    export TERM=${TERM:-xterm-256color}
    export PATH="${HOME}"/bin:"${PATH}"
    module color util datetime
    source "$(module_get_path interactive)"/variables.sh
    source "$(module_get_path interactive)"/functions.sh
    source "$(module_get_path interactive)"/aliases.sh
}

function interactive_post_load() {
    # Ensure The One True Editor
    export EDITOR=$(which vim)
    set -o vi

    # interactive shell options
    shopt -s dirspell

    # start SSH agent, if it's not already running
    export SSH_ENV="${HOME}"/.ssh/environment
    if [ -f "${SSH_ENV}" ]; then
        . "${SSH_ENV}" > /dev/null
        ps -ef | grep "${SSH_AGENT_PID}" | grep ssh-agent$ > /dev/null || {
            interactive_start_agent
        }
    else
        interactive_start_agent
    fi

    # run NVM, if present
    [ -s "${NVM_DIR}/nvm.sh" ] && . "${NVM_DIR}/nvm.sh"
}
{'fraction_non_alphanumeric': 0.1316348195329087, 'fraction_numerical': 0.0031847133757961785, 'mean_word_length': 2.77, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2809922', 'n_tokens_mistral': 643, 'n_tokens_neox': 605, 'n_words': 149}