<commit_before>#!/usr/bin/python
#-- Content-Encoding: utf-8 --
'''
Created on 3 oct. 2011

@author: <NAME>
'''

import BaseHTTPServer
import itertools
import logging
import mimetypes
import os
import random
import socket
import sys
import urlparse

import traceback

import erp
import xml_item_parser

# ------------------------------------------------------------------------------

# Load the ERP
ERP_INSTANCE = erp.Erp()
ERP_INSTANCE.load_content(os.getcwd() + os.sep + "data")

def format_text(text, params=dict()):
    """<commit_msg>Suppression d'un import socket inutile<commit_after>#!/usr/bin/python
#-- Content-Encoding: utf-8 --
'''
Created on 3 oct. 2011

@author: <NAME>
'''

import BaseHTTPServer
import itertools
import logging
import mimetypes
import os
import random
import sys
import urlparse

import traceback

import erp
import xml_item_parser

# ------------------------------------------------------------------------------

# Load the ERP
ERP_INSTANCE = erp.Erp()
ERP_INSTANCE.load_content(os.getcwd() + os.sep + "data")

def format_text(text, params=dict()):
    """
{'fraction_non_alphanumeric': 0.24289642529789185, 'fraction_numerical': 0.010999083409715857, 'mean_word_length': 2.4231974921630095, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3003359', 'n_tokens_mistral': 339, 'n_tokens_neox': 334, 'n_words': 92}