<commit_before>#!/bin/bash

set -o errexit

declare -a TESTS

TESTS=(bitset_container_unit \
       array_container_unit \
       run_container_unit \
       toplevel_unit \
       unit)

function run_tests() {
  for t in ${TESTS[@]}; do
    ./$t
  done
}

function main() {
  echo -e " \x1B[0;32mTesting non-AVX version.\x1B[0m "
  make --silent NOAVXTUNING=1 clean all
  run_tests

  echo -e " \x1B[0;32mTesting AVX version.\x1B[0m "
  make --silent NOAVXTUNING=0 clean all
  run_tests
}

main<commit_msg>Adding a final printout to confirm that all is right.<commit_after>#!/bin/bash

set -o errexit

declare -a TESTS

TESTS=(bitset_container_unit \
       array_container_unit \
       run_container_unit \
       toplevel_unit \
       unit)

function run_tests() {
  for t in ${TESTS[@]}; do
    ./$t
  done
}

function main() {
  echo -e " \x1B[0;32mTesting non-AVX version.\x1B[0m "
  make --silent NOAVXTUNING=1 clean all
  run_tests

  echo -e " \x1B[0;32mTesting AVX version.\x1B[0m "
  make --silent NOAVXTUNING=0 clean all
  run_tests

  echo -e "\n\n \x1B[0;31m[\x1B[0m \x1B[0;32mAll tests clear.\x1B[0m \x1B[0;31m]\x1B[0m \n\n"
}

main
{'fraction_non_alphanumeric': 0.12532637075718014, 'fraction_numerical': 0.04003481288076589, 'mean_word_length': 2.7704918032786887, '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': '3566079', 'n_tokens_mistral': 501, 'n_tokens_neox': 485, 'n_words': 109}