<commit_before>#!/bin/sh

set -x

if [ -z "$HIMAN" ]; then
	export HIMAN="../../himan"
fi

rm -f RH-PRCNT_hybrid_65_rll_1030_816_0_00*.grib P-HPA*grib

$HIMAN -d 5 -j 1 -f relative_humidity_hirlam.json -t grib --no-cuda source_hirlam.grib

grib_compare RH-PRCNT_hybrid_65_rll_1030_816_0_004.grib result_hirlam_4.grib 

if [ $? -ne 0 ];then
  echo relative humidity/hirlam failed on CPU
  exit 1
fi

grib_compare RH-PRCNT_hybrid_65_rll_1030_816_0_005.grib result_hirlam_5.grib 

if [ $? -eq 0 ];then
  echo relative humidity/hirlam success on CPU!
else
  echo relative humidity/hirlam failed on CPU
  exit 1
fi


if [ $(/sbin/lsmod | egrep -c "^nvidia") -gt 0 ]; then

rm -f RH-PRCNT_hybrid_65_rll_1030_816_0_00*.grib P-HPA*grib

  $HIMAN -s cuda -d 5 -f relative_humidity_hirlam.json -t grib source_hirlam.grib

  grib_compare -A 0.01 RH-PRCNT_hybrid_65_rll_1030_816_0_004.grib result_hirlam_4.grib

  if [ $? -eq 0 ];then
    echo relative_humidity/hirlam success on GPU!
  else
    echo relative_humidity/hirlam failed on GPU
  fi
else
  echo "no cuda device found for cuda tests"
fi

<commit_msg>Disregard changes in referenceValue<commit_after>#!/bin/sh

set -x

if [ -z "$HIMAN" ]; then
	export HIMAN="../../himan-bin/himan"
fi

rm -f RH-PRCNT_hybrid_65_rll_1030_816_0_00*.grib P-HPA*grib

$HIMAN -d 5 -j 1 -f relative_humidity_hirlam.json -t grib --no-cuda source_hirlam.grib

grib_compare RH-PRCNT_hybrid_65_rll_1030_816_0_004.grib result_hirlam_4.grib 

if [ $? -ne 0 ];then
  echo relative humidity/hirlam failed on CPU
  exit 1
fi

grib_compare RH-PRCNT_hybrid_65_rll_1030_816_0_005.grib result_hirlam_5.grib 

if [ $? -eq 0 ];then
  echo relative humidity/hirlam success on CPU!
else
  echo relative humidity/hirlam failed on CPU
  exit 1
fi


if [ $(/sbin/lsmod | egrep -c "^nvidia") -gt 0 ]; then

rm -f RH-PRCNT_hybrid_65_rll_1030_816_0_00*.grib P-HPA*grib

  $HIMAN -s cuda -d 5 -f relative_humidity_hirlam.json -t grib source_hirlam.grib

  grib_compare -b referenceValue -A 0.01 RH-PRCNT_hybrid_65_rll_1030_816_0_004.grib result_hirlam_4.grib

  if [ $? -eq 0 ];then
    echo relative_humidity/hirlam success on GPU!
  else
    echo relative_humidity/hirlam failed on GPU
  fi
else
  echo "no cuda device found for cuda tests"
fi


{'fraction_non_alphanumeric': 0.0947508896797153, 'fraction_numerical': 0.0693950177935943, 'mean_word_length': 3.7547568710359407, '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': '2751310', 'n_tokens_mistral': 1112, 'n_tokens_neox': 966, 'n_words': 239}