<commit_before>package main

import (
	"strconv"
	"strings"
)

var cfgTemplate = `
global
        daemon

#        log 127.0.0.1 local0 info
#        chroot /var/lib/haproxy
#        user haproxy
#        group haproxy
#
defaults
        #log     global
        mode    http
        #option  httplog
        #option  dontlognull
        timeout connect 5000
        timeout client 50000
        timeout server 50000
        #errorfile 400 /etc/haproxy/errors/400.http
        #errorfile 403 /etc/haproxy/errors/403.http
        #errorfile 408 /etc/haproxy/errors/408.http
        #errorfile 500 /etc/haproxy/errors/500.http
        #errorfile 502 /etc/haproxy/errors/502.http
        #errorfile 503 /etc/haproxy/errors/503.http
        #errorfile 504 /etc/haproxy/errors/504.http



listen stats *:%STATS_PORT%
    mode http
    stats enable
    stats hide-version
    stats realm Haproxy\ Statistics
    stats uri /

frontend main *:%FRONT_PORT%
    default_backend thing-%APP_PORT%<commit_msg>update haproxy.go for v1.6<commit_after>package main

import (
	"strconv"
	"strings"
)

var cfgTemplate = `
global
        daemon

#        log 127.0.0.1 local0 info
#        chroot /var/lib/haproxy
#        user haproxy
#        group haproxy
#
defaults
        #log     global
        mode    http
        #option  httplog
        #option  dontlognull
        timeout connect 5000
        timeout client 50000
        timeout server 50000
        #errorfile 400 /etc/haproxy/errors/400.http
        #errorfile 403 /etc/haproxy/errors/403.http
        #errorfile 408 /etc/haproxy/errors/408.http
        #errorfile 500 /etc/haproxy/errors/500.http
        #errorfile 502 /etc/haproxy/errors/502.http
        #errorfile 503 /etc/haproxy/errors/503.http
        #errorfile 504 /etc/haproxy/errors/504.http



listen stats
    bind *:%STATS_PORT%
    mode http
    stats enable
    stats hide-version
    stats realm Haproxy\ Statistics
    stats uri /

frontend main
    bind *:%FRONT_PORT%
    default_backend thing-%APP_PORT%
{'fraction_non_alphanumeric': 0.08114794656110837, 'fraction_numerical': 0.06333498268184068, 'mean_word_length': 2.0636363636363635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5025539', 'n_tokens_mistral': 780, 'n_tokens_neox': 669, 'n_words': 160}