<commit_before>
import stl.ascii
import stl.binary


def parse_ascii_file(file):
    return stl.ascii.parse(file)


def parse_binary_file(file):
    return stl.binary.parse(file)


def parse_ascii_string(data):
    from StringIO import StringIO
    return parse_ascii_file(StringIO(data))


def parse_binary_string(data):
    from StringIO import StringIO
    return parse_binary_file(StringIO(data))<commit_msg>Rename the reading functions "read_" rather than "parse_".<commit_after>
import stl.ascii
import stl.binary


def read_ascii_file(file):
    return stl.ascii.parse(file)


def read_binary_file(file):
    return stl.binary.parse(file)


def read_ascii_string(data):
    from StringIO import StringIO
    return parse_ascii_file(StringIO(data))


def read_binary_string(data):
    from StringIO import StringIO
    return parse_binary_file(StringIO(data))
{'fraction_non_alphanumeric': 0.08208092485549133, 'fraction_numerical': 0.0, 'mean_word_length': 5.141843971631205, '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': '1304204', 'n_tokens_mistral': 297, 'n_tokens_neox': 277, 'n_words': 64}