<commit_before><commit_msg>config class, to store keys and other global objects<commit_after>__author__ = 'nicole'

import json
import os.path

#read configuration file
conf = None

#load the configuration file, if it exists.
#it isn't required, but may be for some sources
if (os.path.exists("conf.json")):
    with open("conf.json") as json_file:
        conf = json.load(json_file)
        print("Finished loading config:",conf)

def get_config():
    return conf
{'fraction_non_alphanumeric': 0.10300429184549356, 'fraction_numerical': 0.0, 'mean_word_length': 4.306818181818182, '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': '4453693', 'n_tokens_mistral': 140, 'n_tokens_neox': 138, 'n_words': 50}