<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
import unicodedata
import epitran
import argparse

def main(code):
    epi = epitran.Epitran(code)
    for line in sys.stdin:
        line = line.decode('utf-8')
        line = unicodedata.normalize('NFD', line.lower())
        line = epi.transliterate(line)
        line = line.encode('utf-8')
        sys.stdout.write(line)

if __name__ == '__main__':
    parser = argparse.ArgumentParser(
        description=u'Coverts text from STDIN (in the language specified),' +
        'into Unicode IPA and emits it to STDOUT.')
    parser.add_argument('code', help=u'ISO 639-3 code for conversion language')
    args = parser.parse_args()
    main(args.code)
<commit_msg>Corrected formatting<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
import unicodedata
import epitran
import argparse


def main(code):
    epi = epitran.Epitran(code)
    for line in sys.stdin:
        line = line.decode('utf-8')
        line = unicodedata.normalize('NFD', line.lower())
        line = epi.transliterate(line)
        line = line.encode('utf-8')
        sys.stdout.write(line)


if __name__ == '__main__':
    parser = argparse.ArgumentParser(
        description=u'Coverts text from STDIN (in the language specified),' +
        'into Unicode IPA and emits it to STDOUT.')
    parser.add_argument('code', help=u'ISO 639-3 code for conversion language')
    args = parser.parse_args()
    main(args.code)

{'fraction_non_alphanumeric': 0.1265993265993266, 'fraction_numerical': 0.009427609427609427, 'mean_word_length': 3.060109289617486, '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': '1853010', 'n_tokens_mistral': 507, 'n_tokens_neox': 484, 'n_words': 123}