<commit_before>import sys

from .wif import WIFReader
from .render import ImageRenderer


def main(args=sys.argv):
    filename = args[1]
    draft = WIFReader(filename).read()
    out_filename = filename.rsplit('.', 1)[0] + '.png'
    print "Saving to %s" % out_filename
    ImageRenderer(draft).save(out_filename)
<commit_msg>For now, just make the 'pyweaving' command only show a draft image<commit_after>import sys

from .wif import WIFReader
from .render import ImageRenderer


def main(args=sys.argv):
    filename = args[1]
    draft = WIFReader(filename).read()
    # out_filename = filename.rsplit('.', 1)[0] + '.png'
    # print "Saving to %s" % out_filename
    ImageRenderer(draft).show()

{'fraction_non_alphanumeric': 0.12696148359486448, 'fraction_numerical': 0.008559201141226819, 'mean_word_length': 4.086956521739131, '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': '7439356', 'n_tokens_mistral': 231, 'n_tokens_neox': 226, 'n_words': 63}