<commit_before>#!/bin/bash

set -e

echo 'installing ansible...'
sudo pip install 'setuptools>=18.3,<34.0' 'ansible>=2.4,<2.5'

echo 'installing roles'
ansible-galaxy install elastic.elasticsearch,5.5.1

# test to see if we've linked this in development
# install by default in production
if [ ! -e roles/csirtgadgets.cif ] && [ ! -e ../roles/csirtgadgets.cif ]; then
  ansible-galaxy install csirtgadgets.cif,0.0.7
fi

echo 'running ansible...'
ansible-playbook -i "localhost," -c local site.yml -vv<commit_msg>tweaking csirtgadgets.cif role version<commit_after>#!/bin/bash

set -e

echo 'installing ansible...'
sudo pip install 'setuptools>=18.3,<34.0' 'ansible>=2.4,<2.5'

echo 'installing roles'
ansible-galaxy install elastic.elasticsearch,5.5.1

# test to see if we've linked this in development
# install by default in production
if [ ! -e roles/csirtgadgets.cif ] && [ ! -e ../roles/csirtgadgets.cif ]; then
  ansible-galaxy install csirtgadgets.cif,0.0.8
fi

echo 'running ansible...'
ansible-playbook -i "localhost," -c local site.yml -vv
{'fraction_non_alphanumeric': 0.14394661582459486, 'fraction_numerical': 0.030505243088655862, 'mean_word_length': 4.072463768115942, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3156570', 'n_tokens_mistral': 409, 'n_tokens_neox': 385, 'n_words': 104}