<commit_before>from ...boards import State
from .heuristics import score, SCORE_FOR_WIN
from copy import deepcopy


DEPTH_BALANCE = {(0, 5): 1,
                 (5, 10): 0,
                 (10, 20): -1,
                 (20, 30): -1,
                 (30, 40): -2,
                 (40, 50): -2,
                 (50, 60): -2,
                 (60, 70): -2,
                 (70, 82): -2}


def balance_depth(depth, number_of_moves):
    new_depth = depth
    for (low, high), balance in DEPTH_BALANCE.items():<commit_msg>Depth balance updated<commit_after>from ...boards import State
from .heuristics import score, SCORE_FOR_WIN
from copy import deepcopy


DEPTH_BALANCE = {(1, 2): 2,
                 (2, 4): 1,
                 (4, 5): 0,
                 (5, 10): 0,
                 (10, 20): -1,
                 (20, 30): -1,
                 (30, 40): -2,
                 (40, 50): -2,
                 (50, 60): -2,
                 (60, 70): -2,
                 (70, 82): -2}


def balance_depth(depth, number_of_moves):
    new_depth = depth
    for (low, high), balance in DEPTH_BALANCE.items():
{'fraction_non_alphanumeric': 0.14414414414414414, 'fraction_numerical': 0.08108108108108109, 'mean_word_length': 1.3688699360341152, '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': '1553703', 'n_tokens_mistral': 429, 'n_tokens_neox': 360, 'n_words': 111}