<commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-

""" Setup a qnib/terminal container

Usage:
    qnib-setup.py [options]
    qnib-setup.py (-h | --help)
    qnib-setup.py --version

Options:
    -h --help               Show this screen.
    --version               Show version.
    --loglevel, -L=<str>    Loglevel
                            (ERROR, CRITICAL, WARN, INFO, DEBUG)
    --log2stdout, -l        Log to stdout, otherwise to logfile.
    --logfile, -f=<path>    Logfile to log to (default: <scriptname>.log)
    --cfg, -c=<path>        Configuration file. [default: /etc/qnib-setup.cfg]

"""
from qnibsetup import QnibConfig, QnibSetup

try:
    from docopt import docopt
except ImportError:
    HAVE_DOCOPT = False
else:
    HAVE_DOCOPT = True

__author__    = '<NAME> <<EMAIL>>'
__copyright__ = 'Copyright 2014 <NAME>'
__license__   = """MIT License (http://opensource.org/licenses/MIT)"""


def main():
    """ main function """
    options = None
    if HAVE_DOCOPT:
        options = docopt(__doc__,  version='Test Script 0.1')
    qcfg = QnibConfig(options)
    print qcfg<commit_msg>remove debug-print<commit_after>#! /usr/bin/env python
# -*- coding: utf-8 -*-

""" Setup a qnib/terminal container

Usage:
    qnib-setup.py [options]
    qnib-setup.py (-h | --help)
    qnib-setup.py --version

Options:
    -h --help               Show this screen.
    --version               Show version.
    --loglevel, -L=<str>    Loglevel
                            (ERROR, CRITICAL, WARN, INFO, DEBUG)
    --log2stdout, -l        Log to stdout, otherwise to logfile.
    --logfile, -f=<path>    Logfile to log to (default: <scriptname>.log)
    --cfg, -c=<path>        Configuration file. [default: /etc/qnib-setup.cfg]

"""
from qnibsetup import QnibConfig, QnibSetup

try:
    from docopt import docopt
except ImportError:
    HAVE_DOCOPT = False
else:
    HAVE_DOCOPT = True

__author__    = '<NAME> <<EMAIL>>'
__copyright__ = 'Copyright 2014 <NAME>'
__license__   = """MIT License (http://opensource.org/licenses/MIT)"""


def main():
    """ main function """
    options = None
    if HAVE_DOCOPT:
        options = docopt(__doc__,  version='Test Script 0.1')
    qcfg = QnibConfig(options)
{'fraction_non_alphanumeric': 0.13816381638163816, 'fraction_numerical': 0.0072007200720072, 'mean_word_length': 2.342857142857143, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4122998', 'n_tokens_mistral': 765, 'n_tokens_neox': 734, 'n_words': 200}