<commit_before>{% set maxscale = pillar.get('maxscale', {}) -%}
{% set reserved_keys = ['service', 'server', 'listener', 'filter'] %}
{% set special_format_fields = ['servers', 'filters'] -%}

{%- for reserved_section in reserved_keys -%}
{%- for section, options in maxscale.get(reserved_section,{}).items() %}
{%- if options is mapping %}
[{{ section }}]
{%- for option, value in options.items() %}
{%- if ( option == 'filters' ) %}
{{ option }}={%- for filtername in value %}{{ filtername }}{%- if not loop.last %}|{%- endif %}{%- endfor %}
{%- elif ( option == 'servers' ) %}<commit_msg>Re-adding maxscale config block to the config file (#7)<commit_after>{% set maxscale = pillar.get('maxscale', {}) -%}
{% set reserved_keys = ['service', 'server', 'listener', 'filter'] %}
{% set special_format_fields = ['servers', 'filters'] -%}

[maxscale]
{% for option, value in maxscale.get('config', {}).items() -%}
{{ option }}={{ value }}
{% endfor -%}

{%- for reserved_section in reserved_keys -%}
{%- for section, options in maxscale.get(reserved_section,{}).items() %}
{%- if options is mapping %}
[{{ section }}]
{%- for option, value in options.items() %}
{%- if ( option == 'filters' ) %}
{{ option }}={%- for filtername in value %}{{ filtername }}{%- if not loop.last %}|{%- endif %}{%- endfor %}
{%- elif ( option == 'servers' ) %}
{'fraction_non_alphanumeric': 0.2399103139013453, 'fraction_numerical': 0.0007473841554559044, 'mean_word_length': 4.579166666666667, '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': '1994019', 'n_tokens_mistral': 472, 'n_tokens_neox': 434, 'n_words': 118}