<commit_before>#!/bin/bash

FILES="./test_grammars/*"
for file in $FILES
do
    echo "===== Testing [ "$(cat $file)" ]"
    cat $file | 
done<commit_msg>Added simple tests. run ./test_parser.sh to run the tests. *Tested on flip*<commit_after>#!/bin/bash

FILES="./test_grammars/*"
ruby=/usr/bin/ruby19
for file in $FILES
do
    echo "=============================================="
    echo "------- Testing [ "$(cat $file)" ]"
    $ruby ./parser.rb $file
    echo
    echo
done
{'fraction_non_alphanumeric': 0.26778242677824265, 'fraction_numerical': 0.0041841004184100415, 'mean_word_length': 3.3545454545454545, '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': '1403652', 'n_tokens_mistral': 179, 'n_tokens_neox': 156, 'n_words': 43}