<jupyter_start><jupyter_text>Translate to JSON<jupyter_code>import json

json.dumps(np.array(liste).tolist())<jupyter_output><empty_output><jupyter_text>Make loop for all images<jupyter_code>number = "zeros"
v_or_h = "hidden"

list_one_nr = []
for index in range(8):
    url = "resized_damaged_"+number+"_"+v_or_h+"_"+str(index)+".jpg"
    im = plt.imread(url)
    im_new = (im/20>1)*1
    im_flat = im_new.reshape(100,) 
    list_one_nr.append(im_flat)
json.dumps(np.array(list_one_nr).tolist())<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1596958174904943, 'fraction_numerical': 0.015209125475285171, 'mean_word_length': 6.63768115942029, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '432813', 'license': 'MIT', 'n_tokens_mistral': 233, 'n_tokens_neox': 228, 'n_words': 27, 'path': 'scripts_and_figs/figures/images_for_equilibration/zero/Untitled.ipynb', 'repo_name': 'Atcold/physicsofEBM.github.io', 'size': '526'}