<commit_before>#!/usr/bin/env python
import unittest
import os
import sys
import time
import signal
import atexit

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

pid = os.spawnlp(os.P_NOWAIT, "gunicorn", *("gunicorn --pythonpath tests -w 4 --log-level warning -b 0:8800 server:app".split()))
time.sleep(1)

@atexit.register
def clean_gunicorn():
    print 'clean gunicorn'
    print os.kill(pid, signal.SIGTERM)

tests = [i[:-3] for i in os.listdir(here)
        if i.startswith('test_') and i.endswith('.py')]
suite = unittest.defaultTestLoader.loadTestsFromNames(tests)
additional_tests = lambda: suite

if __name__ == '__main__':
    result = unittest.TextTestRunner(verbosity=2).run(suite)
    sys.exit(1 if result.errors or result.failures else 0)<commit_msg>Remove prints<commit_after>#!/usr/bin/env python
import unittest
import os
import sys
import time
import signal
import atexit

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

pid = os.spawnlp(os.P_NOWAIT, "gunicorn", *("gunicorn --pythonpath tests -w 4 --log-level warning -b 0:8800 server:app".split()))
time.sleep(1)

@atexit.register
def clean_gunicorn():
    os.kill(pid, signal.SIGTERM)

tests = [i[:-3] for i in os.listdir(here)
        if i.startswith('test_') and i.endswith('.py')]
suite = unittest.defaultTestLoader.loadTestsFromNames(tests)
additional_tests = lambda: suite

if __name__ == '__main__':
    result = unittest.TextTestRunner(verbosity=2).run(suite)
    sys.exit(1 if result.errors or result.failures else 0)
{'fraction_non_alphanumeric': 0.1383322559793148, 'fraction_numerical': 0.014221073044602456, 'mean_word_length': 4.776119402985074, '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': '6840051', 'n_tokens_mistral': 570, 'n_tokens_neox': 545, 'n_words': 130}