<commit_before>from terminaltables import AsciiTable


def output_ascii_table(table_title=None,
                       table_data=None,
                       inner_heading_row_border=False,
                       inner_row_border=False):
    table = AsciiTable(table_data)
    table.inner_heading_row_border = inner_heading_row_border
    table.inner_row_border = inner_row_border
    table.title = table_title
    print(table.table)


def dash_if_none(item=None):
    return item if item else '-'


def output_tags(tags):
    tag_list = []
    for tag_name, tag_value in tags.iteritems():
        tag_list.append("{0}:{1}".format(tag_name, tag_value))
    if tag_list:
        return ", ".join(tag_list)
    return "-"


def output_name_tag(tags):
    for tag_name, tag_value in tags.iteritems():
        if tag_name == 'Name':
            return tag_value
    return "-"

<commit_msg>output tags on multiple lines.<commit_after>from terminaltables import AsciiTable


def output_ascii_table(table_title=None,
                       table_data=None,
                       inner_heading_row_border=False,
                       inner_row_border=False):
    table = AsciiTable(table_data)
    table.inner_heading_row_border = inner_heading_row_border
    table.inner_row_border = inner_row_border
    table.title = table_title
    print(table.table)


def dash_if_none(item=None):
    return item if item else '-'


def output_tags(tags):
    tag_list = []
    for tag_name, tag_value in tags.iteritems():
        tag_list.append("{0}:{1}".format(tag_name, tag_value))
    if tag_list:
        return ",\n".join(tag_list)
    return "-"


def output_name_tag(tags):
    for tag_name, tag_value in tags.iteritems():
        if tag_name == 'Name':
            return tag_value
    return "-"


{'fraction_non_alphanumeric': 0.09375, 'fraction_numerical': 0.002232142857142857, 'mean_word_length': 2.719917012448133, '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': '3921434', 'n_tokens_mistral': 573, 'n_tokens_neox': 555, 'n_words': 110}