<commit_before>DATABASES = {
    'default': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'NAME': 'angkot',
        'USER': 'angkot',
        'PASSWORD': '<PASSWORD>',
        'HOST': 'localhost',
        'PORT': '',
    }
}

# GOOGLE_ANALYTICS_IGNORE = False
# GOOGLE_ANALYTICS_ID = ''
# GOOGLE_ANALYTICS_HOST = ''
# MAPBOX_KEY = ''
# BING_MAPS_KEY = ''

# USERVOICE_CODE = '''
# <!-- UserVoice JavaScript SDK (only needed once on a page) -->
# <script>(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='//widget.uservoice.com/USER-VOICE-ID.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})()</script>
# 
# <!-- A tab to launch the Classic Widget -->
# <script>
# UserVoice = window.UserVoice || [];
# UserVoice.push(['showTab', 'classic_widget', {
#   mode: 'feedback',
#   primary_color: '#cc6d00',
#   link_color: '#007dbf',
#   forum_id: 217173,
#   tab_label: 'Feedback',
#   tab_color: '#cc6d00',
#   tab_position: 'middle-right',
#   tab_inverted: false
# }]);
# </script>
# '''

ACCOUNT_USERNAME_PREFIX = 'user'
ANGKOT_CONTRIBUTOR_TERMS_URL = ''
ANGKOT_PRIVACY_POLICY_URL = ''

# Authentication keys from providers

GOOGLE_OAUTH2_CLIENT_ID = ''
GOOGLE_OAUTH2_CLIENT_SECRET = ''

FACEBOOK_APP_ID = ''
FACEBOOK_API_SECRET = ''

TWITTER_CONSUMER_KEY = ''
TWITTER_CONSUMER_SECRET = ''
<commit_msg>Use closer-to-production-version localsettings.py for testing<commit_after># Sentry config. Uncomment them if you use Sentry
RAVEN_CONFIG = {
    'dsn': 'udp://u:p@localhost:9001/2',
}
INSTALLED_APPS = INSTALLED_APPS + (
    'raven.contrib.django.raven_compat',
)
LOGGING['root'] = {
    'level': 'DEBUG',
    'handlers': ['sentry'],
}
LOGGING['handlers']['sentry'] = {
    'level': 'DEBUG',
    'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler',
}
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

DATABASES = {
    'default': {
        'ENGINE': 'django.contrib.gis.db.backends.postgis',
        'NAME': 'test_angkot',
        'USER': 'angkot',
        'PASSWORD': '<PASSWORD>',
        'HOST': 'localhost',
        'PORT': '',
    }
}

GOOGLE_ANALYTICS_ID = 'UA-00000000-1'
GOOGLE_ANALYTICS_HOST = 'angkot.web.id'
GOOGLE_MAPS_KEY = 'google-maps-key'
MAPBOX_KEY = 'mapbox-key'
BING_MAPS_KEY = 'bingmaps-key'

USERVOICE_CODE = 'uservoice-code'

ALLOWED_HOSTS = ['angkot.web.id']

DEBUG = False
TEMPLATE_DEBUG = False

ACCOUNT_USERNAME_PREFIX = 'user'
ANGKOT_CONTRIBUTOR_TERMS_URL = 'https://github.com/fajran/angkot/wiki/Ketentuan-Kontribusi-(Rangkuman)'
ANGKOT_PRIVACY_POLICY_URL = 'https://github.com/fajran/angkot/wiki/Kebijakan-Privasi'

# Authentication keys from providers

GOOGLE_OAUTH2_CLIENT_ID = 'google-oauth2-client-id'
GOOGLE_OAUTH2_CLIENT_SECRET = 'google-oauth2-client-secret'

FACEBOOK_APP_ID = 'facebook-app-id'
FACEBOOK_API_SECRET = 'facebook-api-secret'

TWITTER_CONSUMER_KEY = 'twitter-consumer-key'
TWITTER_CONSUMER_SECRET = 'twitter-consumer-secret'

# Logging

LOGGING['handlers']['console'] = {
    'level': 'DEBUG',
    'formatter': 'basic',
    'class': 'logging.FileHandler',
    'filename': '/tmp/angkot-console.log',
}
LOGGING['handlers']['exception'] = {
    'level': 'ERROR',
    'formatter': 'exception',
    'filters': ['require_debug_false'],
    'class': 'logging.FileHandler',
    'filename': '/tmp/angkot-exception.log',
}

{'fraction_non_alphanumeric': 0.17215041128084607, 'fraction_numerical': 0.010575793184488837, 'mean_word_length': 4.563725490196078, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '737204', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1320, 'n_words': 181}