<commit_before>## Helper script for build_all.sh

FILE=$1

macro="$macro -D_ELPP_THREAD_SAFE"
macro="$macro -D_ELPP_STL_LOGGING"
macro="$macro -D_ELPP_LOG_UNORDERED_SET"
macro="$macro -D_ELPP_LOG_UNORDERED_MAP"
macro="$macro -D_ELPP_STACKTRACE_ON_CRASH"
macro="$macro -D_ELPP_LOGGING_FLAGS_FROM_ARG"

if [ "$2" = "" ];then
  COMPILER=g++
else
  COMPILER=$2
fi

CXX_STD='-std=c++0x -pthread'

if [ "$FILE" = "" ]; then
  echo "Please provide filename to compile"
  exit
fi

echo "Compiling... [$FILE]"

COMPILE_LINE="$COMPILER $FILE -o bin/$FILE.bin $macro $CXX_STD -Wall -Wextra -pedantic -pedantic-errors -Werror -Wfatal-errors"

echo "    $COMPILE_LINE"

$($COMPILE_LINE)

echo "    DONE! [./bin/$FILE.bin]"
echo
echo
<commit_msg>compile.sh upgrade<commit_after>## Helper script for build_all.sh

FILE=$1

macro="$macro -D_ELPP_DEBUG_ERRORS"
macro="$macro -D_ELPP_THREAD_SAFE"
macro="$macro -D_ELPP_STL_LOGGING"
macro="$macro -D_ELPP_LOG_UNORDERED_SET"
macro="$macro -D_ELPP_LOG_UNORDERED_MAP"
macro="$macro -D_ELPP_STACKTRACE_ON_CRASH"
macro="$macro -D_ELPP_LOGGING_FLAGS_FROM_ARG"
# macro="$macro -D_ELPP_DEFAULT_LOG_FILE=\"/a/path/that/does/not/exist/f.log\""

if [ "$2" = "" ];then
  COMPILER=g++
else
  COMPILER=$2
fi

CXX_STD='-std=c++0x -pthread'

if [ "$FILE" = "" ]; then
  echo "Please provide filename to compile"
  exit
fi

echo "Compiling... [$FILE]"

COMPILE_LINE="$COMPILER $FILE -o bin/$FILE.bin $macro $CXX_STD -Wall -Wextra -pedantic -pedantic-errors -Werror -Wfatal-errors"

echo "    $COMPILE_LINE"

$($COMPILE_LINE)

echo "    DONE! [./bin/$FILE.bin]"
echo
echo

{'fraction_non_alphanumeric': 0.1608832807570978, 'fraction_numerical': 0.005047318611987382, 'mean_word_length': 5.0534351145038165, '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': '4403062', 'n_tokens_mistral': 703, 'n_tokens_neox': 665, 'n_words': 127}