<commit_before>#!/bin/bash
#Script to install github pages with jekyll and rvm

command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
\curl -sSL https://get.rvm.io | bash -s stable --ruby --with-gems="bundler"
source ~/.rvm/scripts/rvm
bundle install
echo "\nGithub-pages installed!\n"
echo "Press Enter to initialize webpage\n"
echo "Ctrl-c to stop.\n"
read nostop
echo "Enter your GitHub username:"
read username
jekyll new $username.GitHub.io
cd $username.GitHub.io
git init
git add .
git commit -m 'Initial commit'
curl -u $username https://api.github.com/user/repos -d '{"name":"'$username'.GitHub.io"}'
git remote add origin https://${username}@github.com/$username/$username.GitHub.io.git
git push origin master<commit_msg>Updated install script to be more user friendly.<commit_after>#!/bin/bash

#Script to install github pages with jekyll and rvm
if ruby -v | egrep -q '^ruby (1\.9|2)'; then
    echo "Ruby installed! Continuing..."
else
    echo "Github pages requires Ruby 1.9 or higher."
    read -n 1 -p "Install Ruby using Ruby Version Manager (Y/n)?"
    [ $REPLY == 'n' ] && { echo 'Please manually install Ruby.' ; exit 1; }
    gpg2 -? &> /dev/null && { echo 'Please install gpg (required for RVM)' ; exit 1; }
    command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
    \curl -sSL https://get.rvm.io | bash -s stable --ruby
    source ~/.rvm/scripts/rvm
fi
gem install bundler
bundle install
echo "Github-pages installed!"
read -n 1 -p "Initialize website (Y/n)?"
[ $REPLY == 'n' ] && exit 0
echo ""
read -p "Enter your GitHub username: " username
# Check if Repo exists
if curl https://api.github.com/repos/$username/$username.GitHub.io | grep -q '"name": "'$username'.GitHub.io"'; then
    #repo found
    git clone https://${username}@github.com/$username/$username.GitHub.io.git $username.GitHub.io
else
    jekyll new $username.GitHub.io
    cd $username.GitHub.io
    git init
    git add .
    git commit -m 'Initial commit'
    echo "Creating remote repository:"
    curl -u $username https://api.github.com/user/repos -d '{"name":"'$username'.GitHub.io"}' > /dev/null
    printf "Enter your GitHub "
    git remote add origin https://${username}@github.com/$username/$username.GitHub.io.git
    git push origin master
fi
{'fraction_non_alphanumeric': 0.1482134980149978, 'fraction_numerical': 0.005734450816056462, 'mean_word_length': 3.412451361867704, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 10, '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': '1584611', 'n_tokens_mistral': 787, 'n_tokens_neox': 742, 'n_words': 248}