<commit_before>import base64
import unittest


def setup_package(self):
    pass


def teardown_package(self):
    pass


class BaseS3EncryptTest(unittest.TestCase):

    def decode64(self, data):
        return base64.b64decode(data)

    def encode64(self, data):
        return base64.b64encode(data)<commit_msg>Make test helpers py 3 compatable<commit_after>import base64
import codecs
import unittest


def setup_package(self):
    pass


def teardown_package(self):
    pass


class BaseS3EncryptTest(unittest.TestCase):

    def decode64(self, data):
        return base64.b64decode(codecs.decode(data, 'utf-8'))

    def encode64(self, data):
        return codecs.encode(base64.b64encode(data), 'utf-8')
{'fraction_non_alphanumeric': 0.09550561797752809, 'fraction_numerical': 0.046348314606741575, 'mean_word_length': 4.02112676056338, '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': '4180998', 'n_tokens_mistral': 257, 'n_tokens_neox': 230, 'n_words': 52}