<commit_before>import ConfigParser

Config = ConfigParser.ConfigParser()

Config.read("config/qlf.cfg")

sections = Config.sections()

dict = {}

for section in sections:
    options = Config.options(section)
    for option in options:
        try:
            dict[option] = Config.get(section, option)
            if dict[option] == -1:
                DebugPrint("skip: %s" % option)
        except:
            print("exception on %s!" % option)
            dict[option] = None

print dict<commit_msg>gets base directory from qlf.cfg<commit_after>import ConfigParser
import os

Config = ConfigParser.ConfigParser()

Config.read("config/qlf.cfg")

sections = Config.sections()

dic = {}

for section in sections:
    options = Config.options(section)
    for option in options:
        try:
            dic[option] = Config.get(section, option)
            if dic[option] == -1:
                DebugPrint("skip: %s" % option)
        except:
            print("exception on %s!" % option)
            dic[option] = None

print "Config file contents: ", dic

if "datadir" in Config.options("namespace"):
    path = Config.get("namespace","datadir")

fullpath = os.path.join(path,"config")

print "The full path to the config folder is: ", fullpath
{'fraction_non_alphanumeric': 0.1216, 'fraction_numerical': 0.0016, 'mean_word_length': 2.679411764705882, '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': '4248580', 'n_tokens_mistral': 365, 'n_tokens_neox': 364, 'n_words': 100}