<commit_before>#!/bin/bash

CMAKE="/Applications/CMake.app/Contents/bin/cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++"
#CMAKE="cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++"

DIRS="common watergate core"
DIRS_TO_BUILD=""

for dir in $DIRS;
do
    DIRS_TO_BUILD="$DIRS_TO_BUILD $dir"
    if [ -d "$dir/test" ];then
        DIRS_TO_BUILD="$DIRS_TO_BUILD $dir/test"
	fi
done

echo "Building directories [$DIRS_TO_BUILD] ..."<commit_msg>Added cmake based on OS.<commit_after>#!/bin/bash

if [ "$(uname)" == "Darwin" ]; then
    # Do something under Mac OS X platform
    CMAKE="/Applications/CMake.app/Contents/bin/cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
    # Do something under GNU/Linux platform
    CMAKE="cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++"
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
    # Do something under Windows NT platform
fi


echo "Using cmake [$CMAKE]..."

DIRS="common watergate core"
DIRS_TO_BUILD=""

for dir in $DIRS;
do
    DIRS_TO_BUILD="$DIRS_TO_BUILD $dir"
    if [ -d "$dir/test" ];then
        DIRS_TO_BUILD="$DIRS_TO_BUILD $dir/test"
	fi
done

echo "Building directories [$DIRS_TO_BUILD] ..."
{'fraction_non_alphanumeric': 0.14992272024729522, 'fraction_numerical': 0.005409582689335394, 'mean_word_length': 4.51063829787234, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7067269', 'n_tokens_mistral': 556, 'n_tokens_neox': 500, 'n_words': 111}