<commit_before>
# coding: utf-8

# In[ ]:

import sys
import os
import chess
from time import sleep, time
from random import random, choice

# # Bots

# In[ ]:

import random_bot
import final_bot
import basic_bot


# ### Parameters

# In[ ]:

turn_color = {
	True:'WHITE',
	False:'BLACK',
	None: None
}


# ### Utility functions

# In[ ]:

def update_count(board, me):
	fmap = {
	    ( 'WIN', 'WHITE'):  'W_win',
	    ('DRAW', 'WHITE'): 'W_draw',
	    ('LOSE', 'WHITE'): 'W_lose',
	    ( 'WIN', 'BLACK'):  'B_win',
	    ('DRAW', 'BLACK'): 'B_draw',
	    ('LOSE', 'BLACK'): 'B_lose'}

	result = None
	if board.is_checkmate():
		if board.turn == not me:
			result = 'WIN'
		else:
			result = 'LOSE'
	else:<commit_msg>add counters<commit_after>
# coding: utf-8

# In[ ]:

import sys
import os
import chess
from time import sleep, time
from random import random, choice

# # Bots

# In[ ]:

import random_bot
import final_bot
import basic_bot


# ### Parameters

# In[ ]:

turn_color = {
	True:'WHITE',
	False:'BLACK',
	None: None
}


# ### Utility functions

# In[ ]:

def update_count(board, me):
	fmap = {
	    ( 'WIN', 'WHITE'):  'W_win',
	    ('DRAW', 'WHITE'): 'W_draw',
	    ('LOSE', 'WHITE'): 'W_lose',
	    ( 'WIN', 'BLACK'):  'B_win',
	    ('DRAW', 'BLACK'): 'B_draw',
	    ('LOSE', 'BLACK'): 'B_lose'}

	result = None
	if board.is_checkmate():
		if not board.turn == me:
			result = 'WIN'
		else:
			result = 'LOSE'
	else:
{'fraction_non_alphanumeric': 0.18894331700489853, 'fraction_numerical': 0.0013995801259622112, 'mean_word_length': 3.3072289156626504, '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': '5949983', 'n_tokens_mistral': 611, 'n_tokens_neox': 579, 'n_words': 148}