<commit_before>#!/usr/bin/env bash
echo "Installing Posquit0's dotfiles"

# If Git is not installed, install it (Ubuntu only, since Git comes standard
# with recent XCode or CLT)
if [[ ! "$(type -P git)" && "$(cat /etc/issue 2> /dev/null)" =~ Ubuntu ]]; then
    echo "Installing Git"
    sudo apt-get -qq install git-core
fi

# If Git isn't installed by now, something exploded. We gots to quit!
if [[ ! "$(type -P git)" ]]; then
    echo "ERROR: Git should be installed. It isn't. Aborting."
    exit 1
fi

# Download or update.
if [[ ! -d ~/.dotfiles ]]; then
    # ~/.dotfiles doesn't exist? Clone it!
    echo "Cloning dotfiles to ~/.dotfiles"
    cd
    git clone --recursive https://github.com/posquit0/dotfiles.git ~/.dotfiles
    cd ~/.dotfiles
else
    # Make sure we have the latest files.
    echo "Updating dotfiles"
    cd ~/.dotfiles
    git pull
    git submodule update --init --recursive --quiet
fi

ln -fs ~/.dotfiles/ctags/.* ~/
ln -fs ~/.dotfiles/curl/.* ~/
ln -fs ~/.dotfiles/git/.* ~/
ln -fs ~/.dotfiles/irssi/.* ~/
ln -fs ~/.dotfiles/screen/.* ~/
ln -fs ~/.dotfiles/tmux/.* ~/
ln -fs ~/.dotfiles/vim/.* ~/
ln -fs ~/.dotfiles/wget/.* ~/
ln -fs ~/.dotfiles/zsh/.* ~/
echo "Installation complete!"<commit_msg>add emacs bootstrap<commit_after>#!/usr/bin/env bash
echo "Installing Posquit0's dotfiles"

# If Git is not installed, install it (Ubuntu only, since Git comes standard
# with recent XCode or CLT)
if [[ ! "$(type -P git)" && "$(cat /etc/issue 2> /dev/null)" =~ Ubuntu ]]; then
    echo "Installing Git"
    sudo apt-get -qq install git-core
fi

# If Git isn't installed by now, something exploded. We gots to quit!
if [[ ! "$(type -P git)" ]]; then
    echo "ERROR: Git should be installed. It isn't. Aborting."
    exit 1
fi

# Download or update.
if [[ ! -d ~/.dotfiles ]]; then
    # ~/.dotfiles doesn't exist? Clone it!
    echo "Cloning dotfiles to ~/.dotfiles"
    cd
    git clone --recursive https://github.com/posquit0/dotfiles.git ~/.dotfiles
    cd ~/.dotfiles
else
    # Make sure we have the latest files.
    echo "Updating dotfiles"
    cd ~/.dotfiles
    git pull
    git submodule update --init --recursive --quiet
fi

ln -fs ~/.dotfiles/ctags/.* ~/
ln -fs ~/.dotfiles/curl/.* ~/
ln -fs ~/.dotfiles/git/.* ~/
ln -fs ~/.dotfiles/irssi/.* ~/
ln -fs ~/.dotfiles/screen/.* ~/
ln -fs ~/.dotfiles/tmux/.* ~/
ln -fs ~/.dotfiles/vim/.* ~/
ln -fs ~/.dotfiles/eamcs/.* ~/
ln -fs ~/.dotfiles/wget/.* ~/
ln -fs ~/.dotfiles/zsh/.* ~/
echo "Installation complete!"
{'fraction_non_alphanumeric': 0.17781337605126152, 'fraction_numerical': 0.0032038446135362435, 'mean_word_length': 2.5787965616045847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1114206', 'n_tokens_mistral': 951, 'n_tokens_neox': 895, 'n_words': 302}