<commit_before># Legend: name, clear_port, enc_port, prefer_primary_backend, health_check, balance
{% set haproxy_services = [
    [ 'horizon', 8080, 443, false, 'httpchk /', 'source' ],
    [
      'keystone',
      endpoints.keystone.port.backend_api,
      endpoints.keystone.port.haproxy_api,
      endpoints.keystone.haproxy.prefer_primary_backend,
      endpoints.keystone.haproxy.health_check,
      endpoints.keystone.haproxy.balance
    ],
    [
      'keystone-admin',
      endpoints.keystone_admin.port.backend_api,
      endpoints.keystone_admin.port.haproxy_api,
      endpoints.keystone_admin.haproxy.prefer_primary_backend,
      endpoints.keystone_admin.haproxy.health_check,
      endpoints.keystone_admin.haproxy.balance
    ],
    [
      'keystone_legacy',
      endpoints.keystone_legacy.port.backend_api,
      endpoints.keystone_legacy.port.haproxy_api,
      endpoints.keystone_legacy.haproxy.prefer_primary_backend,
      endpoints.keystone_legacy.haproxy.health_check,
      endpoints.keystone_legacy.haproxy.balance
    ],
    [
      'nova',
      endpoints.nova.port.backend_api,
      endpoints.nova.port.haproxy_api,
      endpoints.nova.haproxy.prefer_primary_backend,
      endpoints.nova.haproxy.health_check,
      endpoints.nova.haproxy.balance
    ],
    [
      'novnc',
      endpoints.novnc.port.backend_api,
      endpoints.novnc.port.haproxy_api,
      endpoints.novnc.haproxy.prefer_primary_backend,
      endpoints.novnc.haproxy.health_check,
      endpoints.novnc.haproxy.balance
    ],
    [
      'glance',
      endpoints.glance.port.backend_api,
      endpoints.glance.port.haproxy_api,
      endpoints.glance.haproxy.prefer_primary_backend,
      endpoints.glance.haproxy.health_check,
      endpoints.glance.haproxy.balance
    ],
    [
      'neutron',
      endpoints.neutron.port.backend_api,
      endpoints.neutron.port.haproxy_api,
      endpoints.neutron.haproxy.prefer_primary_backend,
      endpoints.neutron.haproxy.health_check,
      endpoints.neutron.haproxy.balance
    ],
    [
      'cinder',
      endpoints.cinder.port.backend_api,
      endpoints.cinder.port.haproxy_api,
      endpoints.cinder.haproxy.prefer_primary_backend,
      endpoints.cinder.haproxy.health_check,
      endpoints.cinder.haproxy.balance
    ]
  ]
-%}
{% if ceilometer.enabled|default('False')|bool -%}
    {% set _ = haproxy_services.append(['ceilometer',
                                        endpoints.ceilometer.port.backend_api,
                                        endpoints.ceilometer.port.haproxy_api,
                                        endpoints.ceilometer.haproxy.prefer_primary_backend,
                                        endpoints.ceilometer.haproxy.health_check,
                                        endpoints.ceilometer.haproxy.balance ]) %}
{% endif -%}
{% if magnum.enabled|default('False')|bool -%}
    {% set _ = haproxy_services.append(['magnum',
                                        9512,
                                        9511,
                                        false,
                                        'httpchk /',
                                        'source']) %}
{% endif -%}
{% if heat.enabled -%}
    {% set _ = haproxy_services.append(['heat',
                                        endpoints.heat.port.backend_api,
                                        endpoints.heat.port.haproxy_api,
                                        endpoints.heat.haproxy.prefer_primary_backend,
                                        endpoints.heat.haproxy.health_check,
                                        endpoints.heat.haproxy.balance ]) %}
    {% set _ = haproxy_services.append(['heat-cfn',
                                        endpoints.heat_cfn.port.backend_api,
                                        endpoints.heat_cfn.port.haproxy_api,
                                        endpoints.heat_cfn.haproxy.prefer_primary_backend,
                                        endpoints.heat_cfn.haproxy.health_check,
                                        endpoints.heat_cfn.haproxy.balance ]) %}
{% endif -%}<commit_msg>add cinder endpoint to haproxy when enabled.<commit_after># Legend: name, clear_port, enc_port, prefer_primary_backend, health_check, balance
{% set haproxy_services = [
    [ 'horizon', 8080, 443, false, 'httpchk /', 'source' ],
    [
      'keystone',
      endpoints.keystone.port.backend_api,
      endpoints.keystone.port.haproxy_api,
      endpoints.keystone.haproxy.prefer_primary_backend,
      endpoints.keystone.haproxy.health_check,
      endpoints.keystone.haproxy.balance
    ],
    [
      'keystone-admin',
      endpoints.keystone_admin.port.backend_api,
      endpoints.keystone_admin.port.haproxy_api,
      endpoints.keystone_admin.haproxy.prefer_primary_backend,
      endpoints.keystone_admin.haproxy.health_check,
      endpoints.keystone_admin.haproxy.balance
    ],
    [
      'keystone_legacy',
      endpoints.keystone_legacy.port.backend_api,
      endpoints.keystone_legacy.port.haproxy_api,
      endpoints.keystone_legacy.haproxy.prefer_primary_backend,
      endpoints.keystone_legacy.haproxy.health_check,
      endpoints.keystone_legacy.haproxy.balance
    ],
    [
      'nova',
      endpoints.nova.port.backend_api,
      endpoints.nova.port.haproxy_api,
      endpoints.nova.haproxy.prefer_primary_backend,
      endpoints.nova.haproxy.health_check,
      endpoints.nova.haproxy.balance
    ],
    [
      'novnc',
      endpoints.novnc.port.backend_api,
      endpoints.novnc.port.haproxy_api,
      endpoints.novnc.haproxy.prefer_primary_backend,
      endpoints.novnc.haproxy.health_check,
      endpoints.novnc.haproxy.balance
    ],
    [
      'glance',
      endpoints.glance.port.backend_api,
      endpoints.glance.port.haproxy_api,
      endpoints.glance.haproxy.prefer_primary_backend,
      endpoints.glance.haproxy.health_check,
      endpoints.glance.haproxy.balance
    ],
    [
      'neutron',
      endpoints.neutron.port.backend_api,
      endpoints.neutron.port.haproxy_api,
      endpoints.neutron.haproxy.prefer_primary_backend,
      endpoints.neutron.haproxy.health_check,
      endpoints.neutron.haproxy.balance
    ]
  ]
-%}
{% if cinder.enabled|default('True')|bool -%}
{% set _ = haproxy_services.append(['cinder',
                                    endpoints.cinder.port.backend_api,
                                    endpoints.cinder.port.haproxy_api,
                                    endpoints.cinder.haproxy.prefer_primary_backend,
                                    endpoints.cinder.haproxy.health_check,
                                    endpoints.cinder.haproxy.balance ]) %}
{% endif -%}
{% if ceilometer.enabled|default('False')|bool -%}
    {% set _ = haproxy_services.append(['ceilometer',
                                        endpoints.ceilometer.port.backend_api,
                                        endpoints.ceilometer.port.haproxy_api,
                                        endpoints.ceilometer.haproxy.prefer_primary_backend,
                                        endpoints.ceilometer.haproxy.health_check,
                                        endpoints.ceilometer.haproxy.balance ]) %}
{% endif -%}
{% if magnum.enabled|default('False')|bool -%}
    {% set _ = haproxy_services.append(['magnum',
                                        9512,
                                        9511,
                                        false,
                                        'httpchk /',
                                        'source']) %}
{% endif -%}
{% if heat.enabled -%}
    {% set _ = haproxy_services.append(['heat',
                                        endpoints.heat.port.backend_api,
                                        endpoints.heat.port.haproxy_api,
                                        endpoints.heat.haproxy.prefer_primary_backend,
                                        endpoints.heat.haproxy.health_check,
                                        endpoints.heat.haproxy.balance ]) %}
    {% set _ = haproxy_services.append(['heat-cfn',
                                        endpoints.heat_cfn.port.backend_api,
                                        endpoints.heat_cfn.port.haproxy_api,
                                        endpoints.heat_cfn.haproxy.prefer_primary_backend,
                                        endpoints.heat_cfn.haproxy.health_check,
                                        endpoints.heat_cfn.haproxy.balance ]) %}
{% endif -%}
{'fraction_non_alphanumeric': 0.0961380443714051, 'fraction_numerical': 0.0035215400868646553, 'mean_word_length': 1.6750392464678179, 'pattern_counts': {'":': 0, '<': 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': 45, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5104589', 'n_tokens_mistral': 2689, 'n_tokens_neox': 2505, 'n_words': 212}