<commit_before># -*- coding: utf-8 -*-
import os

'''
    Used for finding environment variables through configuration
    if a default is not given, the site will raise an exception
'''
def get_env_variable(var_name, default=-1):
    try:
        return os.environ[var_name]
    except KeyError:
        if default != -1:
            return default
        error_msg = "Set the %s os.environment variable" % var_name
        raise Exception(error_msg)

''' Default debugging to False '''
DEBUG = not get_env_variable("DATAUSA_PRODUCTION", False)<commit_msg>trimmed config.py<commit_after># -*- coding: utf-8 -*-
import os

''' Default debugging to False '''
DEBUG = not os.environ.get("DATAUSA_PRODUCTION", True)
{'fraction_non_alphanumeric': 0.11360448807854137, 'fraction_numerical': 0.005610098176718092, 'mean_word_length': 3.4074074074074074, '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': '1390365', 'n_tokens_mistral': 206, 'n_tokens_neox': 202, 'n_words': 67}