<commit_before>#!/usr/bin/env bash

find lib -name "*.rl" -exec ragel -I lib/bel_parser/parsers/common/ -I lib/bel_parser/parsers/expression/ -I lib/bel_parser/parsers/bel_script/ -R -F1 -L {} \;
<commit_msg>tweak build_all to exit on ragel failure<commit_after>#!/usr/bin/env bash
find lib -name "*.rl" | while read rl; do
    ragel -I lib/bel_parser/parsers/common \
          -I lib/bel_parser/parsers/expression \
          -I lib/bel_parser/parsers/bel_script \
          -R \
          -F1 \
          -L \
         $rl || exit 1
done


{'fraction_non_alphanumeric': 0.13837638376383765, 'fraction_numerical': 0.005535055350553505, 'mean_word_length': 2.1206896551724137, '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': '856488', 'n_tokens_mistral': 205, 'n_tokens_neox': 198, 'n_words': 47}