<commit_before>include:
  - nginx

git:
  pkg.installed

vsftpd:
  pkg:
    - installed
  service.running:
    - enable: True
    - restart: True
    - watch:
      - file: /etc/vsftpd.conf
    - require:
      - file: /etc/vsftpd.conf
      - pkg: vsftpd

/srv/:
  file.directory:
    - user: www-data
    - group: www-data

testdata-repo:
  git.latest:
    - name: https://github.com/python/pythontestdotnet
    - target: /srv/python-testdata/
    - user: www-data
    - watch_in:
      - service: nginx
  require:
    - pkg: git
    - file: /srv/

chmod-testdata:
  cmd.run:
    - name: chmod -R o+r /srv/python-testdata/ && find /srv/python-testdata/ -type d -exec chmod o+rx {} ';'
    - onchanges:
      - git: testdata-repo

chmod-ftpdata:<commit_msg>be more aggressive about resetting testdata git state<commit_after>include:
  - nginx

git:
  pkg.installed

vsftpd:
  pkg:
    - installed
  service.running:
    - enable: True
    - restart: True
    - watch:
      - file: /etc/vsftpd.conf
    - require:
      - file: /etc/vsftpd.conf
      - pkg: vsftpd

/srv/:
  file.directory:
    - user: www-data
    - group: www-data

testdata-repo:
  git.latest:
    - name: https://github.com/python/pythontestdotnet
    - target: /srv/python-testdata/
    - user: www-data
    - force_checkout: True
    - force_reset: True
    - watch_in:
      - service: nginx
  require:
    - pkg: git
    - file: /srv/

chmod-testdata:
  cmd.run:
    - name: chmod -R o+r /srv/python-testdata/ && find /srv/python-testdata/ -type d -exec chmod o+rx {} ';'
    - onchanges:
      - git: testdata-repo

chmod-ftpdata:
{'fraction_non_alphanumeric': 0.13690105787181084, 'fraction_numerical': 0.0, 'mean_word_length': 1.9777777777777779, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '2066230', 'n_tokens_mistral': 637, 'n_tokens_neox': 624, 'n_words': 130}