<commit_before>global
    daemon
    maxconn {{ pillar['haproxy']['global']['maxconn'] }}

defaults
    mode {{ pillar['haproxy']['defaults'].get('mode', 'tcp') }}
    timeout {{ pillar['haproxy']['defaults'].get('timeout', {}).get('connect', '5000ms') }}
    timeout {{ pillar['haproxy']['defaults'].get('timeout', {}).get('client', '50000ms') }}
    timeout {{ pillar['haproxy']['defaults'].get('timeout', {}).get('server', '50000ms') }}

{% for l, listen in pillar['haproxy']['listens'] -%}
listen {{ l }}
    bind {{ listen['bind'] }}
    {% for name, server in item['servers'] -%}
    server {{ name }} {{ server['addr'] }} {{ server.get('params', '') }}
    {%- endfor %}
{% endfor %}<commit_msg>make the haproxy.cfg template work right<commit_after>global
    daemon

defaults
    mode {{ pillar['haproxy']['defaults'].get('mode', 'tcp') }}
    maxconn {{ pillar['haproxy']['defaults']['maxconn'] }}
    timeout connect {{ pillar['haproxy']['defaults'].get('timeout', {}).get('connect', '5000ms') }}
    timeout client {{ pillar['haproxy']['defaults'].get('timeout', {}).get('client', '50000ms') }}
    timeout server {{ pillar['haproxy']['defaults'].get('timeout', {}).get('server', '50000ms') }}

{% for l, listen in pillar['haproxy']['listens'].items() -%}
listen {{ l }}
    bind {{ listen['bind'] }}
    {% for name, server in listen['servers'].items() -%}
    server {{ name }} {{ server['addr'] }} {{ server.get('params', '') }}
    {% endfor -%}
{% endfor %}
{'fraction_non_alphanumeric': 0.2654446707399864, 'fraction_numerical': 0.019008825526137134, 'mean_word_length': 4.803149606299213, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6231232', 'n_tokens_mistral': 508, 'n_tokens_neox': 466, 'n_words': 88}