<commit_before>from settings import *
ADMIN_UNREGISTER = True
IBM_TABLES_MANAGED = True
USE_NEW_START_POLL = False
INTERNAL_IPS = ('127.0.0.1')



#INSTALLED_APPS +=  ("django_nose",)

print "APPS : " + str(INSTALLED_APPS)

#south stuff
SOUTH_TESTS_MIGRATE = False

GEOSERVER_URL = ""

#Use the real dbs, don't create them
#os.environ['REUSE_DB'] = "1"

DATABASES = {
    'default': {
        'ENGINE' : 'django.db.backends.postgresql_psycopg2',
        'NAME': 'ureport',
        'HOST': 'localhost',
        'USER': 'postgres',
        'ROUTER_URL' : "http://192.168.127.12:13013/cgi-bin/sendsms?from=8500&username=kannel&password=<PASSWORD>&text=%(text)s&to=%(recipient)s&smsc=SMPPSim"
    },
    'geoserver': {
    'ENGINE' : 'django.db.backends.postgresql_psycopg2',
    'NAME': 'geoserver',
    'HOST': 'localhost',
    'USER': 'postgres',
    'ROUTER_URL':'http://192.168.127.12:13013/cgi-bin/sendsms?from=8500&username=kannel&password=<PASSWORD>&text=%(text)s&to=%(recipient)s&smsc=SMPPSim'
   }
}

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
        }
}

INSTALLED_BACKENDS = {
    "message_tester": {
        "ENGINE": "rapidsms.backends.bucket",
    },
}

STATIC_URL="/static/media/"

COMPUTE_COVERAGE="ureport"


LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'simple': {
            'format': '%(asctime)-15s %(levelname)-8s [%(module)-20s] %(message)s'
        },
    },
    'handlers': {
        'command': {
            'class': 'logging.FileHandler',
            'filename': '/var/log/ureport/command.log',
            'formatter' : 'simple'
        },
        'console':{
            'class':'logging.StreamHandler',
            'formatter': 'simple'
        },
        'application_log_file': {
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': '/var/log/ureport/ureport_application.log',
            'formatter': 'simple',
            'backupCount': 50,
            'maxBytes': 2 ** 20,
        },
        'application_access_file': {
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': '/var/log/ureport/ureport_access.log',
            'formatter': 'simple',
            'backupCount': 50,
            'maxBytes': 2 ** 20,
        },
    },
    'loggers': {

        'django' : {
            'handlers': ['application_log_file'],
            'level': 'DEBUG',
            'propagate': True,
        
        },

        'django.middleware': {
            'handlers': ['application_log_file'],
            'level': 'DEBUG',
            'propagate': True,
            },
    
        'django.db.backends': {
            'handlers': ['application_log_file'],
            'level': 'DEBUG',
            'propagate': True,
            },

        'django.request': {
            'handlers': ['application_log_file'],
            'level': 'DEBUG',
            'propagate': True,
            },

    
        'ureport.tasks': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        'ureport.views.poll_views': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        'ureport.middleware.access_log': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },

        'poll.models': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        'rapidsms_httprouter.models': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },


        'unregister': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        # 'command': {
        #     'level': 'DEBUG',
        #     'handlers': ['command']
        # },
        'command' : {
            'handlers': ['command'],
            'level' : 'DEBUG',
            'propogate' : True
        }
     }
}
<commit_msg>[jmdb, nim] Updating the logging settings and adding default language options<commit_after>from settings import *
ADMIN_UNREGISTER = True
IBM_TABLES_MANAGED = True
USE_NEW_START_POLL = False
INTERNAL_IPS = ('127.0.0.1')

# These MUST be set or the message will not be classified!
NO_WORDS = {'en':['no', 'nope', 'nah', 'nay', 'n'],
            'ach':['ku', 'k','pe'],
            'kdj':["emam",'ema'],
}
OPT_IN_WORDS_KDJ=["togeu","togu",'tog']
OPT_OUT_WORDS = ['stop', 'unjoin', 'quit','giki','unsub','unsubscribe','stop ureport','unregister','deactivate']

#INSTALLED_APPS +=  ("django_nose",)

