<commit_before>import random

class Blackjack:
    def __init__(self):
        self.cards = range(1, 53)
        self.shuffle()
        self.deal()

    def shuffle(self):
        random.shuffle(self.cards)

    def deal(self):
        self.player = (self.cards[0], self.cards[2])
        self.dealer = (self.cards[1], self.cards[3])


if __name__ == "__main__":
    """
    This is testing only, this module is intended
    to be imported.
    """
    bj = Blackjack()
    print bj.player
    print bj.dealer
<commit_msg>Modified dealing logic to actually remove cards from the deck. Easier to keep track of things that way.<commit_after>import random

class Blackjack:
    def __init__(self):
        self.cards = range(1, 53)
        self.shuffle()
        self.deal()

    def shuffle(self):
        random.shuffle(self.cards)

    def deal(self):
        self.player = [None, None]
        self.dealer = [None, None]

        for i in xrange(4):
            if i % 2:
                self.player[i/2] = self.cards.pop()
            else:
                self.dealer[i/2] = self.cards.pop()

if __name__ == "__main__":
    """
    This is testing only, this module is intended
    to be imported.
    """
    bj = Blackjack()
    print bj.player
    print bj.dealer

{'fraction_non_alphanumeric': 0.11811023622047244, 'fraction_numerical': 0.011023622047244094, 'mean_word_length': 2.0626506024096387, 'pattern_counts': {'":': 2, '<': 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': '1397274', 'n_tokens_mistral': 420, 'n_tokens_neox': 402, 'n_words': 113}