<commit_before>{% set salt_version = pillar.get('salt_version', '') %}
{% set minion_id = '{0}-{1}'.format(grains.get('id'), salt_version) %}


# remember that the top level cmd.run statements here are instructions to the
# salt-ssh minion, not the salt actually being tested
key:
  cmd.run:
    - name: salt-key -L

versions:
  cmd.run:
    - names:
      - salt --versions-report
      - salt {{ minion_id }} test.versions_report

grains:
  cmd.run:
    - names:
      - salt {{ minion_id }} grains.item os
      - salt {{ minion_id }} grains.item pythonversion
      - salt {{ minion_id }} grains.setval key val

pillar:
  cmd.run:
    - names:
      - salt {{ minion_id }} pillar.items

output:
  cmd.run:
    - names:
      - salt --output=yaml {{ minion_id }} test.fib 128
      - salt --output=json {{ minion_id }} test.fib 128

exec:<commit_msg>reduce test.fib run<commit_after>{% set salt_version = pillar.get('salt_version', '') %}
{% set minion_id = '{0}-{1}'.format(grains.get('id'), salt_version) %}


# remember that the top level cmd.run statements here are instructions to the
# salt-ssh minion, not the salt actually being tested
key:
  cmd.run:
    - name: salt-key -L

versions:
  cmd.run:
    - names:
      - salt --versions-report
      - salt {{ minion_id }} test.versions_report

grains:
  cmd.run:
    - names:
      - salt {{ minion_id }} grains.item os
      - salt {{ minion_id }} grains.item pythonversion
      - salt {{ minion_id }} grains.setval key val

pillar:
  cmd.run:
    - names:
      - salt {{ minion_id }} pillar.items

output:
  cmd.run:
    - names:
      - salt --output=yaml {{ minion_id }} test.fib 7
      - salt --output=json {{ minion_id }} test.fib 7

exec:
{'fraction_non_alphanumeric': 0.14344262295081966, 'fraction_numerical': 0.00702576112412178, 'mean_word_length': 2.5903361344537816, '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': '5586042', 'n_tokens_mistral': 614, 'n_tokens_neox': 576, 'n_words': 155}