<commit_before>#!/bin/bash

set -e

echo "This script will create a IAAS release, based of the current 'develop' branch."
echo "Press Ctrl-C to cancel"
echo

CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ "${CURRENT_BRANCH}" != "develop" ]; then
	echo "Please ensure you are on the 'develop' with a clean workspace"
	exit 1
fi

echo "I'll now clean your workspace"
git checkout . > /dev/null
git pull > /dev/null

echo "Whats the version number associated with this release? Type the version number followed by [enter]. "
read VERSION

npm version $VERSION
git checkout master > /dev/null
git pull > /dev/null
git rebase develop > /dev/null
git tag -a $VERSION -m "Public release of version ${VERSION}"<commit_msg>Improve release script<commit_after>#!/bin/bash

set -e

echo "This script will create a IAAS release, based of the current 'develop' branch."
echo "Press Ctrl-C to cancel"
echo

CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
if [ "${CURRENT_BRANCH}" != "develop" ]; then
	echo "Please ensure you are on the 'develop' with a clean workspace"
	exit 1
fi

echo "I'll now clean your workspace"
git checkout . > /dev/null
git pull > /dev/null

echo "Whats the version number associated with this release? Type the version number followed by [enter]. "
read VERSION

npm version $VERSION
git add package.json
git commit -m "Release of ${VERSION}"
git push
git checkout master > /dev/null
git pull > /dev/null
git rebase develop > /dev/null
git tag -a $VERSION -m "Public release of version ${VERSION}"
{'fraction_non_alphanumeric': 0.10204081632653061, 'fraction_numerical': 0.0013166556945358788, 'mean_word_length': 4.135135135135135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7344967', 'n_tokens_mistral': 483, 'n_tokens_neox': 459, 'n_words': 212}