<commit_before>"""Handles cli arguments"""
import logging
import sys

def init(args, options):
    """Create the initial site"""

    logging.error('Not implemented')
    sys.exit(1)

def compile(args, options):
    """Compile the site"""

    logging.error('Not implemented')
    sys.exit(1)

def serve(args, options):
    """Serve the site"""

    logging.error('Not implemented')
    sys.exit(1)
<commit_msg>Validated the initial dir doesn't exist<commit_after>"""Handles cli arguments"""
import logging
import sys
import os

def init(args, options):
    """Create the initial site"""

    if len(args) != 2:
        logging.error('init takes a single argument: dir name')
        options.print_help()
        sys.exit(1)

    root_dir = args[1]

    if os.path.exists(root_dir):
        logging.error('{0} already exists, aborting'.format(root_dir))
        sys.exit(1)

    logging.error('Not implemented')
    sys.exit(1)

def compile(args, options):
    """Compile the site"""

    logging.error('Not implemented')
    sys.exit(1)

def serve(args, options):
    """Serve the site"""

    logging.error('Not implemented')
    sys.exit(1)

{'fraction_non_alphanumeric': 0.1451048951048951, 'fraction_numerical': 0.009615384615384616, 'mean_word_length': 3.4038461538461537, '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': '3182556', 'n_tokens_mistral': 363, 'n_tokens_neox': 349, 'n_words': 98}