<commit_before>import unittest

from compiling._utils import *

class SourceGeneratorTestCase(unittest.TestCase):
    def test_source_generator_for_c(self):
        x = source_generator('c').next()
        self.assertTrue('target' in x)
        self.assertTrue('source' in x)

if __name__ == '__main__':
    unittest.main()<commit_msg>fix next for python3 compatible<commit_after>#!/usr/bin/env python
import unittest

from compiling._utils import *

class SourceGeneratorTestCase(unittest.TestCase):
    def test_source_generator_for_c(self):
        x = next(source_generator('c'))
        self.assertTrue('target' in x)
        self.assertTrue('source' in x)

if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.11283497884344147, 'fraction_numerical': 0.0014104372355430183, 'mean_word_length': 4.182481751824818, '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': '465947', 'n_tokens_mistral': 216, 'n_tokens_neox': 216, 'n_words': 47}