<commit_before>import subprocess
import timeit

def run_diff_once():
    f1 = 'example-notebooks/diff/0/before.ipynb'
    f2 = 'example-notebooks/diff/0/after.ipynb'

    subprocess.call(['nbdiff', '--check', f1, f2])


if __name__ == '__main__':
    t = timeit.Timer('run_diff_once()', setup='from __main__ import *')
    print t.repeat(repeat=100, number=1)

<commit_msg>fix warning in perf test<commit_after>import subprocess
import timeit

def run_diff_once():
    f1 = 'example-notebooks/diff/0/before.ipynb'
    f2 = 'example-notebooks/diff/0/after.ipynb'

    subprocess.call(['nbdiff', '--check', f1, f2])


if __name__ == '__main__':
    t = timeit.Timer('run_diff_once()', setup='from __main__ import run_diff_once')
    print t.repeat(repeat=40, number=1)


{'fraction_non_alphanumeric': 0.15494791666666666, 'fraction_numerical': 0.024739583333333332, 'mean_word_length': 4.303448275862069, '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': '4690519', 'n_tokens_mistral': 302, 'n_tokens_neox': 291, 'n_words': 55}