<commit_before>---
language: python
python: "2.7"

env:
  - SITE=test.yml

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -y curl python-pip python-apt gcc

install:
  # Install Ansible.
  - pip install ansible

  # Add ansible.cfg to pick up roles path.
  - printf '[defaults]\nroles_path = ./roles' > ansible.cfg
 
script:
  # Check the role/playbook's syntax.

  - ansible-playbook -i inventory/tests $SITE --syntax-check

  # Run the role/playbook with ansible-playbook.
  - ansible-playbook -i inventory/tests $SITE --connection=local --sudo -vvv

  # Run the role/playbook again, checking to make sure it's idempotent.
  - >
    ansible-playbook -i inventory/tests $SITE --connection=local --sudo -vvv
    | grep -q 'changed=0.*failed=0'
    && (echo 'Idempotence test: pass' && exit 0)
    || (echo 'Idempotence test: fail' && exit 1)
<commit_msg>updated .travis - i failed to indicated a proper inventory file<commit_after>---
language: python
python: "2.7"

env:
  - SITE=test.yml

before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -y curl python-pip python-apt gcc

install:
  # Install Ansible.
  - pip install ansible

  # Add ansible.cfg to pick up roles path.
  - printf '[defaults]\nroles_path = ./roles' > ansible.cfg
 
script:
  # Check the role/playbook's syntax.

  - ansible-playbook -i inventory/test $SITE --syntax-check

  # Run the role/playbook with ansible-playbook.
  - ansible-playbook -i inventory/test $SITE --connection=local --sudo -vvv

  # Run the role/playbook again, checking to make sure it's idempotent.
  - >
    ansible-playbook -i inventory/test $SITE --connection=local --sudo -vvv
    | grep -q 'changed=0.*failed=0'
    && (echo 'Idempotence test: pass' && exit 0)
    || (echo 'Idempotence test: fail' && exit 1)

{'fraction_non_alphanumeric': 0.12673707615341856, 'fraction_numerical': 0.006670372429127293, 'mean_word_length': 2.9735099337748343, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5670572', 'n_tokens_mistral': 653, 'n_tokens_neox': 613, 'n_words': 191}