<commit_before># Extra setting
SITE_BRANDING = '<%= @site_branding %>'
<% if @manage_overrides -%>
HORIZON_CONFIG['customization_module'] = 'openstack_dashboard.overrides'
<% end -%>
<% if @change_uploaddir -%>
FILE_UPLOAD_TEMP_DIR = '<%= @custom_uploaddir %>'
<% end -%>
<% if @enable_pwd_retrieval -%>
OPENSTACK_ENABLE_PASSWORD_RETRIEVE = '<%= @enable_pwd_retrieval %>'
<% end -%>
<% if @session_cookie_httponly -%>
OPENSTACK_SESSION_COOKIE_HTTPONLY = '<%= @session_cookie_httponly %>'
<% end -%>
<% if @use_ssl -%>
OPENSTACK_USE_SSL = '<%= @use_ssl %>'
<% end -%>
<% if @access_control_allow_origin -%>
OPENSTACK_ACCESS_CONTROL_ALLOW_ORIGIN = '<%= @access_control_allow_origin %>'
<% end -%>
<% if @disallow_iframe_embed -%>
DISALLOW_IFRAME_EMBED = '<%= @disallow_iframe_embed -%>'
<% end -%>
<% if @csrf_cookie_secure -%>
CSRF_COOKIE_SECURE = '<%= @csrf_cookie_secure -%>'
<% end -%>
<% if @session_cookie_secure -%>
SESSION_COOKIE_SECURE = '<%= @session_cookie_secure -%>'
<% end -%>
<% if @password_autocomplete -%>
PASSWORD_AUTOCOMPLETE = '<%= @password_autocomplete -%>'
<% end -%>
<% if @disable_password_reveal -%>
DISABLE_PASSWORD_REVEAL = '<%= @disable_password_reveal -%>'
<% end -%>
<% if @enforce_password_check -%>
ENFORCE_PASSWORD_CHECK = '<%= @enforce_password_check -%>'
<% end -%>
<% if @secure_proxy_header -%>
SECURE_PROXY_SSL_HEADER = '<%= @secure_proxy_header -%>'
<% end -%>
<% if @database -%>
DATABASES = {
    'default': {
        # Database configuration here
        'ENGINE': '<% if @database['engine'] %><%=@database['engine']%><% else %>django.db.backends.mysql<% end %>',
        'NAME': '<% if @database['database'] %><%=@database['database']%><% else %>horizon<% end %>',
        'USER': '<% if @database['user'] %><%=@database['user']%><% else %>horizon<% end %>',
        'PASSWORD': '<%=@database['password_hash']%>',
        'HOST': '<% if @database['host'] %><%=@database['host']%><% else %>localhost<% end %>',
        'default-character-set': 'utf8'
    }
}
<% end -%>
<% if @keystone_admin_roles -%>
OPENSTACK_KEYSTONE_ADMIN_ROLES = <%= @keystone_admin_roles %>
<% end -%>
CREATE_IMAGE_DEFAULTS = {
    'image_visibility': '<%= @image_visibility -%>',
}
<% if @user_menu_links -%>
USER_MENU_LINKS = <%= @user_menu_links %>
<% end -%><commit_msg>added a newline<commit_after># Extra setting
SITE_BRANDING = '<%= @site_branding %>'
<% if @manage_overrides -%>
HORIZON_CONFIG['customization_module'] = 'openstack_dashboard.overrides'
<% end -%>
<% if @change_uploaddir -%>
FILE_UPLOAD_TEMP_DIR = '<%= @custom_uploaddir %>'
<% end -%>
<% if @enable_pwd_retrieval -%>
OPENSTACK_ENABLE_PASSWORD_RETRIEVE = '<%= @enable_pwd_retrieval %>'
<% end -%>
<% if @session_cookie_httponly -%>
OPENSTACK_SESSION_COOKIE_HTTPONLY = '<%= @session_cookie_httponly %>'
<% end -%>
<% if @use_ssl -%>
OPENSTACK_USE_SSL = '<%= @use_ssl %>'
<% end -%>
<% if @access_control_allow_origin -%>
OPENSTACK_ACCESS_CONTROL_ALLOW_ORIGIN = '<%= @access_control_allow_origin %>'
<% end -%>
<% if @disallow_iframe_embed -%>
DISALLOW_IFRAME_EMBED = '<%= @disallow_iframe_embed -%>'
<% end -%>
<% if @csrf_cookie_secure -%>
CSRF_COOKIE_SECURE = '<%= @csrf_cookie_secure -%>'
<% end -%>
<% if @session_cookie_secure -%>
SESSION_COOKIE_SECURE = '<%= @session_cookie_secure -%>'
<% end -%>
<% if @password_autocomplete -%>
PASSWORD_AUTOCOMPLETE = '<%= @password_autocomplete -%>'
<% end -%>
<% if @disable_password_reveal -%>
DISABLE_PASSWORD_REVEAL = '<%= @disable_password_reveal -%>'
<% end -%>
<% if @enforce_password_check -%>
ENFORCE_PASSWORD_CHECK = '<%= @enforce_password_check -%>'
<% end -%>
<% if @secure_proxy_header -%>
SECURE_PROXY_SSL_HEADER = '<%= @secure_proxy_header -%>'
<% end -%>

<% if @database -%>
DATABASES = {
    'default': {
        # Database configuration here
        'ENGINE': '<% if @database['engine'] %><%=@database['engine']%><% else %>django.db.backends.mysql<% end %>',
        'NAME': '<% if @database['database'] %><%=@database['database']%><% else %>horizon<% end %>',
        'USER': '<% if @database['user'] %><%=@database['user']%><% else %>horizon<% end %>',
        'PASSWORD': '<%=@database['password_hash']%>',
        'HOST': '<% if @database['host'] %><%=@database['host']%><% else %>localhost<% end %>',
        'default-character-set': 'utf8'
    }
}
<% end -%>
<% if @keystone_admin_roles -%>
OPENSTACK_KEYSTONE_ADMIN_ROLES = <%= @keystone_admin_roles %>
<% end -%>
CREATE_IMAGE_DEFAULTS = {
    'image_visibility': '<%= @image_visibility -%>',
}
<% if @user_menu_links -%>
USER_MENU_LINKS = <%= @user_menu_links %>
<% end -%>
{'fraction_non_alphanumeric': 0.2222222222222222, 'fraction_numerical': 0.0004365858982754857, 'mean_word_length': 5.2425068119891005, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 133, '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': '6884904', 'n_tokens_mistral': 1912, 'n_tokens_neox': 1775, 'n_words': 248}