<commit_before>#!/bin/bash

# For manual tests. Run this in the tests folder

# make the training database
echo "Training on data"
rm TrainingDatabase.h5 2> /dev/null
rm TrainingDatabase.tst 2> /dev/null
/usr/bin/time python ../scripts/MakeStreamingDNADatabase.py filenames.txt TrainingDatabase.h5
if test -f TrainingDatabase.h5; then
  if test -f TrainingDatabase.tst; then
    echo "Training file successfully created"
  else
    echo "SOMETHING WENT WRONG!!!!"
  fi
  else
    echo "SOMETHING WENT WRONG!!!!"
fi<commit_msg>add line to test to make sure it picks up the right version of CMash. #13<commit_after>#!/bin/bash

# For manual tests. Run this in the tests folder

# In case you have multiple versions installed (eg. Metalign as well as CMash), make sure python is looking in the right place:
export PYTHONPATH="$(dirname "`pwd`")":$PYTHONPATH

# make the training database
echo "Training on data"
rm TrainingDatabase.h5 2> /dev/null
rm TrainingDatabase.tst 2> /dev/null
/usr/bin/time python ../scripts/MakeStreamingDNADatabase.py filenames.txt TrainingDatabase.h5
if test -f TrainingDatabase.h5; then
  if test -f TrainingDatabase.tst; then
    echo "Training file successfully created"
  else
    echo "SOMETHING WENT WRONG!!!!"
  fi
  else
    echo "SOMETHING WENT WRONG!!!!"
fi
{'fraction_non_alphanumeric': 0.09287925696594428, 'fraction_numerical': 0.009287925696594427, 'mean_word_length': 4.1106719367588935, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 7, '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': '1157936', 'n_tokens_mistral': 425, 'n_tokens_neox': 403, 'n_words': 155}