<jupyter_start><jupyter_text>Elo<jupyter_code>b = hs[hs.Event == 'Rated Blitz game']

w_elo = b[b.White == 'alexdinu'][['Date', 'WhiteElo']]
b_elo = b[b.Black == 'alexdinu'][['Date', 'BlackElo']]

plt.figure(figsize=(16,5))
plt.plot(b_elo.BlackElo[::-1].to_numpy(), linestyle='--', color='k')
plt.plot(w_elo.WhiteElo[::-1].to_numpy(), linestyle='--', color='c')
plt.xticks(np.arange(0, max(len(w_elo), len(b_elo)), 5))
plt.ylim([900, 1100])
pass<jupyter_output><empty_output><jupyter_text>Wins<jupyter_code>w_w = round(hs[(hs.White == 'alexdinu') & (hs.Result == '1-0')].shape[0] / w_elo.shape[0], 12)
b_w = round(hs[(hs.Black == 'alexdinu') & (hs.Result == '0-1')].shape[0] / b_elo.shape[0], 12)

print(f'white: {w_w:.5f}\nblack: {b_w:.5f}')<jupyter_output>white: 0.65517
black: 0.55319<jupyter_text>Openings<jupyter_code>w_g = [g for g in games if g.headers['White'] == 'alexdinu']
b_g = [g for g in games if g.headers['Black'] == 'alexdinu']

w_f = [list(g.mainline_moves())[0].uci() for g in w_g]
b_f = [list(g.mainline_moves())[0].uci() for g in b_g]
plt.figure(figsize=(24,4))
plt.subplot(1,2,1)
stem_hist(w_f)
plt.subplot(1,2,2)
stem_hist(b_f)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.2423728813559322, 'fraction_numerical': 0.043220338983050846, 'mean_word_length': 6.821192052980132, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '640633', 'license': 'MIT', 'n_tokens_mistral': 611, 'n_tokens_neox': 565, 'n_words': 80, 'path': 'own.ipynb', 'repo_name': 'alexandru-dinu/chess', 'size': '1180'}