<commit_before>
filename = '13_numbers_to_sum.txt'

total = sum([int(s.strip()) for s in open(filename).readlines()])

print(str(total)[:10])<commit_msg>Added timing<commit_after>#!/usr/bin/env python

import time

'''
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers. (Numbers in text file)
'''

startTime = time.time()

filename = '13_numbers_to_sum.txt'

total = sum([int(s.strip()) for s in open(filename).readlines()])

print(str(total)[:10])

print(time.time() - startTime)
{'fraction_non_alphanumeric': 0.16247582205029013, 'fraction_numerical': 0.019342359767891684, 'mean_word_length': 5.641025641025641, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '147186', 'n_tokens_mistral': 193, 'n_tokens_neox': 179, 'n_words': 46}