<commit_before>from ott.utils.compat_2_to_3 import *
from ott.utils import json_utils



from .globals import *

from . import *
import datetime
import logging
log = logging.getLogger(__file__)


def dao_response(dao):
    """ using a BaseDao object, send the data to a pyramid Reponse """
    if dao is None:
        dao = DATA_NOT_FOUND_MSG
    return json_response(json_data=dao.to_json(), status=dao.status_code)


def json_response_list(lst, mime='application/json', status=200):<commit_msg>fix(cleanup): cleanup file<commit_after>import datetime
from ott.utils.compat_2_to_3 import *
from ott.utils import json_utils

from .globals import *
from . import *

import logging
log = logging.getLogger(__file__)


def dao_response(dao):
    """ using a BaseDao object, send the data to a pyramid Reponse """
    if dao is None:
        dao = DATA_NOT_FOUND_MSG
    return json_response(json_data=dao.to_json(), status=dao.status_code)


def json_response_list(lst, mime='application/json', status=200):
{'fraction_non_alphanumeric': 0.09471585244267199, 'fraction_numerical': 0.009970089730807577, 'mean_word_length': 4.672316384180791, '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': '7235228', 'n_tokens_mistral': 336, 'n_tokens_neox': 331, 'n_words': 89}