<commit_before>#!/usr/bin/python3

import sys

import info
import util
import skeleton_creator
import run_plugins

def main(argv):
    # Handle the command line arguments
    # We're all set. Time to configure them settings
    args = {
        "project_name": "",
        "config_file": "",
        "verbose": False,
    }
    if "-h" in argv or "--help" in argv or not argv:
        info.help() # I need somebody
    elif argv[0] == "-V" or argv[0] == "--version":
        info.info()
    else:
        # Check for mistakes in the arguments first
        if not util.arguments_valid(argv):
            sys.exit(2)

        if (argv.count("-c") > 1 or
            argv.count("-s") > 1 or
            argv.count("-v") > 1 or
            argv.count("--verbose") or
            util.fragment_count_in_list(argv, "--config=") > 1 or
            util.fragment_count_in_list(argv, "--scripts=") > 1 or
            not util.project_name_specified(argv)):
            info.help() # Not just anybody
            sys.exit(2)

        if not util.locate_project_name(argv):
            info.help() # You know I need somebody, help
            sys.exit(2)

        if not util.locate_config_file_in_args(argv):
            info.help() # !
            sys.exit(2)

        # Finished validating the passed arguments
        args["project_name"] = util.locate_project_name(argv)
        args["config_file"] = util.locate_config_file_in_args(argv)
        args["verbose"] = util.check_verbose(argv)

        # Time to create the directories
        if not skeleton_creator.create_skeleton(args):
            sys.exit(1)

        # Now, run the plugin (a.k.a plugins)
        run_plugins.run_plugins(args["verbose"])

    sys.exit(0)

if __name__ == "__main__":
    main(sys.argv[1:])
<commit_msg>You know what. The previous commit was wrong. The check shouldn't have been added.<commit_after>#!/usr/bin/python3

import sys

import info
import util
import skeleton_creator
import run_plugins

def main(argv):
    # Handle the command line arguments
    # We're all set. Time to configure them settings
    args = {
        "project_name": "",
        "config_file": "",
        "verbose": False,
    }
    if "-h" in argv or "--help" in argv or not argv:
        info.help() # I need somebody
    elif argv[0] == "-V" or argv[0] == "--version":
        info.info()
    else:
        # Check for mistakes in the arguments first
        if not util.arguments_valid(argv):
            sys.exit(2)

        if (argv.count("-c") > 1 or
            argv.count("-s") > 1 or
            argv.count("-v") > 1 or
            argv.count("--verbose") or
            util.fragment_count_in_list(argv, "--config=") > 1 or
            util.fragment_count_in_list(argv, "--scripts=") > 1 or
            not util.project_name_specified(argv)):
            info.help() # Not just anybody
            sys.exit(2)

        if not util.locate_project_name(argv):
            info.help() # You know I need somebody, help
            sys.exit(2)

        # Finished validating the passed arguments
        args["project_name"] = util.locate_project_name(argv)
        args["config_file"] = util.locate_config_file_in_args(argv)
        args["verbose"] = util.check_verbose(argv)

        # Time to create the directories
        if not skeleton_creator.create_skeleton(args):
            sys.exit(1)

        # Now, run the plugin (a.k.a plugins)
        run_plugins.run_plugins(args["verbose"])

    sys.exit(0)

if __name__ == "__main__":
    main(sys.argv[1:])

{'fraction_non_alphanumeric': 0.12195121951219512, 'fraction_numerical': 0.008224617129892229, 'mean_word_length': 2.14349376114082, 'pattern_counts': {'":': 10, '<': 3, '<?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': '1732117', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1063, 'n_words': 288}