<commit_before>import warnings
from unittest import TestCase

class DeprecationTest(TestCase):

    def assertDeprecated(self, cls, *args, **kwargs):<commit_msg>Python 2.5 compatibility. Fix #40.<commit_after>from __future__ import with_statement
import warnings
from unittest import TestCase

class DeprecationTest(TestCase):
    # python >= 2.6 is required to make deprecation warning tests useful
    # this DeprecationTest is always successful for python < 2.6

    def assertDeprecated(self, cls, *args, **kwargs):
{'fraction_non_alphanumeric': 0.0789980732177264, 'fraction_numerical': 0.015414258188824663, 'mean_word_length': 5.5, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5731476', 'n_tokens_mistral': 148, 'n_tokens_neox': 139, 'n_words': 51}