<commit_before>import string

template = string.Template("""
[DEFAULTS]
host_ip = $__contrail_host_ip__
collectors = $__contrail_collector__:$__contrail_collector_port__
http_server_port = $__contrail_http_server_port__
rest_api_port = $__contrail_rest_api_port__
rest_api_ip = $__contrail_host_ip__
log_local = $__contrail_log_local__
log_level = $__contrail_log_level__
log_category = $__contrail_log_category__
log_file = $__contrail_log_file__

[DISCOVERY]
disc_server_ip = $__contrail_discovery_ip__
disc_server_port = $__contrail_discovery_port__

[REDIS]
redis_server_port = $__contrail_redis_server_port__
redis_query_port = $__contrail_redis_query_port__

""")<commit_msg>PR #2160 - rest_api_ip should be set to 0.0.0.0 instead of the host ip in contrail-analytics-api.conf<commit_after>import string

template = string.Template("""
[DEFAULTS]
host_ip = $__contrail_host_ip__
collectors = $__contrail_collector__:$__contrail_collector_port__
http_server_port = $__contrail_http_server_port__
rest_api_port = $__contrail_rest_api_port__
rest_api_ip = 0.0.0.0 
log_local = $__contrail_log_local__
log_level = $__contrail_log_level__
log_category = $__contrail_log_category__
log_file = $__contrail_log_file__

[DISCOVERY]
disc_server_ip = $__contrail_discovery_ip__
disc_server_port = $__contrail_discovery_port__

[REDIS]
redis_server_port = $__contrail_redis_server_port__
redis_query_port = $__contrail_redis_query_port__

""")
{'fraction_non_alphanumeric': 0.07237299930410578, 'fraction_numerical': 0.008350730688935281, 'mean_word_length': 9.977099236641221, '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': '7303629', 'n_tokens_mistral': 563, 'n_tokens_neox': 552, 'n_words': 80}