<commit_before>supervisor:
  pip.installed:
    - name: supervisor==3.0
    - require:
      - pkg: python-pip
  pkg.removed:
    - name: supervisor
  service:
    - running
    - enable: True
    - require:
      - file: supervisor_conf
      - file: supervisor_init
    - watch:
      - file: supervisor_conf
      - file: supervisor_init

supervisor_conf:
  file.managed:
    - name: /etc/supervisor/supervisord.conf
    - source: salt://supervisor/supervisord.conf
    - user: root
    - group: root
    - mode: 644
    - require:
      - file: supervisor_log

# Symlink to default location expected by supervisorctl
supervisor_default_conf:
  file.symlink:
    - name: /etc/supervisord.conf
    - target: /etc/supervisor/supervisord.conf<commit_msg>Require pip before starting service<commit_after>supervisor:
  pip.installed:
    - name: supervisor==3.0
    - require:
      - pkg: python-pip
  pkg.removed:
    - name: supervisor

supervisor_service:
  service:
    - name: supervisor
    - running
    - enable: True
    - require:
      - pip: supervisor
    - watch:
      - file: supervisor_conf
      - file: supervisor_init

supervisor_conf:
  file.managed:
    - name: /etc/supervisor/supervisord.conf
    - source: salt://supervisor/supervisord.conf
    - user: root
    - group: root
    - mode: 644
    - require:
      - file: supervisor_log

# Symlink to default location expected by supervisorctl
supervisor_default_conf:
  file.symlink:
    - name: /etc/supervisord.conf
    - target: /etc/supervisor/supervisord.conf
{'fraction_non_alphanumeric': 0.10078023407022106, 'fraction_numerical': 0.006501950585175552, 'mean_word_length': 2.412416851441242, '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': '722954', 'n_tokens_mistral': 516, 'n_tokens_neox': 489, 'n_words': 108}