<commit_before>import os
import re
import sys
import logging
import configparser


def main():
    try:
        root = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
        # currently config.ini is in example folder
        config_path = os.path.join(root, 'examples/config.ini')
        # TODO: There is a better way to log this message than print.
        print "Reading secrets from %r" % secret_path

    parser = configparser.ConfigParser()
        parser.read(config_path)
        get_config = dict(parser.items("default"))
    except Exception as e:
        # TODO: There is a better way to log this message than print.
        print 'Failed to load config.ini.  Reason: %r' % str(e)

if __name__ == '__main__':
    main()
<commit_msg>indent correct<commit_after>import os
import re
import sys
import logging
import configparser


def main():
    try:
        root = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
        # currently config.ini is in example folder
        config_path = os.path.join(root, 'examples/config.ini')
        # TODO: There is a better way to log this message than print.
        print "Reading secrets from %r" % secret_path

        parser = configparser.ConfigParser()
        parser.read(config_path)
        get_config = dict(parser.items("default"))
    except Exception as e:
        # TODO: There is a better way to log this message than print.
        print 'Failed to load config.ini.  Reason: %r' % str(e)

if __name__ == '__main__':
    main()

{'fraction_non_alphanumeric': 0.0973044049967127, 'fraction_numerical': 0.0, 'mean_word_length': 2.8241206030150754, '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': '2065898', 'n_tokens_mistral': 448, 'n_tokens_neox': 437, 'n_words': 151}