<commit_before>#!/usr/bin/env python2

import argparse
import os

from labelprinter import Labelprinter

if os.path.isfile('labelprinterServeConf_local.py'):
    import labelprinterServeConf_local as conf
else:
    import labelprinterServeConf as conf

def text(args, labelprinter):
    bold = 'on' if args.bold else 'off'
    labelprinter.printText(args.text,
                charSize=args.char_size,
                font=args.font,
                align=args.align,
                bold=bold,
                charStyle=args.char_style,
                cut=args.cut
                )

parser = argparse.ArgumentParser(description="A command line interface to Labello.")
subparsers = parser.add_subparsers(help="commands")<commit_msg>Make the CLI use the new config (see e4054fb).<commit_after>#!/usr/bin/env python2

import argparse
import os

from labelprinter import Labelprinter
import labelprinterServeConf as conf

def text(args, labelprinter):
    bold = 'on' if args.bold else 'off'
    labelprinter.printText(args.text,
                charSize=args.char_size,
                font=args.font,
                align=args.align,
                bold=bold,
                charStyle=args.char_style,
                cut=args.cut
                )

parser = argparse.ArgumentParser(description="A command line interface to Labello.")
subparsers = parser.add_subparsers(help="commands")
{'fraction_non_alphanumeric': 0.08633093525179857, 'fraction_numerical': 0.004316546762589928, 'mean_word_length': 2.575835475578406, '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': '1139398', 'n_tokens_mistral': 421, 'n_tokens_neox': 401, 'n_words': 92}