<commit_before># -*- coding: utf-8 -*-

from __future__ import print_function


class pylsytable(object):

    def __init__(self, attributes):
        self.StrTable = ""
        self.Attributes = attributes
        self.Table = []
        self.AttributesLength = []
        self.Cols_num = len(self.Attributes)
        self.Lines_num = 0
        for attribute in self.Attributes:
            col = dict()
            col[attribute] = ""
            self.Table.append(col)

    def print_divide(self):
        for space in self.AttributesLength:
            self.StrTable += "+ "
            for sign in range(space):
                self.StrTable += "- "
        self.StrTable += "+"+"\n"

    def add_data(self, attribute, values):
        for col in self.Table:
            if attribute in col:
                dict_values = [str(value) for value in values]
                col[attribute] = dict_values

    def create_table(self):
        for col in self.Table:
            values = list(col.values())[0]
            if self.Lines_num < len(values):
                self.Lines_num = len(values)
            # find the length of longest word in current column

            key_length = len(list(col.keys())[0])
            for value in values:
                length = len(value)
                if length > key_length:<commit_msg>Fix multiple print bug<commit_after># -*- coding: utf-8 -*-

from __future__ import print_function


class pylsytable(object):

    def __init__(self, attributes):
        self.StrTable = ""
        self.Attributes = attributes
        self.Table = []
        self.AttributesLength = []
        self.Cols_num = len(self.Attributes)
        self.Lines_num = 0
        for attribute in self.Attributes:
            col = dict()
            col[attribute] = ""
            self.Table.append(col)

    def print_divide(self):
        for space in self.AttributesLength:
            self.StrTable += "+ "
            for sign in range(space):
                self.StrTable += "- "
        self.StrTable += "+"+"\n"

    def add_data(self, attribute, values):
        for col in self.Table:
            if attribute in col:
                dict_values = [str(value) for value in values]
                col[attribute] = dict_values

    def create_table(self):
        self.StrTable = ""
        self.AttributesLength = []
        for col in self.Table:
            values = list(col.values())[0]
            if self.Lines_num < len(values):
                self.Lines_num = len(values)
            # find the length of longest word in current column

            key_length = len(list(col.keys())[0])
            for value in values:
                length = len(value)
                if length > key_length:
{'fraction_non_alphanumeric': 0.10449397150164413, 'fraction_numerical': 0.0029229082937522835, 'mean_word_length': 1.7055335968379446, 'pattern_counts': {'":': 0, '<': 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': '2795278', 'n_tokens_mistral': 760, 'n_tokens_neox': 733, 'n_words': 196}