<commit_before>#!/bin/sh
cd `dirname "$0"`/../..
echo rm -rf *
echo git checkout master
echo -n "Which version are you going to publish [0 to skip]? "
VER=`head -n 1`
if [ "$VER" = "0" ]; then :; else
	echo "Publishing version $VER"
	cli/support/setversion.sh "$VER"
	cp package.json package.json.bak
	sed -e 's@/amber.git.*"@/amber.git#'"$VER"'"@' package.json.bak >package.json
	rm package.json.bak
	echo git commit -a -m "Release version $VER"
	echo git tag -a "$VER"
#	echo bower upload
# bower does not publish explicitly but implictly via semver tag
	echo npm publish
fi
echo -n "Which version are you going to work on? "
VERF=`head -n 1`
VER="${VERF}-pre"
echo "Setting version $VER"
cli/support/setversion.sh "$VER"
cp package.json package.json.bak
sed -e 's@/amber.git.*"@/amber.git"@' package.json.bak >package.json
rm package.json.bak
echo git commit -a -m "Working on $VERF"
echo git push --tags
<commit_msg>- removes some echos in release.sh - makes it safer by not issuing critical commands but asking the user to   do it<commit_after>#!/bin/sh
cd `dirname "$0"`/../..
echo rm -rf *
echo git checkout master
echo -n "Which version are you going to publish [0 to skip]? "
VER=`head -n 1`
if [ "$VER" = "0" ]; then :; else
	echo "Publishing version $VER"
	cli/support/setversion.sh "$VER"
	cp package.json package.json.bak
	sed -e 's@/amber.git.*"@/amber.git#'"$VER"'"@' package.json.bak >package.json
	rm package.json.bak
	git commit -a -m "Release version $VER"
	git tag -a "$VER"
#	echo bower upload
# bower does not publish explicitly but implictly via semver tag
	echo Please check if everything is ok, then publish the new release with 'npm publish'
fi
echo -n "Which version are you going to work on? "
VERF=`head -n 1`
VER="${VERF}-pre"
echo "Setting version $VER"
cli/support/setversion.sh "$VER"
cp package.json package.json.bak
sed -e 's@/amber.git.*"@/amber.git"@' package.json.bak >package.json
rm package.json.bak
git commit -a -m "Working on $VERF"


echo Please check if everything is ok, then push changes with 'git push --tags'

{'fraction_non_alphanumeric': 0.14431486880466474, 'fraction_numerical': 0.004859086491739553, 'mean_word_length': 3.7883720930232556, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4000276', 'n_tokens_mistral': 745, 'n_tokens_neox': 722, 'n_words': 277}