<commit_before>from UnitTest import UnitTest

class LongTest(UnitTest):

    def testAdd(self):
        x = 0L
        y = 1L
        x += y
        self.assertTrue(x == 1L)

    def testType(self):
        x = 1<<64
        self.assertTrue(x == 18446744073709551616L, "%s != 18446744073709551616L" % repr(x))
        self.assertTrue(isinstance(x, long))

        x = 1<<20
        self.assertTrue(x == 1048576, "%s != 1048576" % repr(x))
        self.assertTrue(isinstance(x, int))

        x = 1L<<20
        self.assertTrue(x == 1048576L, "%s != 1048576L" % repr(x))
        self.assertTrue(isinstance(x, long))
<commit_msg>Added fixed a long test<commit_after>from UnitTest import UnitTest

class LongTest(UnitTest):

    def testAdd(self):
        x = 0L
        y = 1L
        x += y
        self.assertTrue(x == 1L)

    def testType(self):
        x = 1L<<64
        self.assertTrue(x == 18446744073709551616L, "%s != 18446744073709551616L" % repr(x))
        self.assertTrue(isinstance(x, long))

        x = 1<<20
        self.assertTrue(x == 1048576, "%s != 1048576" % repr(x))
        self.assertTrue(isinstance(x, int))

        x = 1L<<20
        self.assertTrue(x == 1048576L, "%s != 1048576L" % repr(x))
        self.assertTrue(isinstance(x, long))

        if 1L<<64 == 18446744073709551616L:
            x = 1<<64
            self.assertTrue(x == 18446744073709551616L, "No automatic int to long conversion on <<")
{'fraction_non_alphanumeric': 0.138268156424581, 'fraction_numerical': 0.14385474860335196, 'mean_word_length': 2.363849765258216, 'pattern_counts': {'":': 0, '<': 21, '<?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': '4304830', 'n_tokens_mistral': 643, 'n_tokens_neox': 502, 'n_words': 108}