<commit_before>"""
Foliant: Markdown to PDF, Docx, and LaTeX generator powered by Pandoc.

Usage:
  foliant (build | make) <target> [--path=<project-path>]
  foliant (upload | up) <document>
  foliant (-h | --help)
  foliant --version

Options:
  -h --help                         Show this screen.
  -v --version                      Show version.
  -p --path=<project-path>          Path to your project [default: .].
"""

from docopt import docopt
import foliant.builder as builder
import foliant.uploader as uploader

def main():
    args = docopt(__doc__, version="Foliant 0.1.0")

    if args["build"] or args["make"]:
        output_file = builder.build(args["<target>"], args["--path"])
        print("Result: %s" % output_file)

    elif args["upload"] or args["up"]:<commit_msg>Version extracted from package.<commit_after>"""
Foliant: Markdown to PDF, Docx, and LaTeX generator powered by Pandoc.

Usage:
  foliant (build | make) <target> [--path=<project-path>]
  foliant (upload | up) <document>
  foliant (-h | --help)
  foliant --version

Options:
  -h --help                         Show this screen.
  -v --version                      Show version.
  -p --path=<project-path>          Path to your project [default: .].
"""

from docopt import docopt
import foliant.builder as builder
import foliant.uploader as uploader
import foliant

def main():
    args = docopt(__doc__, version=foliant.__version__)

    if args["build"] or args["make"]:
        output_file = builder.build(args["<target>"], args["--path"])
        print("Result: %s" % output_file)

    elif args["upload"] or args["up"]:
{'fraction_non_alphanumeric': 0.14383137011779293, 'fraction_numerical': 0.0018598884066955983, 'mean_word_length': 2.7103448275862068, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '601478', 'n_tokens_mistral': 507, 'n_tokens_neox': 493, 'n_words': 155}