<commit_before>import hashlib


def md5_for_file(path_to_file: str) -> str:
    with open(path_to_file, mode='rb') as f:
        d = hashlib.md5()
        for buf in f.read(4096):
            d.update(buf)
    return d.hexdigest()<commit_msg>remove 'mode' argument name for open command<commit_after>import hashlib


def md5_for_file(path_to_file: str) -> str:
    with open(path_to_file, 'rb') as f:
        d = hashlib.md5()
        for buf in f.read(4096):
            d.update(buf)
    return d.hexdigest()
{'fraction_non_alphanumeric': 0.11960784313725491, 'fraction_numerical': 0.023529411764705882, 'mean_word_length': 2.785185185185185, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7068002', 'n_tokens_mistral': 192, 'n_tokens_neox': 183, 'n_words': 45}