<commit_before>"""
Functions for adding common CLI arguments to argparse sub-commands.
"""

def add_ackers(parser):
    """ Add --ackers option to parser """
    parser.add_argument('-a', '--ackers',
                        help='Set number of acker bolts. Takes precedence over '
                             '--par if both set.')


def add_debug(parser):
    """ Add --debug option to parser """
    parser.add_argument('-d', '--debug',
                        action='store_true',
                        help='Set topology.debug and produce debugging output.')


def add_environment(parser):
    """ Add --environment option to parser """
    parser.add_argument('-e', '--environment',
                        help='The environment to use for the command.  '
                             'Corresponds to an environment in your '
                             '"envs" dictionary in config.json.  If you '
                             'only have one environment specified, '
                             'streamparse will automatically use this.')


def add_name(parser):<commit_msg>Fix issue where submit --ackers arg was not being saved as int.<commit_after>"""
Functions for adding common CLI arguments to argparse sub-commands.
"""

def add_ackers(parser):
    """ Add --ackers option to parser """
    parser.add_argument('-a', '--ackers',
                        help='Set number of acker bolts. Takes precedence over '
                             '--par if both set.',
                        type=int)


def add_debug(parser):
    """ Add --debug option to parser """
    parser.add_argument('-d', '--debug',
                        action='store_true',
                        help='Set topology.debug and produce debugging output.')


def add_environment(parser):
    """ Add --environment option to parser """
    parser.add_argument('-e', '--environment',
                        help='The environment to use for the command.  '
                             'Corresponds to an environment in your '
                             '"envs" dictionary in config.json.  If you '
                             'only have one environment specified, '
                             'streamparse will automatically use this.')


def add_name(parser):
{'fraction_non_alphanumeric': 0.10790408525754884, 'fraction_numerical': 0.0, 'mean_word_length': 1.669431279620853, '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': '6480012', 'n_tokens_mistral': 556, 'n_tokens_neox': 530, 'n_words': 185}