<commit_before>export EMCC_DEBUG=1

wasm-loader.js: tapestry.cpp
	em++ --bind --std=c++11 -O3 tapestry.cpp -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -o wasm-loader.js

../public/tapestry.wasm: wasm-loader.js
	mv wasm-loader.wasm ../public/tapestry.wasm

../src/wasm-loader.js: wasm-loader.js
	echo "/* eslint-disable */" | cat - wasm-loader.js > /tmp/out && mv /tmp/out wasm-loader.js
	mv wasm-loader.js ../src/wasm-loader.js

all: ../public/tapestry.wasm ../src/wasm-loader.js

clean:
	rm -f *.js ../public/tapestry.wasm ../src/wasm-loader.js<commit_msg>Add enhanced debugging flag when building the wasm module<commit_after>export EMCC_DEBUG=1

wasm-loader.js: tapestry.cpp
	em++ --bind --std=c++11 -O3 tapestry.cpp -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s MODULARIZE=1 -s ASSERTIONS=1 -o wasm-loader.js

../public/tapestry.wasm: wasm-loader.js
	mv wasm-loader.wasm ../public/tapestry.wasm

../src/wasm-loader.js: wasm-loader.js
	echo "/* eslint-disable */" | cat - wasm-loader.js > /tmp/out && mv /tmp/out wasm-loader.js
	mv wasm-loader.js ../src/wasm-loader.js

all: ../public/tapestry.wasm ../src/wasm-loader.js

clean:
	rm -f *.js ../public/tapestry.wasm ../src/wasm-loader.js
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.012626262626262626, 'mean_word_length': 3.0719178082191783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5849411', 'n_tokens_mistral': 528, 'n_tokens_neox': 493, 'n_words': 97}