<commit_before>import betamax
import github3
import os
import sys

if sys.version_info < (3, 0):
    from unittest2 import TestCase
else:
    from unittest import TestCase


class IntegrationHelper(TestCase):
    def setUp(self):
        self.user = os.environ.get('GH_USER', 'foo')
        self.password = os.environ.get('GH_PASSWORD', '<PASSWORD>')
        self.token = os.environ.get('GH_AUTH', 'x' * 20)
        self.gh = github3.GitHub()
        self.session = self.gh._session
        self.recorder = betamax.Betamax(self.session)

    def token_login(self):
        self.gh.login(token=self.token)

    def basic_login(self):
        self.gh.login(self.user, self.password)

    def cassette_name(self, method):
        class_name = self.described_class
        return '_'.join([class_name, method])

    @property<commit_msg>No need for unittest2<commit_after>import betamax
import github3
import os
import sys
import unittest


class IntegrationHelper(unittest.TestCase):
    def setUp(self):
        self.user = os.environ.get('GH_USER', 'foo')
        self.password = os.environ.get('GH_PASSWORD', '<PASSWORD>')
        self.token = os.environ.get('GH_AUTH', 'x' * 20)
        self.gh = github3.GitHub()
        self.session = self.gh._session
        self.recorder = betamax.Betamax(self.session)

    def token_login(self):
        self.gh.login(token=self.token)

    def basic_login(self):
        self.gh.login(self.user, self.password)

    def cassette_name(self, method):
        class_name = self.described_class
        return '_'.join([class_name, method])

    @property
{'fraction_non_alphanumeric': 0.12303829252981795, 'fraction_numerical': 0.007532956685499058, 'mean_word_length': 3.0151133501259446, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 5, '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': '4982885', 'n_tokens_mistral': 542, 'n_tokens_neox': 512, 'n_words': 105}