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

"""Cleanup interactive transcript received on standard input.

This mostly consists in pretty-pretting JSON messages and sorting their
fields, to permit text-based comparisons against reference transcripts.

Usage: python2 cleanup.py [fname.clean] < [fname.dirty]
"""<commit_msg>tests: Clarify the docstring of cleanup.py<commit_after>#!/usr/bin/env python2

"""Cleanup interactive transcript received on standard input.

This mostly consists in pretty-pretting JSON messages and sorting their
fields, to permit text-based comparisons against reference transcripts.

Usage: python2 cleanup.py fname.clean < fname.dirty
"""
{'fraction_non_alphanumeric': 0.08169440242057488, 'fraction_numerical': 0.006051437216338881, 'mean_word_length': 5.686868686868687, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3082244', 'n_tokens_mistral': 183, 'n_tokens_neox': 168, 'n_words': 69}