<commit_before>sudo: false
rvm:
  - 2.2.3
env:
  global:
    - TF_VERSION="0.6.10"
    - SPRUCE_VERSION="0.13.0"

addons:
  apt:
    sources:
      - debian-sid
    packages:
      - shellcheck
      - pwgen
      - whois # provides mkpasswd(1)

before_install:
  - mkdir ~/bin
  - export PATH=~/bin:$PATH
  - |
    wget https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip
    unzip -o terraform_${TF_VERSION}_linux_amd64.zip -d ~/bin
    rm terraform_${TF_VERSION}_linux_amd64.zip
  - |
    wget https://github.com/geofffranks/spruce/releases/download/v${SPRUCE_VERSION}/spruce_${SPRUCE_VERSION}_linux_amd64.tar.gz
    tar -xvzf spruce_${SPRUCE_VERSION}_linux_amd64.tar.gz
    mv spruce_${SPRUCE_VERSION}_linux_amd64/spruce ~/bin && chmod +x ~/bin/spruce
    rm -rf spruce_${SPRUCE_VERSION}_linux_amd64.tar.gz spruce_${SPRUCE_VERSION}_linux_amd64
  - |
    pip install --user yamllint

script:
  - make test
<commit_msg>Remove pwgen and mkpasswd from Travis config.<commit_after>sudo: false
rvm:
  - 2.2.3
env:
  global:
    - TF_VERSION="0.6.10"
    - SPRUCE_VERSION="0.13.0"

addons:
  apt:
    sources:
      - debian-sid
    packages:
      - shellcheck

before_install:
  - mkdir ~/bin
  - export PATH=~/bin:$PATH
  - |
    wget https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip
    unzip -o terraform_${TF_VERSION}_linux_amd64.zip -d ~/bin
    rm terraform_${TF_VERSION}_linux_amd64.zip
  - |
    wget https://github.com/geofffranks/spruce/releases/download/v${SPRUCE_VERSION}/spruce_${SPRUCE_VERSION}_linux_amd64.tar.gz
    tar -xvzf spruce_${SPRUCE_VERSION}_linux_amd64.tar.gz
    mv spruce_${SPRUCE_VERSION}_linux_amd64/spruce ~/bin && chmod +x ~/bin/spruce
    rm -rf spruce_${SPRUCE_VERSION}_linux_amd64.tar.gz spruce_${SPRUCE_VERSION}_linux_amd64
  - |
    pip install --user yamllint

script:
  - make test

{'fraction_non_alphanumeric': 0.12991094814038764, 'fraction_numerical': 0.028810895756940808, 'mean_word_length': 3.4110854503464205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '853013', 'n_tokens_mistral': 831, 'n_tokens_neox': 779, 'n_words': 110}