<commit_before>#!/bin/sh

VERSION="1.0.0"
LICENSE="LICENSE.txt"

compressJS () {
	REGULAR="${1}.js"
	MINIFIED="${1}.min.js"
	cp ${LICENSE} ${REGULAR}
	cp ${LICENSE} ${MINIFIED}
	cat - >> ${REGULAR}
	cat ${REGULAR} | closure-compiler >> ${MINIFIED}
}

compressCSS () {
	REGULAR="${1}.css"
	MINIFIED="${1}.min.css"
	cp ${LICENSE} ${REGULAR}
	cp ${LICENSE} ${MINIFIED}
	cat - >> ${REGULAR}
	cat ${REGULAR} | yuicompressor --type css >> ${MINIFIED}
}

cat swapper.js | compressJS ${VERSION}<commit_msg>new build process<commit_after>#!/bin/sh

VERSION="1.0.0"
LICENSE="LICENSE.txt"

JS_COMPILER="closure-compiler"
CSS_COMPILER="yuicompressor --type css"

mkdir -p ${VERSION}

compress () {
	cat ${LICENSE} ${3} | ${1} > ${VERSION}/${2}
}

compress "${JS_COMPILER} " "swapper.js" "swapper.js"
{'fraction_non_alphanumeric': 0.22617534942820838, 'fraction_numerical': 0.016518424396442185, 'mean_word_length': 4.96969696969697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '2687146', 'n_tokens_mistral': 324, 'n_tokens_neox': 318, 'n_words': 60}