<commit_before>haproxy:
  pkgrepo.managed:
    - ppa: vbernat/haproxy-1.5
    - keyid: <KEY>
    - require_in:
      - pkg: haproxy

  pkg:
    - latest

  service.running:
    - enable: True
    - reload: True
    - watch:
      - file: /etc/haproxy/haproxy.cfg
    - require:
      - pkg: haproxy
      - file: /etc/haproxy/haproxy.cfg


/etc/haproxy/haproxy.cfg:
  file.managed:
    - source: salt://haproxy/config/haproxy.cfg.jinja
    - template: jinja
    - user: root
    - group: root
    - mode: 644
    - require:
      - pkg: haproxy

/etc/ssl/private/hg.python.org.pem:
  file.managed:
    - contents: {{ salt["pillar"]["tls_certs"]["hg.python.org"] }}
    - user: root
    - group: root
    - mode: 644<commit_msg>variable name is pillar not salt["pillar"]<commit_after>haproxy:
  pkgrepo.managed:
    - ppa: vbernat/haproxy-1.5
    - keyid: <KEY>
    - require_in:
      - pkg: haproxy

  pkg:
    - latest

  service.running:
    - enable: True
    - reload: True
    - watch:
      - file: /etc/haproxy/haproxy.cfg
    - require:
      - pkg: haproxy
      - file: /etc/haproxy/haproxy.cfg


/etc/haproxy/haproxy.cfg:
  file.managed:
    - source: salt://haproxy/config/haproxy.cfg.jinja
    - template: jinja
    - user: root
    - group: root
    - mode: 644
    - require:
      - pkg: haproxy

/etc/ssl/private/hg.python.org.pem:
  file.managed:
    - contents: {{ pillar["tls_certs"]["hg.python.org"] }}
    - user: root
    - group: root
    - mode: 644
{'fraction_non_alphanumeric': 0.14779661016949153, 'fraction_numerical': 0.010847457627118645, 'mean_word_length': 1.952, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1420134', 'n_tokens_mistral': 641, 'n_tokens_neox': 596, 'n_words': 102}