<commit_before>
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(
                    os.path.dirname(os.path.realpath(__file__)))),
                    "Firmware", "fibre", "python"))

import fibre
find_any = fibre.find_any
find_all = fibre.find_all<commit_msg>break install-time import dep<commit_after>
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(
                    os.path.dirname(os.path.realpath(__file__)))),
                    "Firmware", "fibre", "python"))

# Syntactic sugar to make usage more intuative.
# Try/pass used to break install-time dep issues
try:
    import fibre
    find_any = fibre.find_any
    find_all = fibre.find_all
except:
    pass
{'fraction_non_alphanumeric': 0.12113055181695828, 'fraction_numerical': 0.0026917900403768506, 'mean_word_length': 2.9365079365079363, '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': '5867538', 'n_tokens_mistral': 252, 'n_tokens_neox': 239, 'n_words': 53}