<commit_before># Django settings for alfanousDjango project.


########################################
#     Dynamic or Private settings      #
########################################
from ConfigParser import RawConfigParser


# set the path of your private config file here.
# the file have to be a system-config like, ini-style file, see settings.ini.proto for a prototype
configFile = "./settings.ini.proto" # e,g. '/etc/whatever/settings.ini'

if configFile == "./settings.ini.proto":
    print "WARNING: You need to specify a reliable path to the config file, see settings.py"


config = RawConfigParser()
config.read(configFile)

# fetching critical info from the config file
DATABASE_USER = config.get('database', 'DATABASE_USER')
DATABASE_PASSWORD = config.get('database', 'DATABASE_PASSWORD')
DATABASE_HOST = config.get('database', 'DATABASE_HOST')
DATABASE_PORT = config.get('database', 'DATABASE_PORT')
DATABASE_ENGINE = config.get('database', 'DATABASE_ENGINE')
DATABASE_NAME = config.get('database', 'DATABASE_NAME')

MY_DEBUG = config.get( 'debug', 'DEBUG' ) in ["true", "True"]
MY_TEMPLATE_DEBUG = config.get( 'debug', 'TEMPLATE_DEBUG' ) in ["true", "True"]

MY_SECRET_KEY =  config.get('secrets', 'SECRET_KEY')

MY_MEDIA_URL = config.get('paths', 'MEDIA_URL')
MY_MEDIA_ROOT = config.get( 'paths', 'MEDIA_ROOT' )
MY_STATIC_URL = config.get( 'paths', 'STATIC_URL' )
MY_STATIC_ROOT = config.get('paths', 'STATIC_ROOT')
MY_TEMPLATE_DIR1 = config.get( 'paths', 'TEMPLATE_DIR1' )
MY_STATIC_DIR1 = config.get( 'paths', 'STATIC_DIR1' )
<commit_msg>add the notice that the config file should be an absolute path<commit_after># Django settings for alfanousDjango project.


########################################
#     Dynamic or Private settings      #
########################################
from ConfigParser import RawConfigParser


# set the path of your private config file here.
# the file have to be a system-config like, ini-style file, see settings.ini.proto for a prototype
configFile = "./settings.ini.proto" # e,g. '/etc/whatever/settings.ini'

if configFile[:2] == "./":
    print "WARNING: You need to specify a reliable absolute path to the config file, see settings.py"


config = RawConfigParser()
config.read(configFile)

# fetching critical info from the config file
DATABASE_USER = config.get('database', 'DATABASE_USER')
DATABASE_PASSWORD = config.get('database', 'DATABASE_PASSWORD')
DATABASE_HOST = config.get('database', 'DATABASE_HOST')
DATABASE_PORT = config.get('database', 'DATABASE_PORT')
DATABASE_ENGINE = config.get('database', 'DATABASE_ENGINE')
DATABASE_NAME = config.get('database', 'DATABASE_NAME')

MY_DEBUG = config.get( 'debug', 'DEBUG' ) in ["true", "True"]
MY_TEMPLATE_DEBUG = config.get( 'debug', 'TEMPLATE_DEBUG' ) in ["true", "True"]

MY_SECRET_KEY =  config.get('secrets', 'SECRET_KEY')

MY_MEDIA_URL = config.get('paths', 'MEDIA_URL')
MY_MEDIA_ROOT = config.get( 'paths', 'MEDIA_ROOT' )
MY_STATIC_URL = config.get( 'paths', 'STATIC_URL' )
MY_STATIC_ROOT = config.get('paths', 'STATIC_ROOT')
MY_TEMPLATE_DIR1 = config.get( 'paths', 'TEMPLATE_DIR1' )
MY_STATIC_DIR1 = config.get( 'paths', 'STATIC_DIR1' )

{'fraction_non_alphanumeric': 0.1787974683544304, 'fraction_numerical': 0.002848101265822785, 'mean_word_length': 6.008869179600887, 'pattern_counts': {'":': 2, '<': 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': '4915723', 'n_tokens_mistral': 1057, 'n_tokens_neox': 1020, 'n_words': 265}