<commit_before>pushd_quiet() {
    local path=$1
    pushd $path > /dev/null 2>&1
}

popd_quiet() {
    popd > /dev/null 2>&1
}

main() {
    readonly local project_dir=`dirname $0` 
    readonly local src_dir=source

    pushd_quiet $project_dir
    if [ $? -eq 0 ]; then
        pushd_quiet $src_dir

        if [ $? -eq 0 ]; then
            readonly local dotfiles=`ls`

            for dotfile in $dotfiles; do
                local full_path="$(cd "$(dirname "$dotfile")" && pwd)/$(basename "$dotfile")"
                ln -i -s $full_path $HOME/.$dotfile
            done
        else
            echo "No dotfiles were found during installation!"
            popd_quiet
            exit 1
        fi
        popd_quiet
    else
        popd_quiet
    fi
}

main<commit_msg>Add installation of ZSH theme to install.zsh<commit_after>pushd_quiet() {
    local path=$1
    pushd $path > /dev/null 2>&1
}

popd_quiet() {
    popd > /dev/null 2>&1
}

main() {
    readonly local project_dir=`dirname $0` 
    readonly local src_dir=source
    readonly local custom_dir=${HOME}/.zsh-custom

    pushd_quiet $project_dir
    if [ $? -eq 0 ]; then
        pushd_quiet $src_dir

        if [ $? -eq 0 ]; then
            readonly local dotfiles=`ls`

            for dotfile in $dotfiles; do
                local full_path="$(cd "$(dirname "$dotfile")" && pwd)/$(basename "$dotfile")"
                ln -i -s $full_path ${HOME}/.$dotfile
            done
        else
            echo "No dotfiles were found during installation!"
            popd_quiet
            exit 1
        fi
        popd_quiet
    else
        popd_quiet
    fi

    if [ ! -d $custom_dir ]; then
        mkdir $custom_dir
    fi

    if [ ! -d $custom_dir/themes ]; then
        mkdir $custom_dir/themes
    fi

    cp $project_dir/kolo.zsh-theme $custom_dir/themes/kolo.zsh-theme
}

main
{'fraction_non_alphanumeric': 0.10991957104557641, 'fraction_numerical': 0.0096514745308311, 'mean_word_length': 1.7976011994002998, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '593041', 'n_tokens_mistral': 647, 'n_tokens_neox': 592, 'n_words': 161}