<commit_before>
var fs = require('fs');
var copydir = require('copy-dir');

var version = fs.readFileSync("build_tools/VERSION.md", "utf8");
var build = Math.floor(Date.now() / 1000);
console.log('Building version '+version+' ('+build+')');

copydir('src/assets', 'mopidy_iris/static/assets', function(error){

	if (error){
		console.log('Build failed, could not copy assets', error);
		return false;

	} else {
		console.log('Copied assets');

		var html_file = "mopidy_iris/static/index.html";
		fs.createReadStream("src/index.html").pipe(fs.createWriteStream(html_file));
		console.log('Copied HTML');

		var html_file_content = fs.readFileSync(html_file, "utf8");
		html_file_content = html_file_content.replace("VERSION_HERE", version);
		html_file_content = html_file_content.replace("BUILD_HERE", build);<commit_msg>HTML build complete<commit_after>
var fs = require('fs');
var copydir = require('copy-dir');

var version = fs.readFileSync("build_tools/VERSION.md", "utf8");
var build = Math.floor(Date.now() / 1000);
console.log('Building version '+version+' ('+build+')');

copydir('src/assets', 'mopidy_iris/static/assets', function(error){

	if (error){
		console.log('Build failed, could not copy assets', error);
		return false;

	} else {
		console.log('Copied assets');

		var html_file = "mopidy_iris/static/index.html";
		var html_file_content = fs.readFileSync("src/index.html", "utf8");
		html_file_content = html_file_content.replace("VERSION_HERE", version);
		html_file_content = html_file_content.replace("BUILD_HERE", build);
{'fraction_non_alphanumeric': 0.16655907036797934, 'fraction_numerical': 0.007746933505487412, 'mean_word_length': 6.142857142857143, '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': '1263404', 'n_tokens_mistral': 548, 'n_tokens_neox': 518, 'n_words': 102}