<commit_before>#!/usr/bin/env python
import sys

from lvsr.ops import FST

fst = FST(sys.argv[1])
fst.explain(sys.argv[2])<commit_msg><spc><commit_after>#!/usr/bin/env python
import sys

from lvsr.ops import FST

fst = FST(sys.argv[1])
fst.explain([c if c != ' ' else '<spc>' for c in sys.argv[2]])
{'fraction_non_alphanumeric': 0.18120805369127516, 'fraction_numerical': 0.013422818791946308, 'mean_word_length': 4.75, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6299565', 'n_tokens_mistral': 132, 'n_tokens_neox': 130, 'n_words': 29}