<commit_before>#!/usr/bin/env python
# -*- coding:utf-8 -*-

"""
The entry point of csft.
"""

import argparse as ap
from os.path import isdir

from .csft import print_result


def main(argv=None):
    parser = ap.ArgumentParser(add_help='add help')
    parser.add_argument('path', help='the directory to be analyzed')
    args = parser.parse_args(args=argv)<commit_msg>Add version option to CLI.<commit_after>#!/usr/bin/env python
# -*- coding:utf-8 -*-

"""
The entry point of csft.
"""

import argparse as ap
from os.path import isdir

from . import __name__ as _name
from . import __version__ as _version
from .csft import print_result


def main(argv=None):
    """ Execute the application CLI. """
    parser = ap.ArgumentParser(prog=_name)
    parser.add_argument('-V', '--version', action='version', version=_version)
    parser.add_argument('path', help='the directory to be analyzed')
    args = parser.parse_args(args=argv)
{'fraction_non_alphanumeric': 0.13597430406852248, 'fraction_numerical': 0.0021413276231263384, 'mean_word_length': 4.137362637362638, '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': '3256372', 'n_tokens_mistral': 302, 'n_tokens_neox': 295, 'n_words': 86}