<commit_before>var shell = require("shelljs/global"),
		execSync = require("execSync");

if (!test('-f', 'bower.json')) {
	if (!which('bower')) {
		echo('bower not installed');
		echo('run npm install -g bower && npm install');
		echo('aborting');
		exit(1);
	} else {
		echo('bower not initialiased... initialising');
		execSync.run('bower init');
	}
} else {
	echo('bower.json is initialised');
}

if (test('-f', 'secrets.json') && !test('-f', 'secrets.json')) {
	echo('creating your vey own secrets');
	cp('secrets-sample.json', 'secrets.json');
	echo('secrets.json created');
} else {
	echo('secrets.json is ready');
}

if (!test('-L', 'styleguide/src/toolkit/assets')) {
	echo('symlinking styleguide assets to site assets');
	cd('styleguide/src/assets/toolkit');
	ln('-s', '../../../../src/site/templates/assets', 'assets');
	echo('assets symlinked');
} else {
	echo('styleguide correctly symlinked to site assets');
}
<commit_msg>fix paths and file checking<commit_after>var shell = require("shelljs/global"),
		execSync = require("execSync");

if (!test('-f', 'bower.json')) {
	if (!which('bower')) {
		echo('bower not installed');
		echo('run npm install -g bower && npm install');
		echo('aborting');
		exit(1);
	} else {
		echo('bower not initialiased... initialising');
		execSync.run('bower init');
	}
} else {
	echo('bower.json is initialised');
}

if (test('-f', 'secrets-sample.json') && !test('-f', 'secrets.json')) {
	echo('creating your very own secrets');
	cp('secrets-sample.json', 'secrets.json');
	echo('secrets.json created');
} else {
	echo('secrets.json is ready');
}

if (!test('-L', 'styleguide/src/assets/toolkit/assets')) {
	echo('symlinking styleguide assets to site assets');
	cd('styleguide/src/assets/toolkit');
	ln('-s', '../../../../src/site/templates/assets', 'assets');
	echo('assets symlinked');
} else {
	echo('styleguide correctly symlinked to site assets');
}

{'fraction_non_alphanumeric': 0.21883219358232509, 'fraction_numerical': 0.0010520778537611783, 'mean_word_length': 4.677611940298507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4515831', 'n_tokens_mistral': 694, 'n_tokens_neox': 679, 'n_words': 150}