<commit_before>import os
import sys
import traceback
from optparse import OptionParser

from twyg import get_scale_factor, generate_output
from twyg.common import validate_margins


def exit_error(msg):
    print >>sys.stderr, sys.argv[0] + ': ' + msg
    sys.exit(1)


def main():
    usage = 'Usage: %prog [OPTIONS] DATAFILE OUTFILE'
    parser = OptionParser(usage=usage)
    parser.add_option('-c', '--config',
                      default='default',
                      dest='config', metavar='FILE',
                      help='configuration to use [default: %default]')

    parser.add_option('-o', '--colorscheme',
                      dest='colorscheme', metavar='NAME',
                      help='colorscheme to use')

    parser.add_option('-d', '--dpi',
                      default='72.0', type='float',
                      help=('output resolution (PNG) or shadow rasterisation '<commit_msg>Fix commandline help<commit_after>import os
import sys
import traceback
from optparse import OptionParser

from twyg import get_scale_factor, generate_output
from twyg.common import validate_margins


def exit_error(msg):
    print >>sys.stderr, sys.argv[0] + ': ' + msg
    sys.exit(1)


def main():
    usage = 'Usage: %prog [OPTIONS] DATAFILE OUTFILE'
    parser = OptionParser(usage=usage)
    parser.add_option('-c', '--config',
                      default='default',
                      dest='config', metavar='NAME',
                      help='configuration to use [default: %default]')

    parser.add_option('-o', '--colorscheme',
                      dest='colorscheme', metavar='NAME',
                      help='colorscheme to use')

    parser.add_option('-d', '--dpi',
                      default='72.0', type='float',
                      help=('output resolution (PNG) or shadow rasterisation '
{'fraction_non_alphanumeric': 0.1276595744680851, 'fraction_numerical': 0.005455537370430988, 'mean_word_length': 2.3164556962025316, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3898497', 'n_tokens_mistral': 539, 'n_tokens_neox': 510, 'n_words': 128}