<commit_before>#!/usr/bin/env python


import os
import shutil
import sys


if not os.environ.get("TEST_NOTEBOOKS"):
    sys.exit(0)

for each in list(sys.argv[1:]) + [
    "reg.h5",
    "reg_sub.h5",
    "reg_f_f0.h5",
    "reg_wt.h5",
    "reg_norm.h5",
    "reg_dict.h5",
    "reg_post.h5",
    "reg_traces.h5",
    "reg_rois.h5",
    "reg_proj.h5",
    "reg_proj.html"]:
    if os.path.isfile(each):
        os.remove(each)
    elif os.path.isdir(each):
        shutil.rmtree(each)<commit_msg>Remove test Zarr files after completion.<commit_after>#!/usr/bin/env python


import os
import shutil
import sys


if not os.environ.get("TEST_NOTEBOOKS"):
    sys.exit(0)

for each in list(sys.argv[1:]) + [
    "reg.h5",
    "reg_sub.h5",
    "reg_f_f0.h5",
    "reg_wt.h5",
    "reg_norm.h5",
    "reg_dict.h5",
    "reg_post.h5",
    "reg_traces.h5",
    "reg_rois.h5",
    "reg_proj.h5",
    "reg.zarr",
    "reg_sub.zarr",
    "reg_f_f0.zarr",
    "reg_wt.zarr",
    "reg_norm.zarr",
    "reg_dict.zarr",
    "reg_post.zarr",
    "reg_traces.zarr",
    "reg_rois.zarr",
    "reg_proj.zarr",
    "reg_proj.html"]:
    if os.path.isfile(each):
        os.remove(each)
    elif os.path.isdir(each):
        shutil.rmtree(each)
{'fraction_non_alphanumeric': 0.17551020408163265, 'fraction_numerical': 0.022040816326530613, 'mean_word_length': 2.6379821958456975, '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': '7203166', 'n_tokens_mistral': 569, 'n_tokens_neox': 558, 'n_words': 80}