<commit_before>language: shell
dist: bionic
os: linux

services:
  - docker

before_install:
  # Change to a workspace to avoid interferance with this repo's files/directories.
  - pushd $(mktemp -d)

  # Install tflint.
  - curl -L "$(curl -Ls https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" -o tflint.zip
  - unzip tflint.zip
  - sudo mv tflint /usr/local/bin/

  # Install Terraform.
  - wget https://releases.hashicorp.com/terraform/0.12.26/terraform_0.12.26_linux_amd64.zip
  - unzip -o terraform_*.zip
  - sudo mv -f terraform /usr/local/bin/

  # Change back to the original directory.
  - popd

jobs:
  include:
    - stage: lint
      script: cd terraform && ./lint.sh
    - stage: build docker images (and push on main)
      script: cd docker && ./release.sh arch
      env: TARGET=arch
    - script: cd docker && ./release.sh centos-7
      env: TARGET=centos-7
    - script: cd docker && ./release.sh centos-8
      env: TARGET=centos-8<commit_msg>bump terraform version<commit_after>language: shell
dist: bionic
os: linux

services:
  - docker

before_install:
  # Change to a workspace to avoid interferance with this repo's files/directories.
  - pushd $(mktemp -d)

  # Install tflint.
  - curl -L "$(curl -Ls https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" -o tflint.zip
  - unzip tflint.zip
  - sudo mv tflint /usr/local/bin/

  # Install Terraform.
  - wget https://releases.hashicorp.com/terraform/0.12.26/terraform_0.12.29_linux_amd64.zip
  - unzip -o terraform_*.zip
  - sudo mv -f terraform /usr/local/bin/

  # Change back to the original directory.
  - popd

jobs:
  include:
    - stage: lint
      script: cd terraform && ./lint.sh
    - stage: build docker images (and push on main)
      script: cd docker && ./release.sh arch
      env: TARGET=arch
    - script: cd docker && ./release.sh centos-7
      env: TARGET=centos-7
    - script: cd docker && ./release.sh centos-8
      env: TARGET=centos-8
{'fraction_non_alphanumeric': 0.1288135593220339, 'fraction_numerical': 0.017433414043583534, 'mean_word_length': 2.695885509838998, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '557556', 'n_tokens_mistral': 797, 'n_tokens_neox': 747, 'n_words': 197}