<commit_before>butler-heal-clone:
  git.latest:
    - rev: master
    - force_reset: True
    - name: https://github.com/llevar/butler.git
    - target: /opt/butler
    - submodules: True
    
install_butler_healing_agent:
  cmd.run:
    - name: pip install -e .
    - cwd: /opt/butler/heal/

/opt/butler/heal/healing_agent/bin/butler_healing_agent:
  file.managed:
    - source: /opt/butler/heal/healing_agent/bin/butler_healing_agent
    - user: root
    - group: root
    - mode: 755

/usr/bin/butler_healing_agent:
  file.symlink:
    - target: /opt/butler/heal/healing_agent/bin/butler_healing_agent
    - user: root
    - group: root
    - mode: 755
    - force: True<commit_msg>make sure log directory exists<commit_after>butler-heal-clone:
  git.latest:
    - rev: master
    - force_reset: True
    - name: https://github.com/llevar/butler.git
    - target: /opt/butler
    - submodules: True
    
install_butler_healing_agent:
  cmd.run:
    - name: pip install -e .
    - cwd: /opt/butler/heal/

/opt/butler/heal/healing_agent/bin/butler_healing_agent:
  file.managed:
    - source: /opt/butler/heal/healing_agent/bin/butler_healing_agent
    - user: root
    - group: root
    - mode: 755
    
/var/log/butler:
  file.directory:
    - user:root
    - group: root
    - dir_mode: 755
    - file_mode: 644
    - makedirs: True

/usr/bin/butler_healing_agent:
  file.symlink:
    - target: /opt/butler/heal/healing_agent/bin/butler_healing_agent
    - user: root
    - group: root
    - mode: 755
    - force: True
{'fraction_non_alphanumeric': 0.1221273801707157, 'fraction_numerical': 0.011818778726198293, 'mean_word_length': 2.4247191011235953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2491513', 'n_tokens_mistral': 610, 'n_tokens_neox': 597, 'n_words': 98}