<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2014 <NAME> (http://gehrcke.de).
# See LICENSE file for details.


"""beautiful-readme.
"""


from __future__ import unicode_literals


import os
import re
import sys
import shutil
import urllib
import logging
import argparse
from collections import OrderedDict
from subprocess import Popen, PIPE


try:
    import HTMLParser as htmlparser
except ImportError:
    import html.parser as htmlparser


log = logging.getLogger()
log.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
formatter = logging.Formatter(
    '%(asctime)s,%(msecs)-6.1f - %(levelname)s: %(message)s',
    datefmt='%H:%M:%S')
ch.setFormatter(formatter)
log.addHandler(ch)


try:
    import jinja2
except ImportError:
    err("Missing dependency: cannot import jinja2.")


__version__ = '0.1.0'


# To be populated by argparse from cmdline arguments.
cmdlineopts = None


# To be popluated when executing config file.
config = {}


def main():
    global markdown
    global docutils<commit_msg>Fix version detection in setup.py.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2014 <NAME> (http://gehrcke.de).
# See LICENSE file for details.


"""beautiful-readme.
"""


from __future__ import unicode_literals


import os
import re
import sys
import shutil
import urllib
import logging
import argparse
from collections import OrderedDict
from subprocess import Popen, PIPE


try:
    import HTMLParser as htmlparser
except ImportError:
    import html.parser as htmlparser


log = logging.getLogger()
log.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
formatter = logging.Formatter(
    '%(asctime)s,%(msecs)-6.1f - %(levelname)s: %(message)s',
    datefmt='%H:%M:%S')
ch.setFormatter(formatter)
log.addHandler(ch)


try:
    import jinja2
except ImportError:
    err("Missing dependency: cannot import jinja2.")


__version__ = "0.1.0"


# To be populated by argparse from cmdline arguments.
cmdlineopts = None


# To be popluated when executing config file.
config = {}


def main():
    global markdown
    global docutils
{'fraction_non_alphanumeric': 0.11042360780580676, 'fraction_numerical': 0.01142313184198001, 'mean_word_length': 4.190123456790124, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1988916', 'n_tokens_mistral': 713, 'n_tokens_neox': 664, 'n_words': 207}