<commit_before>#!/bin/bash
#A shell script for Jenknis to run valgrind on rocksdb tests
#Returns 0 on success when there are no failed tests 

VALGRIND_DIR=VALGRIND_LOGS
make valgrind_check
NUM_FAILED_TESTS=`wc -l $VALGRIND_DIR/valgrind_failed_tests | awk '{print $1}'`
if [ $NUM_FAILED_TESTS -le '1' ]; then
{
  echo No tests have valgrind errors;
  exit 0;
}
else
{
  cat $VALGRIND_DIR/valgrind_failed_tests;
  exit 1;
}
fi<commit_msg>Fix Bash Script to run valgrind.<commit_after>#!/bin/bash
#A shell script for Jenknis to run valgrind on rocksdb tests
#Returns 0 on success when there are no failed tests 

VALGRIND_DIR=VALGRIND_LOGS
make valgrind_check
NUM_FAILED_TESTS=`wc -l $VALGRIND_DIR/valgrind_failed_tests | awk '{print $1}'`
if [ $NUM_FAILED_TESTS -le 1 ]; then
  echo No tests have valgrind errors
  exit 0
else
  cat $VALGRIND_DIR/valgrind_failed_tests
  exit 1
fi
{'fraction_non_alphanumeric': 0.07849829351535836, 'fraction_numerical': 0.011376564277588168, 'mean_word_length': 4.98639455782313, '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': '1629161', 'n_tokens_mistral': 340, 'n_tokens_neox': 327, 'n_words': 104}