<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    Add comment here
    ~~~~~~~~~~~~~~~~

    Add descripton here


    :copyright: (c) 2014 <NAME>, All rights reserved.
    :license: BSD, see LICENSE for more details.
"""
import os
import sys
import code
import argparse
import logging
sys.path.append(os.path.abspath(os.path.pardir))

from doco import DocoInterface
from doco.client import Client


def write(msg):
    msg = '\033[37m{0}\033[0m'.format(msg)
    sys.stdout.write(msg)
    sys.stdout.write('\n')


class Console(code.InteractiveConsole):
    def __init__(self, local=None, filename='<console>'):
        code.InteractiveConsole.__init__(self, local, filename)
        self.client = None

    def push(self, line):
        res = self.client.send(utt=line, apiname='Dialogue')
        write(res['utt'])<commit_msg>Fix header comment.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    doco.examples.dialogue_cli
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    Example of clie application.


    :copyright: (c) 2014 <NAME>, All rights reserved.
    :license: BSD, see LICENSE for more details.
"""
import os
import sys
import code
import argparse
import logging
sys.path.append(os.path.abspath(os.path.pardir))

from doco import DocoInterface
from doco.client import Client


def write(msg):
    msg = '\033[37m{0}\033[0m'.format(msg)
    sys.stdout.write(msg)
    sys.stdout.write('\n')


class Console(code.InteractiveConsole):
    def __init__(self, local=None, filename='<console>'):
        code.InteractiveConsole.__init__(self, local, filename)
        self.client = None

    def push(self, line):
        res = self.client.send(utt=line, apiname='Dialogue')
        write(res['utt'])
{'fraction_non_alphanumeric': 0.15962984384037016, 'fraction_numerical': 0.01735106998264893, 'mean_word_length': 3.5526315789473686, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4298759', 'n_tokens_mistral': 581, 'n_tokens_neox': 544, 'n_words': 134}