<commit_before>#!/bin/bash -e

if [[ $(id -u) -ne 0 ]]; then
  echo >&2 "must run as root!"
  exit 1
fi

yum install python{,-pip}
pip install ansible==2.8.6

exit 0
<commit_msg>Actually run the playbook<commit_after>#!/bin/bash -e

if [[ $(id -u) -ne 0 ]]; then
  echo >&2 "must run as root!"
  exit 1
fi

if [[ ! -f workspace.yml ]]; then
  echo >&2 "unable to find workspace playbook"
  exit 1
fi

yum install python{,-pip}
pip install ansible==2.8.6

ansible-playbook ./workspace.yml

exit 0

{'fraction_non_alphanumeric': 0.15725806451612903, 'fraction_numerical': 0.03225806451612903, 'mean_word_length': 3.176470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '739699', 'n_tokens_mistral': 217, 'n_tokens_neox': 198, 'n_words': 69}