<commit_before>global
    daemon
    maxconn         5000
    user            haproxy
    group           haproxy
    log 127.0.0.1   local0
    log 127.0.0.1   local1 notice
    pidfile         /var/run/haproxy.pid
    stats socket    /var/lib/haproxy/stats

defaults
    log global
    mode http
    option  forwardfor      except 127.0.0.0/8
    option  redispatch
    option  httpclose
    option  httplog
    retries                 3
    timeout http-request    1m
    timeout queue           1m
    timeout connect         10s
    timeout client          20m
    timeout server          20m
    timeout check           10s
    maxconn                 5000

listen stats :9090
    mode http
    stats enable
    stats hide-version
    stats realm Haproxy\ Statistics
    stats uri /stats
    stats auth admin:admin
    stats refresh 5s

<% for(var i = 0; i < tasks.length; i++) { %>
listen <%= tasks[i].id %> *:<%= tasks[i].port %>
    maxconn 5000
    option dontlognull
    <%= tasks[i].settings.options %>
    <% for(var x = 0; x < tasks[i].hosts.length; x++) { %>
    server <%= tasks[i].hosts[x].id %> <%= tasks[i].hosts[x].host %>:<%= tasks[i].hosts[x].port %>
    <% } %>
<% } %><commit_msg>Updated haproxy.cfg file with correct default settings<commit_after>global
    daemon
    maxconn         5000
    user            haproxy
    group           haproxy
    log 127.0.0.1   local0
    log 127.0.0.1   local1 notice
    pidfile         /var/run/haproxy.pid
    stats socket    /var/lib/haproxy/stats

defaults
    log global
    mode http
    option  forwardfor      except 127.0.0.0/8
    option  redispatch
    option  httpclose
    option  httplog
    retries                 3
    timeout http-request    1m
    timeout queue           1m
    timeout connect         10s
    timeout client          20m
    timeout server          20m
    timeout check           10s
    maxconn                 5000

listen stats :9090
    mode http
    stats enable
    stats hide-version
    stats realm Haproxy\ Statistics
    stats uri /stats
    stats auth admin:admin
    stats refresh 5s

<% for(var i = 0; i < tasks.length; i++) { %>
listen <%= tasks[i].id %> *:<%= tasks[i].port %>
    maxconn 5000
    option dontlognull
    <% for(var x = 0; x < tasks[i].settings.options.length; x++) { %>
    <%= tasks[i].settings.options[x] %><% } %>
    <% for(var x = 0; x < tasks[i].hosts.length; x++) { %>
    server <%= tasks[i].hosts[x].id %> <%= tasks[i].hosts[x].host %>:<%= tasks[i].hosts[x].port %>
    <% } %>
<% } %>
{'fraction_non_alphanumeric': 0.11229735073151444, 'fraction_numerical': 0.04072756030051404, 'mean_word_length': 1.7802197802197801, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '5405418', 'n_tokens_mistral': 919, 'n_tokens_neox': 806, 'n_words': 218}