<commit_before># basic env settings for OSX
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_TYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

export EDITOR=vim
export CLICOLOR=1

# use autoenv to autoload project virtualenv
if [[ -f "/usr/local/bin/brew" ]]; then
    if [[ -d "$(brew --prefix autoenv)" ]]; then
        source $(brew --prefix autoenv)/activate.sh
    fi
fi

# make man colorful
function man() {
    env \
        LESS_TERMCAP_mb=$(printf "\e[1;31m") \
        LESS_TERMCAP_md=$(printf "\e[1;31m") \
        LESS_TERMCAP_me=$(printf "\e[0m") \
        LESS_TERMCAP_se=$(printf "\e[0m") \
        LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
        LESS_TERMCAP_ue=$(printf "\e[0m") \
        LESS_TERMCAP_us=$(printf "\e[1;32m") \
            man "$@"
}

# auto verify add config git user name and email
function git_user_verify() {
    if [[ -d ".git" ]]; then
        if ! git config --get user.name 1>/dev/null; then
            echo -n "Git user.name not configured, please enter your name: "
            read name
            if [[ -n $name ]]; then
                git config user.name $name
            fi
        fi

        if ! git config --get user.email 1>/dev/null; then
            echo -n "Git user.email not configured, please enter your email: "
            read email
            if [[ -n $email ]]; then
                git config user.email $email
            fi
        fi
    fi
}

function cd() {
    if builtin cd "$@"; then
        git_user_verify
        autoenv_init
        return 0
    else
        return $?
    fi
}
<commit_msg>make it compatible with linux env.<commit_after># basic env settings for OSX
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_TYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

export EDITOR=vim
export CLICOLOR=1

# use autoenv to autoload project virtualenv
if [[ -f "/usr/local/bin/brew" ]]; then
    if [[ -d "$(brew --prefix autoenv)" ]]; then
        source $(brew --prefix autoenv)/activate.sh
    fi
elif [[ -d "$HOME/.autoenv" ]]; then
    source "$HOME/.autoenv/activate.sh"
fi

# make man colorful
function man() {
    env \
        LESS_TERMCAP_mb=$(printf "\e[1;31m") \
        LESS_TERMCAP_md=$(printf "\e[1;31m") \
        LESS_TERMCAP_me=$(printf "\e[0m") \
        LESS_TERMCAP_se=$(printf "\e[0m") \
        LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
        LESS_TERMCAP_ue=$(printf "\e[0m") \
        LESS_TERMCAP_us=$(printf "\e[1;32m") \
            man "$@"
}

# auto verify add config git user name and email
function git_user_verify() {
    if [[ -d ".git" ]]; then
        if ! git config --get user.name 1>/dev/null; then
            echo -n "Git user.name not configured, please enter your name: "
            read name
            if [[ -n $name ]]; then
                git config user.name $name
            fi
        fi

        if ! git config --get user.email 1>/dev/null; then
            echo -n "Git user.email not configured, please enter your email: "
            read email
            if [[ -n $email ]]; then
                git config user.email $email
            fi
        fi
    fi
}

function cd() {
    if builtin cd "$@"; then
        git_user_verify
        autoenv_init
        return 0
    else
        return $?
    fi
}

{'fraction_non_alphanumeric': 0.12844880441446965, 'fraction_numerical': 0.015328019619865114, 'mean_word_length': 1.9343525179856116, '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': '3774063', 'n_tokens_mistral': 1132, 'n_tokens_neox': 1090, 'n_words': 307}