<commit_before>#!/bin/bash
my_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $my_dir
echo $my_dir
if [[ ! "$(git status -sb | head -1 )" == "## master"* ]]
then
  echo "Not currently on master branch"
  exit 1
fi
#Are there uncommited changes to the branch?
if [[ -n "$(git status -s)" ]]
then
  echo "There are un-commited changes to master"
  exit 1
fi
echo "Have you uncommented the Analytics sections in index.html? y or n"
read answer
if [[ ! $answer -eq "y" ]]
then
  echo "Uncomment the Analytics sections in index.html and try again."
  exit 1
fi
git tag Deploy$(date +"%D")
git push --tags
git branch -D gh-pages
git checkout -B gh-pages
npm install
rm .bowerrc
touch .bowerrc
echo {\"directory\": \"bower_components\"} >> .bowerrc
bower install
shopt -s dotglob && git rm -rf --ignore-unmatch *
git checkout master www/
mv www/* ./
rm -rf www
git checkout master scss
git checkout master plugins
git add -A
git commit -m "Deploy to gh-pages"
git push -f origin gh-pages
git checkout master
<commit_msg>Fix script if statement<commit_after>#!/bin/bash
my_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $my_dir
echo $my_dir
if [[ ! "$(git status -sb | head -1 )" == "## master"* ]]
then
  echo "Not currently on master branch"
  exit 1
fi
#Are there uncommited changes to the branch?
if [[ -n "$(git status -s)" ]]
then
  echo "There are un-commited changes to master"
  exit 1
fi
echo "Have you uncommented the Analytics sections in index.html? y or n"
read answer
if [[ $answer -ne "y" ]]
then
  echo "Uncomment the Analytics sections in index.html and try again."
  exit 1
fi
git tag Deploy$(date +"%D")
git push --tags
git branch -D gh-pages
git checkout -B gh-pages
npm install
rm .bowerrc
touch .bowerrc
echo {\"directory\": \"bower_components\"} >> .bowerrc
bower install
shopt -s dotglob && git rm -rf --ignore-unmatch *
git checkout master www/
mv www/* ./
rm -rf www
git checkout master scss
git checkout master plugins
git add -A
git commit -m "Deploy to gh-pages"
git push -f origin gh-pages
git checkout master

{'fraction_non_alphanumeric': 0.129863813229572, 'fraction_numerical': 0.0048638132295719845, 'mean_word_length': 3.6224719101123597, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1611466', 'n_tokens_mistral': 735, 'n_tokens_neox': 688, 'n_words': 303}