<commit_before>import sys
import argparse
from .__init__ import __version__
from . make_bash import add_make_bash
from . check_recipe import add_check_recipe
from . list_files import add_list_files
from . search import add_search
from . show_env import add_show_env

def main(args=None):
    if args is None:
        args = sys.argv[1:]

    parser = argparse.ArgumentParser(prog='ggd', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument("-v", "--version", help="Installed version",
                        action="version",
                        version="%(prog)s " + str(__version__))
    sub = parser.add_subparsers(title='[sub-commands]', dest='command')
    sub.required = True
    add_make_bash(sub)

    add_check_recipe(sub)

    add_list_files(sub)

    add_search(sub)
    
    add_show_env(sub)

    args = parser.parse_args(args)
    args.func(parser, args)








if __name__ == "__main__":
    sys.exit(main() or 0)
<commit_msg>Add installer and uninstaller to main<commit_after>import sys
import argparse
from .__init__ import __version__
from . make_bash import add_make_bash
from . check_recipe import add_check_recipe
from . list_files import add_list_files
from . search import add_search
from . show_env import add_show_env
from . install import add_install
from . uninstall import add_uninstall

def main(args=None):
    if args is None:
        args = sys.argv[1:]

    parser = argparse.ArgumentParser(prog='ggd', formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument("-v", "--version", help="Installed version",
                        action="version",
                        version="%(prog)s " + str(__version__))
    sub = parser.add_subparsers(title='[sub-commands]', dest='command')
    sub.required = True
    add_make_bash(sub)

    add_check_recipe(sub)

    add_list_files(sub)

    add_search(sub)
    
    add_show_env(sub)

    add_install(sub)

    add_uninstall(sub)

    args = parser.parse_args(args)
    args.func(parser, args)








if __name__ == "__main__":
    sys.exit(main() or 0)

{'fraction_non_alphanumeric': 0.10047846889952153, 'fraction_numerical': 0.0019138755980861245, 'mean_word_length': 3.35625, 'pattern_counts': {'":': 2, '<': 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': '5474182', 'n_tokens_mistral': 698, 'n_tokens_neox': 652, 'n_words': 147}