<commit_before>import configparser
import os
from collections import OrderedDict


class Config(object):

    def __init__(self, location=None):
        if location is None:
            location = "../../engine.conf"
        config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)

        print("Loading config from " + config_location)
        self.parser = configparser.ConfigParser()
        self.parser.read(config_location)

        self.checks_location = self.parser['GENERAL']['checks_location']
        self.check_timeout = int(self.parser['GENERAL']['check_timeout'])
        self.checks_class_list = self.parser['GENERAL']['checks'].split(',')

        self.db_uri = self.parser['DB']['uri']

        self.redis_host = self.parser['REDIS']['host']
        self.redis_port = int(self.parser['REDIS']['port'])
        self.redis_password = self.parser['REDIS']['password']
        self.redis_namespace = self.parser['REDIS']['namespace']

        self.sponsorship_images = OrderedDict()
        for sponsorship_level in self.parser['sponsorships']['levels'].split(','):
            self.sponsorship_images[sponsorship_level] = []
            for company in self.parser['sponsorships'][sponsorship_level].split(','):
                self.sponsorship_images[sponsorship_level].append("/static/" + str(company))


config = Config()<commit_msg>Remove print statement from config<commit_after>import configparser
import os
from collections import OrderedDict


class Config(object):

    def __init__(self, location=None):
        if location is None:
            location = "../../engine.conf"
        config_location = os.path.join(os.path.dirname(os.path.abspath(__file__)), location)

        self.parser = configparser.ConfigParser()
        self.parser.read(config_location)

        self.checks_location = self.parser['GENERAL']['checks_location']
        self.check_timeout = int(self.parser['GENERAL']['check_timeout'])
        self.checks_class_list = self.parser['GENERAL']['checks'].split(',')

        self.db_uri = self.parser['DB']['uri']

        self.redis_host = self.parser['REDIS']['host']
        self.redis_port = int(self.parser['REDIS']['port'])
        self.redis_password = self.parser['REDIS']['password']
        self.redis_namespace = self.parser['REDIS']['namespace']

        self.sponsorship_images = OrderedDict()
        for sponsorship_level in self.parser['sponsorships']['levels'].split(','):
            self.sponsorship_images[sponsorship_level] = []
            for company in self.parser['sponsorships'][sponsorship_level].split(','):
                self.sponsorship_images[sponsorship_level].append("/static/" + str(company))


config = Config()
{'fraction_non_alphanumeric': 0.14810731348768835, 'fraction_numerical': 0.0, 'mean_word_length': 3.4991735537190083, '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': '5426648', 'n_tokens_mistral': 794, 'n_tokens_neox': 751, 'n_words': 119}