<commit_before>#!/bin/bash

suffix=so
if [ `uname -s` == "Darwin" ]; then
	suffix=dylib
fi

# compile wrapper around libogg + liboggz + libskeleton
EMCC_FAST_COMPILER=1 emcc \
  -O2 \
  --memory-init-file 0 \
  -s ASM_JS=1 \
  -s VERBOSE=1 \
  -s ERROR_ON_UNDEFINED_SYMBOLS=1 \
  -s NO_FILESYSTEM=1 \
  -s NO_BROWSER=1 \
  -s INVOKE_RUN=0 \
  -s NO_EXIT_RUNTIME=1 \
  -s EXPORT_NAME="'OGVDemuxerOgg'" \
  -s MODULARIZE=1 \
  -s EXPORTED_FUNCTIONS="`< src/ogv-demuxer-exports.json`" \
  -s ASSERTIONS=2 \
  --profiling \
  -Ibuild/js/root/include \
  -Lbuild/js/root/lib \
  build/js/root/lib/libogg.$suffix \
  build/js/root/lib/liboggz.$suffix \
  build/js/root/lib/libskeleton.$suffix \
  --js-library src/ogv-demuxer-callbacks.js \
  --pre-js src/ogv-module-pre.js \<commit_msg>don't use profiling options on demuxer whoops<commit_after>#!/bin/bash

suffix=so
if [ `uname -s` == "Darwin" ]; then
	suffix=dylib
fi

# compile wrapper around libogg + liboggz + libskeleton
EMCC_FAST_COMPILER=1 emcc \
  -O2 \
  --memory-init-file 0 \
  -s ASM_JS=1 \
  -s VERBOSE=1 \
  -s ERROR_ON_UNDEFINED_SYMBOLS=1 \
  -s NO_FILESYSTEM=1 \
  -s NO_BROWSER=1 \
  -s INVOKE_RUN=0 \
  -s NO_EXIT_RUNTIME=1 \
  -s EXPORT_NAME="'OGVDemuxerOgg'" \
  -s MODULARIZE=1 \
  -s EXPORTED_FUNCTIONS="`< src/ogv-demuxer-exports.json`" \
  -Ibuild/js/root/include \
  -Lbuild/js/root/lib \
  build/js/root/lib/libogg.$suffix \
  build/js/root/lib/liboggz.$suffix \
  build/js/root/lib/libskeleton.$suffix \
  --js-library src/ogv-demuxer-callbacks.js \
  --pre-js src/ogv-module-pre.js \
{'fraction_non_alphanumeric': 0.15982028241335045, 'fraction_numerical': 0.014762516046213094, 'mean_word_length': 2.7931873479318736, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1966858', 'n_tokens_mistral': 732, 'n_tokens_neox': 706, 'n_words': 109}