<commit_before>all: bluebird kite kontrol

bluebird: browserify-bluebird uglify-bluebird

kite: build-kite browserify-kite build-kite-promises browserify-kite-promises uglify-kite uglify-kite-promises kite-dev

kontrol: build-kontrol browserify-kontrol build-kontrol-promises browserify-kontrol-promises uglify-kontrol uglify-kontrol-promises kontrol-dev

kite-dev: bluebird browserify-kite-dev browserify-kite-promises-dev

kontrol-dev: bluebird browserify-kontrol-dev browserify-kontrol-promises-dev

browserify-bluebird:
	node_modules/.bin/browserify -r ./node_modules/bluebird/js/main/bluebird.js > browser/bluebird.js

uglify-bluebird:
	node_modules/.bin/uglifyjs browser/bluebird.js -c -m -o browser/bluebird.min.js 2>/dev/null

build-kite:
	node_modules/.bin/coffee -b -o ./lib/kite -c ./src/kite/*.coffee
	find ./lib/kite/*.js -type f -exec sed -i "" -e 's/\.coffee/\.js/g' {} \;

build-kite-promises:
	node_modules/.bin/coffee -b -o ./lib/kite-as-promised -c ./src/kite-as-promised/*.coffee
	find ./lib/kite-as-promised/*.js -type f -exec sed -i "" -e 's/\.coffee/\.js/g' {} \;

browserify-kite:
	node_modules/.bin/browserify -s Kite -t coffeeify src/kite/kite.coffee > browser/kite-bundle.js
<commit_msg>make: ensure the browser directory exists<commit_after>all: bluebird kite kontrol

bluebird: browserify-bluebird uglify-bluebird

kite: build-kite browserify-kite build-kite-promises browserify-kite-promises uglify-kite uglify-kite-promises kite-dev

kontrol: build-kontrol browserify-kontrol build-kontrol-promises browserify-kontrol-promises uglify-kontrol uglify-kontrol-promises kontrol-dev

kite-dev: bluebird browserify-kite-dev browserify-kite-promises-dev

kontrol-dev: bluebird browserify-kontrol-dev browserify-kontrol-promises-dev

browserify-bluebird:
	mkdir -p browser
	node_modules/.bin/browserify -r ./node_modules/bluebird/js/main/bluebird.js > browser/bluebird.js

uglify-bluebird:
	node_modules/.bin/uglifyjs browser/bluebird.js -c -m -o browser/bluebird.min.js 2>/dev/null

build-kite:
	node_modules/.bin/coffee -b -o ./lib/kite -c ./src/kite/*.coffee
	find ./lib/kite/*.js -type f -exec sed -i "" -e 's/\.coffee/\.js/g' {} \;

build-kite-promises:
	node_modules/.bin/coffee -b -o ./lib/kite-as-promised -c ./src/kite-as-promised/*.coffee
	find ./lib/kite-as-promised/*.js -type f -exec sed -i "" -e 's/\.coffee/\.js/g' {} \;

browserify-kite:
	node_modules/.bin/browserify -s Kite -t coffeeify src/kite/kite.coffee > browser/kite-bundle.js

{'fraction_non_alphanumeric': 0.1463217461600647, 'fraction_numerical': 0.0008084074373484236, 'mean_word_length': 3.76878612716763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1927501', 'n_tokens_mistral': 1008, 'n_tokens_neox': 970, 'n_words': 176}