<commit_before>import configargparse


DEFAULT_CONFIG_FILES=[
    './track.cfg',
    '~/.track.cfg',
]


# Bit of a cheat... not actually an object constructor, just a 'make me an object' method
def ArgParser():
    return configargparse.ArgParser(
        ignore_unknown_config_file_keys =True,
        allow_abbrev                    =True,
        default_config_files            =DEFAULT_CONFIG_FILES,
        formatter_class                 =configargparse.ArgumentDefaultsHelpFormatter,
        config_file_parser_class        =configargparse.DefaultConfigFileParser, # INI format
        args_for_setting_config_path    =['-c', '--cfg'],
        args_for_writing_out_config_file=['-w', '--cfg-write'],
        )<commit_msg>Use argparse formatter RawDescriptionHelpFormatter, maybe temporarily<commit_after>import configargparse


DEFAULT_CONFIG_FILES=[
    './track.cfg',
    '~/.track.cfg',
]


# Bit of a cheat... not actually an object constructor, just a 'make me an object' method
def ArgParser():
    return configargparse.ArgParser(
        ignore_unknown_config_file_keys =True,
        allow_abbrev                    =True,
        default_config_files            =DEFAULT_CONFIG_FILES,
#        formatter_class                 =configargparse.ArgumentDefaultsHelpFormatter,
        formatter_class                 =configargparse.RawDescriptionHelpFormatter,
        config_file_parser_class        =configargparse.DefaultConfigFileParser, # INI format
        args_for_setting_config_path    =['-c', '--cfg'],
        args_for_writing_out_config_file=['-w', '--cfg-write'],
        )
{'fraction_non_alphanumeric': 0.09051186017478152, 'fraction_numerical': 0.0, 'mean_word_length': 2.7020785219399537, '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': '2797754', 'n_tokens_mistral': 454, 'n_tokens_neox': 435, 'n_words': 91}