<jupyter_start><jupyter_text>create an example.story<jupyter_code>for dic in reader:
    if("subreddit" in dic.keys() and dic["subreddit"] == "AskReddit" and isEnglish(dic["summary"]) == True and  isEnglish(dic["content"]) == True ):
        print(dic)
        break
# cwd = os.getcwd()
filename = os.path.join(cwd, "example.story")
file1 = open(filename,"w")
file1.writelines(dic["content"]+'\n')
#file1.writelines('@hightlight \n')
#file1.writelines(input_dict['summary'])
file1.close()
dic["content"]
dic["summary"]<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1897810218978102, 'fraction_numerical': 0.009124087591240875, 'mean_word_length': 6.32, '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': '376637', 'license': 'Apache-2.0', 'n_tokens_mistral': 206, 'n_tokens_neox': 206, 'n_words': 34, 'path': 'preprocess_dataset.ipynb', 'repo_name': 'yiyang7/pointer-generator', 'size': '548'}