<commit_before>#!/bin/bash
# Exit if trying to deploy from non-master branch
if [ "$(git branch | grep "*")" != "* source" ]
then
	echo "Must deploy from source branch, please merge to source then try again"
	exit 1
fi

# Clean the tmp folders
BUILD_FOLDER=".build"
rm -rf "$BUILD_FOLDER"

# Checkout the current repo
git clone -b master $(git config --get remote.origin.url) .build

npm run build

cd .build
git checkout master
git add . --force
git commit -m "Automatic deployment of $(git rev-parse HEAD)"
git push origin <commit_msg>Fixed deploy scripts for codeship<commit_after>#!/bin/bash
# Exit if trying to deploy from non-master branch

if [ [[ "$(git branch | grep '*')" != "* source" ]] -o [[ "$(git branch | grep '*')" != "* (detached"* ]] ]
then
	echo "Must deploy from source branch, please merge to source then try again, current branch: $(git branch | grep '*')"
	exit 1
fi

# Clean the tmp folders
BUILD_FOLDER=".build"
rm -rf "$BUILD_FOLDER"

# Checkout the current repo
git clone -b master https://$GITHUB_USER:$GITHUB_PERSONAL_ACCESS_TOKEN@github.com/nodeschooltest/nodeschooltest.github.io.git .build

npm run build

cd .build
git checkout master
git add . --force
git commit -m "Automatic deployment of $(git rev-parse HEAD)"
git push origin master
{'fraction_non_alphanumeric': 0.12273800157356413, 'fraction_numerical': 0.0015735641227380016, 'mean_word_length': 4.213114754098361, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '609836', 'n_tokens_mistral': 424, 'n_tokens_neox': 393, 'n_words': 162}