<commit_before>from __future__ import print_function

import argparse

from robot.errors import DataError
from robot.tidy import Tidy


def main(argv=None):
    parser = argparse.ArgumentParser()
    parser.add_argument('filenames', nargs='*', help='Filenames to run')
    parser.add_argument('--use-pipes', action='store_true', dest='use_pipes',
                        default=False)
    parser.add_argument('--space-count', type=int, dest='space_count',
                        default=4)
    args = parser.parse_args(argv)

    tidier = Tidy(use_pipes=args.use_pipes, space_count=args.space_count)<commit_msg>Format results as robot files<commit_after>from __future__ import print_function

import argparse

from robot.errors import DataError
from robot.tidy import Tidy


def main(argv=None):
    parser = argparse.ArgumentParser()
    parser.add_argument('filenames', nargs='*', help='Filenames to run')
    parser.add_argument('--use-pipes', action='store_true', dest='use_pipes',
                        default=False)
    parser.add_argument('--space-count', type=int, dest='space_count',
                        default=4)
    args = parser.parse_args(argv)

    tidier = Tidy(use_pipes=args.use_pipes,
                  space_count=args.space_count,
                  format='robot')
{'fraction_non_alphanumeric': 0.11591962905718702, 'fraction_numerical': 0.0015455950540958269, 'mean_word_length': 3.2880794701986753, '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': '5924798', 'n_tokens_mistral': 398, 'n_tokens_neox': 386, 'n_words': 76}