<jupyter_start><jupyter_text>The Turn<jupyter_code>turn= ["2d"]
board = flop + turn
villan_hand = None

odds = holdem_calc.calculate_odds_villan(board, exact_calculation, 
                            num_sims, read_from_file , 
                            hero_hand, villan_hand, 
                            verbose, print_elapsed_time = True)
hero_odds.append(odds[0]['win'])

print(odds[0])
items = [holdem_calc.calculate_odds_villan(board, exact_calculation, 
                            num_sims, read_from_file , 
                            hero_hand, villan_hand, 
                            verbose, print_elapsed_time = False) for villan_hand in villan_range.combos]

odds = {}
[odds.update({odd_type: np.mean([res[0][odd_type] for res in items if res])}) for odd_type in ["tie", "win", "lose"]]
hero_range_odds.append(odds['win'])
odds<jupyter_output><empty_output><jupyter_text>The River<jupyter_code>river = ["Kc"]
board = flop + turn + river 
verbose = True
villan_hand = None

odds = holdem_calc.calculate_odds_villan(board, exact_calculation, 
                            num_sims, read_from_file , 
                            hero_hand, villan_hand, 
                            verbose, print_elapsed_time = True)
hero_odds.append(odds[0]['win'])
print(odds[0])
items = [holdem_calc.calculate_odds_villan(board, exact_calculation, 
                            num_sims, read_from_file , 
                            hero_hand, villan_hand, 
                            verbose, print_elapsed_time = False) for villan_hand in villan_range.combos]

odds = {}
[odds.update({odd_type: np.mean([res[0][odd_type] for res in items if res])}) for odd_type in ["tie", "win", "lose"]]
hero_range_odds.append(odds['win'])
print(odds)
for hand_ranking in holdem_functions.hand_rankings:
    print(hand_ranking +": " + str(np.mean([res[1][1][hand_ranking] for res in items if res])))<jupyter_output>{'tie': 0.12, 'win': 0.72, 'lose': 0.16}
High Card: 0.0
Pair: 0.5066666666666667
Two Pair: 0.08
Three of a Kind: 0.13333333333333333
Straight: 0.28
Flush: 0.0
Full House: 0.0
Four of a Kind: 0.0
Straight Flush: 0.0
Royal Flush: 0.0<jupyter_text>Conclusion<jupyter_code>print(hero_odds)
print(hero_range_odds)<jupyter_output>[0.9677206851119895, 0.8696969696969697]
[0.8030711151923272, 0.72]
{'fraction_non_alphanumeric': 0.11667392250761863, 'fraction_numerical': 0.0544188071397475, 'mean_word_length': 2.9965217391304346, 'pattern_counts': {'":': 1, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '301049', 'license': 'MIT', 'n_tokens_mistral': 937, 'n_tokens_neox': 802, 'n_words': 156, 'path': 'champion.ipynb', 'repo_name': 'freeopen/dz_poker', 'size': '2297'}