<commit_before># coding=utf-8

import unittest
import pprint
from src.__io import read_obj

__author__ = 'kanairen'


class TestReadObj(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        pass

    def setUp(self):
        # face:v only
        self.file_path_0 = '../res/obj/0.obj'
        # normal exist & face:v//t
        self.file_path_1 = '../res/obj/1.obj'
        # non normal & face:v//t
        self.file_path_2 = '../res/obj/2.obj'

    def testReadObj(self):
        obj0 = read_obj(self.file_path_0)
        print obj0

        obj1 = read_obj(self.file_path_1)
        print obj1

        obj2 = read_obj(self.file_path_2)
        print obj2


if __name__ == '__main__':
    unittest.main()<commit_msg>fix test of io.py .<commit_after># coding=utf-8

import unittest
import pprint
from src.__io import read_obj

__author__ = 'kanairen'


class TestReadObj(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        pass

    def setUp(self):
        # face:v only
        self.file_path_0 = '../res/obj/0.obj'
        # non normal & face:v//t
        self.file_path_1 = '../res/obj/1.obj'

    def testReadObj(self):
        obj0 = read_obj(self.file_path_0)
        print obj0

        obj1 = read_obj(self.file_path_1)
        print obj1


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.11645379413974455, 'fraction_numerical': 0.0202854996243426, 'mean_word_length': 2.240875912408759, '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': '6666696', 'n_tokens_mistral': 488, 'n_tokens_neox': 474, 'n_words': 98}