<commit_before>import time
from snakeChan import SnakeChan

serveur = SnakeChan(3100)
while 1:
	data = serveur.receive(0)
	if data != None:
		print data<commit_msg>Adapt it for SnakeChan script test<commit_after>import time
from snakeChan import SnakeChan
from snakePost import SnakePost

serveur = SnakePost(SnakeChan('127.0.0.1', 3100))
while 1:
	data = serveur.listen()
	if data[0] == "ping":
		serveur.sendSecure("ok", data[1])
{'fraction_non_alphanumeric': 0.11136890951276102, 'fraction_numerical': 0.04408352668213457, 'mean_word_length': 5.6461538461538465, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7168441', 'n_tokens_mistral': 173, 'n_tokens_neox': 153, 'n_words': 43}