<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 = 1L<<64
        self.assertTrue(x == 18446744073709551616L, "%s != 18446744073709551616L" % repr(x))
        self.assertTrue(isinstance(x, long))<commit_msg>#302 - 1 << 64 is still a long<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):

        # int shifted up ends up as a long
        x = 1<<64
        self.assertTrue(x == 18446744073709551616L, "#302 - %s != 18446744073709551616L" % repr(x))
        self.assertTrue(isinstance(x, long))

        # long shifted up is still a long
        x = 1L<<64
        self.assertTrue(x == 18446744073709551616L, "%s != 18446744073709551616L" % repr(x))
        self.assertTrue(isinstance(x, long))
{'fraction_non_alphanumeric': 0.11888111888111888, 'fraction_numerical': 0.14385614385614387, 'mean_word_length': 2.3966101694915256, 'pattern_counts': {'":': 0, '<': 11, '<?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': '4011682', 'n_tokens_mistral': 444, 'n_tokens_neox': 345, 'n_words': 84}