<commit_before># Remove all the .pyc and .pyo files under ../Lib.
import sys


def deltree(root):
    import os
    from os.path import join

    npyc = npyo = 0
    for root, dirs, files in os.walk(root):
        for name in files:
            delete = False
            if name.endswith('.pyc'):
                delete = True
                npyc += 1
            elif name.endswith('.pyo'):
                delete = True
                npyo += 1

            if delete:
                os.remove(join(root, name))

    return npyc, npyo

path = "../Lib"
if len(sys.argv) > 1:
    path = sys.argv[1]

npyc, npyo = deltree(path)
print npyc, ".pyc deleted,", npyo, ".pyo deleted"<commit_msg>Use new print function (part of patch 1031)<commit_after># Remove all the .pyc and .pyo files under ../Lib.
import sys


def deltree(root):
    import os
    from os.path import join

    npyc = npyo = 0
    for root, dirs, files in os.walk(root):
        for name in files:
            delete = False
            if name.endswith('.pyc'):
                delete = True
                npyc += 1
            elif name.endswith('.pyo'):
                delete = True
                npyo += 1

            if delete:
                os.remove(join(root, name))

    return npyc, npyo

path = "../Lib"
if len(sys.argv) > 1:
    path = sys.argv[1]

npyc, npyo = deltree(path)
print(npyc, ".pyc deleted,", npyo, ".pyo deleted")
{'fraction_non_alphanumeric': 0.11731448763250883, 'fraction_numerical': 0.009893992932862191, 'mean_word_length': 1.6077348066298343, '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': '4579045', 'n_tokens_mistral': 493, 'n_tokens_neox': 456, 'n_words': 147}