<commit_before>include:
  - .service

ensure_absence_of_default_toml_configuration:
{# We will use YAML, instead. #}
  file.absent:
    - name: /etc/vector/vector.toml

manage_vector_configuration_file:
  file.managed:
    - name: /etc/vector/vector.yaml
    - contents: |
        {{ salt.pillar.get('vector:configuration')|yaml(False)|indent(4) }}
    - onchanges_in:
      - service: vector_service_running<commit_msg>Remove Jinja comment that may be interfering w YAML processing<commit_after>include:
  - .service

ensure_absence_of_default_toml_configuration:
  file.absent:
    - name: /etc/vector/vector.toml

manage_vector_configuration_file:
  file.managed:
    - name: /etc/vector/vector.yaml
    - contents: |
        {{ salt.pillar.get('vector:configuration')|yaml(False)|indent(4) }}
    - onchanges_in:
      - service: vector_service_running
{'fraction_non_alphanumeric': 0.1191588785046729, 'fraction_numerical': 0.002336448598130841, 'mean_word_length': 3.8146067415730336, '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': '3363500', 'n_tokens_mistral': 291, 'n_tokens_neox': 282, 'n_words': 43}