<commit_before>import cards
import hands
import logging

def basic_game():
    theDeck = cards.Deck()
    theDeck.shuffle()
    small = cards.Hand()
    big = cards.Hand()
    river = cards.Hand()

# Preflop
    big.add_card(theDeck.deal_card())
    big.add_card(theDeck.deal_card())
    small.add_card(theDeck.deal_card())
    small.add_card(theDeck.deal_card())

# River
    for i in range(5):
        river.add_card(theDeck.deal_card())
        logging.info(str([small.list_rep(), big.list_rep(), river.list_rep()]))
        logging.info(str(hands.compare_hands(small, big, river)))
    return hands.compare_hands(small, big, river)

if __name__ == '__main__':
    logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s')
    print basic_game()<commit_msg>Interoperate cards and hands. Evaluation of two hands working.<commit_after>import cards
import hands
import logging

def basic_game():
    theDeck = cards.Deck()
    theDeck.shuffle()
    small = cards.Hand()
    big = cards.Hand()
    river = cards.Hand()

# Preflop
    big.add_card(theDeck.deal_card())
    big.add_card(theDeck.deal_card())
    small.add_card(theDeck.deal_card())
    small.add_card(theDeck.deal_card())

# Flop
    for i in range(3):
        river.add_card(theDeck.deal_card())
    logging.info(str(['flop', small.list_rep(), big.list_rep(), river.list_rep()]))

# Turn
    river.add_card(theDeck.deal_card())
    logging.info(str(['turn', small.list_rep(), big.list_rep(), river.list_rep()]))

# River
    river.add_card(theDeck.deal_card())
    logging.info(str(['river', small.list_rep(), big.list_rep(), river.list_rep()]))
    return hands.compare_hands(small, big, river)

if __name__ == '__main__':
    logging.basicConfig(level=logging.INFO, format='%(asctime)s %(message)s')
    print basic_game()
{'fraction_non_alphanumeric': 0.1557649667405765, 'fraction_numerical': 0.0011086474501108647, 'mean_word_length': 4.1424501424501425, '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': '838146', 'n_tokens_mistral': 663, 'n_tokens_neox': 639, 'n_words': 109}