<commit_before># Django settings for hb project.
import os
import dj_database_url

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    ('<NAME>', '<EMAIL>'),
)

MANAGERS = ADMINS

# OpenShift uses OPENSHIFT_DB_URL
if os.environ.has_key('OPENSHIFT_DB_URL'):
    db_url = os.environ['OPENSHIFT_DB_URL']
    # dj_database_url recognises the string 'postgres'
    # but OpenShift uses 'postgresql'
    split_url = db_url.split(':')
    if split_url[0] == 'postgresql':
      db_url = ':'.join('postgres', split_url[1])
    os.environ['DATABASE_URL'] = db_url
    ## After https://github.com/kennethreitz/dj-database-url/pull/9 is merged
    ## Use this instead
#env = os.environ.has_key('OPENSHIFT_DB_URL') ? 'OPENSHIFT_DB_URL' : 'DATABASE_URL'
#DATABASES = { 'default': dj_database_url.config(env=env, default="sqlite3://db.sqlite3") }
#del env

DATABASES = {
    'default': dj_database_url.config(default="sqlite3://db.sqlite3"),
}

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'Europe/London'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-gb'<commit_msg>str.join() takes one array as an argument<commit_after># Django settings for hb project.
import os
import dj_database_url

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    ('<NAME>', '<EMAIL>'),
)

MANAGERS = ADMINS

# OpenShift uses OPENSHIFT_DB_URL
if os.environ.has_key('OPENSHIFT_DB_URL'):
    db_url = os.environ['OPENSHIFT_DB_URL']
    # dj_database_url recognises the string 'postgres'
    # but OpenShift uses 'postgresql'
    split_url = db_url.split(':')
    if split_url[0] == 'postgresql':
      db_url = ':'.join(['postgres', split_url[1]])
    os.environ['DATABASE_URL'] = db_url
    ## After https://github.com/kennethreitz/dj-database-url/pull/9 is merged
    ## Use this instead
#env = os.environ.has_key('OPENSHIFT_DB_URL') ? 'OPENSHIFT_DB_URL' : 'DATABASE_URL'
#DATABASES = { 'default': dj_database_url.config(env=env, default="sqlite3://db.sqlite3") }
#del env

DATABASES = {
    'default': dj_database_url.config(default="sqlite3://db.sqlite3"),
}

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# On Unix systems, a value of None will cause Django to use the same
# timezone as the operating system.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'Europe/London'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-gb'
{'fraction_non_alphanumeric': 0.11969993476842791, 'fraction_numerical': 0.005870841487279843, 'mean_word_length': 4.476785714285715, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '3165100', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1058, 'n_words': 287}