<commit_before># -*- coding: utf-8 -*-
"""
cdk - course development toolkit. Convert asciidoc input to deck.js
slidedecks with many code/development oriented features.

Current features list includes:

 * single file output thanks to data:uri

Usage:
  cdk FILE

Arguments:
  FILE     asciidoc source file
Options:
  -h --help     Show this screen.

"""

import subprocess
from os.path import dirname, join, abspath

from docopt import docopt
from schema import Schema, And, Or, Use, SchemaError

"""
CDK_DIR=$( cd "$( dirname "$0" )" && pwd )
eval ${CDK_DIR}/external/asciidoc/asciidoc.py -f ${CDK_DIR}/external/asciidoc/asciidoc.conf ${attrs[@]} $@
"""

data_dir = join(abspath(dirname(__file__)),  "data")
asciidoc_dir = join(data_dir, "asciidoc-8.6.8")

def main():
    """Entry point for stitching together our custom asciidoc conf, deckjs
    conf and plugins.

    """
    
    # Setup asciidoc command we want to run
    cmd = ("%s/asciidoc.py -b deckjs -a deckjs_theme=twitter -a data-uri "
           "-a iconsdir='%s/images/icons' -a iconss") % (asciidoc_dir, data_dir)
    cmd = cmd.split()
    
    
    # Try parsing command line args and flags with docopt
    arguments = docopt(__doc__, version="cdk 0.1")

    # Check for valid args and flags<commit_msg>Our extensions will live in custom<commit_after># -*- coding: utf-8 -*-
"""
cdk - course development toolkit. Convert asciidoc input to deck.js
slidedecks with many code/development oriented features.

Current features list includes:

 * single file output thanks to data:uri

Usage:
  cdk FILE

Arguments:
  FILE     asciidoc source file
Options:
  -h --help     Show this screen.

"""

import subprocess
from os.path import dirname, join, abspath

from docopt import docopt
from schema import Schema, And, Or, Use, SchemaError

"""
CDK_DIR=$( cd "$( dirname "$0" )" && pwd )
eval ${CDK_DIR}/external/asciidoc/asciidoc.py -f ${CDK_DIR}/external/asciidoc/asciidoc.conf ${attrs[@]} $@
"""


def main():
    """Entry point for stitching together our custom asciidoc conf, deckjs
    conf and plugins.

    """
    data_dir = join(abspath(dirname(__file__)),  "data")
    custom_dir = join(abspath(dirname(__file__)),  "custom")
    asciidoc_dir = join(data_dir, "asciidoc-8.6.8")
    
    
    # Setup asciidoc command we want to run
    cmd = ("%(asciidoc_dir)s/asciidoc.py -b deckjs "
           "-a deckjs_theme=twitter -a data-uri "
           "-f %(custom_dir)s/asciidoc.conf "
           "-a iconsdir='%(data_dir)s/images/icons' -a icons") % locals()
    cmd = cmd.split()
    
    
    # Try parsing command line args and flags with docopt
    arguments = docopt(__doc__, version="cdk 0.1")

    # Check for valid args and flags
{'fraction_non_alphanumeric': 0.1231508875739645, 'fraction_numerical': 0.005177514792899409, 'mean_word_length': 3.2800632911392404, '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': '1421448', 'n_tokens_mistral': 920, 'n_tokens_neox': 907, 'n_words': 278}