<commit_before>
def main():
    import startup
    startup.run()

if __name__ == "__main__":
    '''
    import pstats, cProfile
    cProfile.runctx("main()", globals(), locals(), "Profile.prof")

    s = pstats.Stats("Profile.prof")
    s.strip_dirs().sort_stats("cumulative").print_stats(20) # or "time"
    #s.strip_dirs().sort_stats("time").print_stats(20)
    '''
    main()

<commit_msg>Log with timestamps<commit_after>
def main():
    import startup
    startup.run()

import logging, sys

if __name__ == "__main__":
    '''
    import pstats, cProfile
    cProfile.runctx("main()", globals(), locals(), "Profile.prof")

    s = pstats.Stats("Profile.prof")
    s.strip_dirs().sort_stats("cumulative").print_stats(20) # or "time"
    #s.strip_dirs().sort_stats("time").print_stats(20)
    '''
    formatter = logging.Formatter("[%(asctime)s.%(msecs)03d][%(levelname)s][%(message)s]",
                                          "%H:%M:%S")
    console = logging.StreamHandler()
    console.setFormatter(formatter)
    sys._kivy_logging_handler = console

    main()


{'fraction_non_alphanumeric': 0.17614165890027958, 'fraction_numerical': 0.009319664492078284, 'mean_word_length': 3.3658536585365852, 'pattern_counts': {'":': 2, '<': 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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2686082', 'n_tokens_mistral': 372, 'n_tokens_neox': 359, 'n_words': 59}