<commit_before>#!/usr/bin/env python
"""Example usage of colorclass.

Just prints sample text and exits.

Usage:
    example.py print [--light-bg]
    example.py print -h | --help

Options:
    -h --help       Show this screen.
    --light-bg      Autocolors adapt to white/light backgrounds.
"""

from __future__ import print_function
from colorclass import Color, set_light_background
from docopt import docopt

OPTIONS = docopt(__doc__) if __name__ == '__main__' else dict()


def main():
    if OPTIONS.get('--light-bg'):
        set_light_background()

    print('Autocolors for all backgrounds:')<commit_msg>Example changes for windows.<commit_after>#!/usr/bin/env python
"""Example usage of colorclass.

Just prints sample text and exits.

Windows support effortlessly provided with the help of colorama:
    https://github.com/tartley/colorama
Though only dark colors seem to work.

Usage:
    example.py print [--light-bg]
    example.py print -h | --help
    example.py print_windows --light-bg

Options:
    -h --help       Show this screen.
    --light-bg      Autocolors adapt to white/light backgrounds.
"""

from __future__ import print_function
from colorclass import Color, set_light_background
from docopt import docopt

OPTIONS = docopt(__doc__) if __name__ == '__main__' else dict()


def main():
    if OPTIONS.get('print_windows'):
        import colorama
        colorama.init()

    if OPTIONS.get('--light-bg'):
        set_light_background()

    print('Autocolors for all backgrounds:')
{'fraction_non_alphanumeric': 0.10310641110376735, 'fraction_numerical': 0.0, 'mean_word_length': 3.2768361581920904, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6554577', 'n_tokens_mistral': 462, 'n_tokens_neox': 444, 'n_words': 149}