<commit_before>import os
import subprocess

here = os.path.abspath(os.path.dirname(__file__))


# Workaround for https://github.com/git-for-windows/git/issues/607
if os.name == 'nt':
    for (root, dnames, files) in os.walk(here):
        if 'node_modules' in dnames:
            subprocess.check_call(['rmdir', '/s', '/q', 'node_modules'],
                                  cwd=root, shell=True)
            dnames.remove('node_modules')


subprocess.check_call(['git', 'clean', '-dfx'], cwd=here)

subprocess.call('python -m pip uninstall -y jupyterlab'.split(), cwd=here)<commit_msg>Add exclude list for clean:slate script<commit_after>import os
import subprocess

here = os.path.abspath(os.path.dirname(__file__))


# Workaround for https://github.com/git-for-windows/git/issues/607
if os.name == 'nt':
    for (root, dnames, files) in os.walk(here):
        if 'node_modules' in dnames:
            subprocess.check_call(['rmdir', '/s', '/q', 'node_modules'],
                                  cwd=root, shell=True)
            dnames.remove('node_modules')


git_clean_exclude = [
    '-e',
    '/.vscode',
]
git_clean_command = ['git', 'clean', '-dfx'] + git_clean_exclude
subprocess.check_call(git_clean_command, cwd=here)

subprocess.call('python -m pip uninstall -y jupyterlab'.split(), cwd=here)
{'fraction_non_alphanumeric': 0.15696784073506892, 'fraction_numerical': 0.004594180704441042, 'mean_word_length': 3.162420382165605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4449376', 'n_tokens_mistral': 452, 'n_tokens_neox': 438, 'n_words': 90}