<commit_before>
#!/bin/bash


#usage:runMain  ${TestType}  ${TestBitStream}
runMain()
{
  local ParameterFlag=""
  if [  $# -eq 1 -a   "$1" = "UnitTest" ]
  then
    let "ParameterFlag=0"
  elif [  $# -eq 2 -a   "$1" = "BinaryCompare" ]
  then
    let "ParameterFlag=0"
  else
    let "ParameterFlag=1"
  fi

  if [  ! ${ParameterFlag}  -eq 0  ]
  then
    echo "usage:     runMain UnitTest  "
    echo "       or  runMain BinaryCompare  \${TestBitStreamName}  "
    exit 1
  fi


  local TestType=$1
  local TestBitStream=$2

  if [ "${TestType}"  = "UnitTest"  ]
  then
    make -B ENABLE64BIT=Yes BUILDTYPE=Release all plugin test
    make -B ENABLE64BIT=Yes BUILDTYPE=Debug all plugin test<commit_msg>Abort directly on errors in the unit test in run_Test.sh<commit_after>
#!/bin/bash


#usage:runMain  ${TestType}  ${TestBitStream}
runMain()
{
  local ParameterFlag=""
  if [  $# -eq 1 -a   "$1" = "UnitTest" ]
  then
    let "ParameterFlag=0"
  elif [  $# -eq 2 -a   "$1" = "BinaryCompare" ]
  then
    let "ParameterFlag=0"
  else
    let "ParameterFlag=1"
  fi

  if [  ! ${ParameterFlag}  -eq 0  ]
  then
    echo "usage:     runMain UnitTest  "
    echo "       or  runMain BinaryCompare  \${TestBitStreamName}  "
    exit 1
  fi


  local TestType=$1
  local TestBitStream=$2

  if [ "${TestType}"  = "UnitTest"  ]
  then
    set -e
    make -B ENABLE64BIT=Yes BUILDTYPE=Release all plugin test
    make -B ENABLE64BIT=Yes BUILDTYPE=Debug all plugin test
{'fraction_non_alphanumeric': 0.12431693989071038, 'fraction_numerical': 0.020491803278688523, 'mean_word_length': 2.6994949494949494, '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': '2912148', 'n_tokens_mistral': 566, 'n_tokens_neox': 545, 'n_words': 148}