print "APPS : " + str(INSTALLED_APPS)

#south stuff
SOUTH_TESTS_MIGRATE = False

GEOSERVER_URL = ""

#Use the real dbs, don't create them
#os.environ['REUSE_DB'] = "1"

DATABASES = {
    'default': {
        'ENGINE' : 'django.db.backends.postgresql_psycopg2',
        'NAME': 'ureport',
        'HOST': 'localhost',
        'USER': 'postgres',
        'ROUTER_URL' : "http://95.138.170.64:13013/cgi-bin/sendsms?from=8500&username=kannel&password=<PASSWORD>&text=%(text)s&to=%(recipient)s&smsc=SMPPSim"
    },
    'geoserver': {
    'ENGINE' : 'django.db.backends.postgresql_psycopg2',
    'NAME': 'geoserver',
    'HOST': 'localhost',
    'USER': 'postgres',
    'ROUTER_URL':'http://192.168.127.12:13013/cgi-bin/sendsms?from=8500&username=kannel&password=<PASSWORD>&text=%(text)s&to=%(recipient)s&smsc=SMPPSim'
   }
}

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
        }
}

INSTALLED_BACKENDS = {
    "message_tester": {
        "ENGINE": "rapidsms.backends.bucket",
    },
}

STATIC_URL="/static/media/"

COMPUTE_COVERAGE="ureport"


LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'simple': {
            'format': '%(asctime)-15s %(levelname)-8s [%(module)-20s] %(message)s'
        },
    },
    'handlers': {
        'command': {
            'class': 'logging.FileHandler',
            'filename': '/var/log/ureport/command.log',
            'formatter' : 'simple'
        },
        'console':{
            'class':'logging.StreamHandler',
            'formatter': 'simple'
        },
        'application_log_file': {
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': '/var/log/ureport/ureport_application.log',
            'formatter': 'simple',
            'backupCount': 50,
            'maxBytes': 2 ** 20,
        },
        'application_access_log_file': {
            'class': 'logging.handlers.RotatingFileHandler',
            'filename': '/var/log/ureport/ureport_access.log',
            'formatter': 'simple',
            'backupCount': 50,
            'maxBytes': 2 ** 20,
        },
    },
    'loggers': {

        'django' : {
            'handlers': ['application_log_file'],
            'level': 'ERROR',
            'propagate': True,
        
        },

        'app/ureport' : {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
        
        },

        'django.middleware': {
            'handlers': ['application_log_file'],
            'level': 'ERROR',
            'propagate': True,
            },
    
        'django.db.backends': {
            'handlers': ['application_log_file'],
            'level': 'ERROR',
            'propagate': True,
            },

        'django.request': {
            'handlers': ['application_log_file'],
            'level': 'ERROR',
            'propagate': True,
            },
        'ureport.app': {
            'handlers': ['application_log_file'],
            'level': 'DEBUG',
            'propagate': True,
            },

    
        'ureport.tasks': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        'ureport.views.poll_views': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        'ureport.middleware.access_log': {
            'handlers': ['application_access_log_file'],
            'level': 'INFO',
            'propagate': True,
            },


        'poll.app': {
            'handlers': ['application_log_file'],
            'level': 'DEBUG',
            'propagate': True,
            },

        'poll.models': {
            'handlers': ['application_log_file'],
            'level': 'DEBUG',
            'propagate': True,
            },
        'rapidsms_httprouter.models': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        'rapidsms_httprouter.views': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        'rapidsms_httprouter.router': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },


        'unregister': {
            'handlers': ['application_log_file'],
            'level': 'INFO',
            'propagate': True,
            },
        # 'command': {
        #     'level': 'DEBUG',
        #     'handlers': ['command']
        # },
        'command' : {
            'handlers': ['command'],
            'level' : 'DEBUG',
            'propogate' : True
        }
     }
}

{'fraction_non_alphanumeric': 0.17140494158999275, 'fraction_numerical': 0.015610462111030704, 'mean_word_length': 1.8972746331236898, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '3927456', 'n_tokens_mistral': 3257, 'n_tokens_neox': 3099, 'n_words': 461}