<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 - cologler <<EMAIL>>
# ----------
#
# ----------

import os
import sys
import traceback
import unittest

from jasily.exceptions import *


class TestArgumentTypeException(unittest.TestCase):
    def test_ctor(self):
        with self.assertRaises(ArgumentTypeException):
            ArgumentTypeException('str', 1)

    def test_tostr(self):
        print(ArgumentTypeException(str, 1))


def main(argv=None):
    if argv is None:
        argv = sys.argv
    try:
        unittest.main()
    except Exception:
        traceback.print_exc()
        input()

if __name__ == '__main__':
    main()<commit_msg>refactor.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 - cologler <<EMAIL>>
# ----------
#
# ----------

import os
import sys
import traceback
import unittest
import colorama as c

from jasily.exceptions import *

class TestArgumentTypeException(unittest.TestCase):
    def test_ctor(self):
        with self.assertRaises(ArgumentTypeException):
            ArgumentTypeException('str', 1)

    def test_tostr(self):
        print('show str(ArgumentTypeException):')
        print(c.Fore.LIGHTGREEN_EX + str(ArgumentTypeException(str, 1)))


def main(argv=None):
    if argv is None:
        argv = sys.argv
    try:
        c.init(True)
        unittest.main()
    except Exception:
        traceback.print_exc()
        input()

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.1431438127090301, 'fraction_numerical': 0.009364548494983277, 'mean_word_length': 2.6577017114914425, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7426247', 'n_tokens_mistral': 484, 'n_tokens_neox': 464, 'n_words': 107}