<commit_before>#!/usr/bin/env bash
INPUT=$1

./generate.py $INPUT templates output || exit 1
cp $INPUT output/

pushd output > /dev/null
INPUT_FILE=$(basename $INPUT)
OUTPUT=${INPUT_FILE%.h}
clang++-3.8 -fvisibility=hidden -g -std=c++14 -shared -Wl, -o lib${OUTPUT}_c.dylib -fPIC ${OUTPUT}_c.cpp || exit 1
strip -x lib${OUTPUT}_c.dylib
popd > /dev/null<commit_msg>use libc++ when building c-api dll<commit_after>#!/usr/bin/env bash
INPUT=$1

./generate.py $INPUT templates output || exit 1
cp $INPUT output/

pushd output > /dev/null
INPUT_FILE=$(basename $INPUT)
OUTPUT=${INPUT_FILE%.h}
clang++-3.8 -fvisibility=hidden -g -std=c++14 -stdlib=libc++ -shared -Wl, -o lib${OUTPUT}_c.dylib -fPIC ${OUTPUT}_c.cpp || exit 1
strip -x lib${OUTPUT}_c.dylib
popd > /dev/null
{'fraction_non_alphanumeric': 0.18193717277486912, 'fraction_numerical': 0.01832460732984293, 'mean_word_length': 4.503597122302159, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5138595', 'n_tokens_mistral': 310, 'n_tokens_neox': 294, 'n_words': 75}