<commit_before>from pychecker2 import main
from pychecker2 import Options
from pychecker2 import VariableChecks

import unittest

class WarningTester(unittest.TestCase):
    def __init__(self, arg):
        unittest.TestCase.__init__(self, arg)
        self.options = Options.Options()
        self.checklist = main.create_checklist(self.options)
        self.argv = []

    def check_warning(self, w, expected_line, expected_type, *expected_args):
        warn_line, warn_type, warn_args = w
        try:
            self.assertEqual(warn_type, expected_type)
            self.assertEqual(warn_line, expected_line)
            self.assertEqual(len(warn_args), len(expected_args))<commit_msg>remove unused import<commit_after>from pychecker2 import main
from pychecker2 import Options

import unittest

class WarningTester(unittest.TestCase):
    def __init__(self, arg):
        unittest.TestCase.__init__(self, arg)
        self.options = Options.Options()
        self.checklist = main.create_checklist(self.options)
        self.argv = []

    def check_warning(self, w, expected_line, expected_type, *expected_args):
        warn_line, warn_type, warn_args = w
        try:
            self.assertEqual(warn_type, expected_type)
            self.assertEqual(warn_line, expected_line)
            self.assertEqual(len(warn_args), len(expected_args))
{'fraction_non_alphanumeric': 0.08721359940872137, 'fraction_numerical': 0.003695491500369549, 'mean_word_length': 3.41042345276873, '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': '4408145', 'n_tokens_mistral': 392, 'n_tokens_neox': 386, 'n_words': 83}