{'fraction_non_alphanumeric': 0.028056112224448898, 'fraction_numerical': 0.004008016032064128, 'mean_word_length': 5.097560975609756, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, '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}}
Implementing a Selective Undo Framework in Python

I’ve implemented in Python the undo algorithm found in “Undoing Actions in Collaborative Work: Framework and Experience” by Prakash and Knister [PK94]. Their approach helps structure the objects that make up a “document”. Those same objects are well suited for use in an embedded language like Python: with them you can write scripts that can be undone! I’ve implemented standard file operations as a simple concrete example of using the framework.