<jupyter_start><jupyter_text>Remove existing figure file.<jupyter_code>from pathlib import Path
desktop = Path(r"C:\Users\tfiers\Desktop");
fname_suffix = " spy.png"
for f in desktop.glob(f"*{fname_suffix}"):
    f.unlink()
if buy_longg[-1]:
    fname_prefix = "💰💰BUY"
elif buy_short[-1]:
    fname_prefix = "💰buy"
else:
    fname_prefix = "don't buy"
fig.savefig(desktop / (fname_prefix + fname_suffix), );<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15560640732265446, 'fraction_numerical': 0.004576659038901602, 'mean_word_length': 5.537313432835821, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '668374', 'license': 'MIT', 'n_tokens_mistral': 180, 'n_tokens_neox': 177, 'n_words': 32, 'path': 'when_to_buy_sp500.ipynb', 'repo_name': 'tfiers/when-to-buy-spy', 'size': '437'}