<commit_before>"""cvrminer.

Usage:
  python -m cvrminer

Options:
  -h --help

No functionality presently implemented here. Try `python -m cvrminer.cvrfile`
instead.

"""


from __future__ import absolute_import, division, print_function


def main():
    """Handle command-line interface."""
    pass


if __name__ == "__main__":
    main()<commit_msg>Implement pretty print<commit_after>"""cvrminer.

Usage:
  cvrminer pretty-print <filename>

Options:
  -h --help

Try `python -m cvrminer.cvrfile` or `python -m cvrminer.xbrler`.

"""


from __future__ import absolute_import, division, print_function

from .xbrler import pretty_print


def main():
    """Handle command-line interface."""
    from docopt import docopt

    arguments = docopt(__doc__)

    if arguments['pretty-print']:

        pretty_print(arguments['<filename>'])


if __name__ == "__main__":
    main()
{'fraction_non_alphanumeric': 0.1217292377701934, 'fraction_numerical': 0.0, 'mean_word_length': 3.861878453038674, 'pattern_counts': {'":': 2, '<': 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': '727011', 'n_tokens_mistral': 296, 'n_tokens_neox': 279, 'n_words': 79}