<commit_before>import os.path

_RUN_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))

_CFG = {
    'LOG_LEVEL': 'OFF',
    'LOG_FTIME': '%d/%b/%Y %H:%M:%S',
    'TEMPLATES_THEME': 'devel',
    'JSON_PRETTY_PRINT': True,
    'RUN_DIR': _RUN_DIR,
}


class TSAdmCfg:
    def get(self, name, default=None):
        return _CFG.get(name, default)


if __name__ == '__main__':
    import json
    print(json.dumps(_CFG, sort_keys=True, indent=4))
<commit_msg>TSAdmCfg dumps method<commit_after>import json
import os.path

_RUN_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))

_CFG = {
    'LOG_LEVEL': 'OFF',
    'LOG_FTIME': '%d/%b/%Y %H:%M:%S',
    'TEMPLATES_THEME': 'devel',
    'JSON_PRETTY_PRINT': True,
    'RUN_DIR': _RUN_DIR,
}


class TSAdmCfg:
    def get(self, name, default=None):
        return _CFG.get(name, default)

    def dumps(self):
        return json.dumps(_CFG, sort_keys=True, indent=4)


if __name__ == '__main__':
    cfg = TSAdmCfg()
    print(cfg.dumps())

{'fraction_non_alphanumeric': 0.17250922509225092, 'fraction_numerical': 0.0018450184501845018, 'mean_word_length': 3.8873873873873874, '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': '5898922', 'n_tokens_mistral': 449, 'n_tokens_neox': 436, 'n_words': 74}