<commit_before>#!/bin/sh

# create a symlink from the styleguide to the production assets if one doesn't
# already exist
if ! [ -L styleguide/public/assets ]; then
	echo "assets not yet symlinked from styleguide - symlinking"
	cd styleguide/public
	ln -s ../../src/site/templates/assets assets
fi

# initialise bower if no bower.json exists
if ! [ -f bower.json ]; then
	echo "bower.json not present - initialising bower"
	bower init
fi

# add private.json if it doesn't yet exist
if ! [ -f private.json ]; then
	echo "private.json no present - copying private-sample.json"
	cp private-sample.json private.json
fi<commit_msg>improve setup script<commit_after>#!/bin/sh

# create a symlink from the styleguide to the production assets if one doesn't
# already exist
if ! [ -L styleguide/public/assets ]; then
	echo "assets not yet symlinked from styleguide - symlinking"
	cd styleguide/public
	ln -s ../../src/site/templates/assets assets
fi

# add private.json if it doesn't yet exist
if [ -f private-sample.json ] && ! [ -f private.json ]; then
	echo "private.json not present - making a copy using private-sample.json"
	cp private-sample.json private.json
fi

# initialise bower if no bower.json exists
if ! [ -f bower.json ]; then
	if ! type bower > /dev/null; then
		echo "you don't have bower installed"
		echo "run npm install bower -g && npm install"
		echo "aborting..."
		exit 1
	else
		echo "bower.json not present - initialising bower"
		bower init
	fi
fi
{'fraction_non_alphanumeric': 0.10027285129604366, 'fraction_numerical': 0.0006821282401091405, 'mean_word_length': 3.513846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6680825', 'n_tokens_mistral': 489, 'n_tokens_neox': 481, 'n_words': 181}