<commit_before>import esclient
import unittest

class TestESClient(unittest.TestCase):
    """Test all API methods implemented in esclient library"""

    @classmethod
    def setUpClass(cls):
        """Create an ESClient"""
        cls.es = esclient.ESClient("http://localhost:9200/")

        """Delete the test schema, if any. This will prevent any errors
        due to the schema already existing """
        cls.es.delete_index("contacts_esclient_test")

    def setUp(self):<commit_msg>Don't mix between cls and self, use self all over.<commit_after>import esclient
import unittest

class TestESClient(unittest.TestCase):
    """Test all API methods implemented in esclient library"""

    @classmethod
    def setUpClass(self):
        """Create an ESClient"""
        self.es = esclient.ESClient("http://localhost:9200/")

        """Delete the test schema, if any. This will prevent any errors
        due to the schema already existing """
        self.es.delete_index("contacts_esclient_test")

    def setUp(self):
{'fraction_non_alphanumeric': 0.10408560311284047, 'fraction_numerical': 0.007782101167315175, 'mean_word_length': 3.3787234042553194, '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': '2080875', 'n_tokens_mistral': 289, 'n_tokens_neox': 278, 'n_words': 92}