<commit_before>function _horizon_configure() {
    crudini --set /etc/openstack-dashboard/local_settings '' OPENSTACK_HOST "\"$CTRL_MGMT_IP\""
    crudini --set /etc/openstack-dashboard/local_settings '' ALLOWED_HOSTS "['*', ]"
    crudini --set /etc/openstack-dashboard/local_settings '' CACHES "{
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '$CTRL_MGMT_IP:11211',
    },
}"
    crudini --set local_settings '' OPENSTACK_KEYSTONE_URL '"http://%s:5000/v3" % OPENSTACK_HOST'
    sed -i "s/^#OPENSTACK_API_VERSIONS = {/OPENSTACK_API_VERSIONS = {/g" /etc/openstack-dashboard/local_settings
    sed -i 's/^#    "identity": 3,/     "identity": 3,/g' /etc/openstack-dashboard/local_settings
    sed -i "s/^#    \"volume\": 2,/     \"volume\": 2,\n}/g" /etc/openstack-dashboard/local_settings
}<commit_msg>add a service check function<commit_after>function _horizon_configure() {
    crudini --set /etc/openstack-dashboard/local_settings '' OPENSTACK_HOST "\"$CTRL_MGMT_IP\""
    crudini --set /etc/openstack-dashboard/local_settings '' ALLOWED_HOSTS "['*', ]"
    crudini --set /etc/openstack-dashboard/local_settings '' CACHES "{
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '$CTRL_MGMT_IP:11211',
    },"

    crudini --set local_settings '' OPENSTACK_KEYSTONE_URL '"http://%s:5000/v3" % OPENSTACK_HOST'
    sed -i "s/^#OPENSTACK_API_VERSIONS = {/OPENSTACK_API_VERSIONS = {/g" /etc/openstack-dashboard/local_settings
    sed -i 's/^#    "identity": 3,/     "identity": 3,/g' /etc/openstack-dashboard/local_settings
    sed -i "s/^#    \"volume\": 2,/     \"volume\": 2,\n}/g" /etc/openstack-dashboard/local_settings
}
{'fraction_non_alphanumeric': 0.17353951890034364, 'fraction_numerical': 0.016036655211912942, 'mean_word_length': 3.609498680738786, 'pattern_counts': {'":': 8, '<': 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': '6173128', 'n_tokens_mistral': 663, 'n_tokens_neox': 646, 'n_words': 100}