<commit_before>from datetime import datetime
import os
from os.path import join
from subprocess import check_output
from unittest2 import TestCase # TODO: python2 warning
from buildercore import config, project
import logging
import imp

LOG = logging.getLogger(__name__)
<commit_msg>Portability of test cases in Python 2<commit_after>from datetime import datetime
import os
from os.path import join
from subprocess import check_output
try:
    # Python 3
    # pylint: disable-msg=import-error
    from unittest2 import TestCase
except ImportError:
    # Python2
    from unittest import TestCase
from buildercore import config, project
import logging
import imp

LOG = logging.getLogger(__name__)

{'fraction_non_alphanumeric': 0.04148783977110158, 'fraction_numerical': 0.008583690987124463, 'mean_word_length': 5.140350877192983, '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': '7415838', 'n_tokens_mistral': 185, 'n_tokens_neox': 181, 'n_words': 79}