<commit_before>// Part 1
document.body.innerText.split`\n`.map(l=>(n=l.split`\t`,Math.max(...n)-Math.min(...n))).reduce((s,x)=>s+x)

// Part 2
document.body.innerText.split`\n`.map(l=>l.split`\t`.map((x,_,n)=>n.find(y=>y>+x&y%x==0)/x).find(x=>!isNaN(x))||0).reduce((s,x)=>s+x)
<commit_msg>Make shorter<commit_after>// Part 1
document.body.innerText.split`\n`.map(l=>(n=l.split`\t`,Math.max(...n)-Math.min(...n))).reduce((s,x)=>s+x)

// Part 2
document.body.innerText.split`\n`.map(l=>l.split`\t`.map((x,_,n)=>n.find(y=>y>+x&y%x<1)/x).find(x=>!isNaN(x))||0).reduce((s,x)=>s+x)

{'fraction_non_alphanumeric': 0.3559027777777778, 'fraction_numerical': 0.013888888888888888, 'mean_word_length': 5.709302325581396, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 19, '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': '4248300', 'n_tokens_mistral': 296, 'n_tokens_neox': 289, 'n_words': 15}