<commit_before><commit_msg>Quickly working on word analytics<commit_after>from string import lower
import sys

letters = "abcdefghijklmnopqrstuvwxyz"
digits  = "0123456789"

text = sys.stdin.read()
words = text.split()

num_letters = 0
for word in words:
  word = lower(word)
  print ">>" + word + "<<"
  num_letters += 1

print len(words), "words"
print letters, "letters"
{'fraction_non_alphanumeric': 0.12332439678284182, 'fraction_numerical': 0.032171581769437, 'mean_word_length': 5.131147540983607, '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}}
{'dir': 'git-commits-cleaned', 'id': '4880096', 'n_tokens_mistral': 146, 'n_tokens_neox': 130, 'n_words': 36}