<commit_before>version: 2
jobs:
    build:
        timezone:
            Australia/Melbourne
        docker:
            - image: circleci/php:7.1.8-browsers
        steps:
            - checkout
            - run: sudo composer self-update
            - run: composer install -n --prefer-dist
    deploy:
        working_directory: ~/integration
        docker:
            - image: ansible/ansible:ubuntu1604
              environment:
                  ANSIBLE_HOST_KEY_CHECKING: no
        steps:
            - run:
                name: Install System Packages
                command: pip install --upgrade pip & pip install ansible
            - checkout
            - restore_cache:
                key: integration-{{ .Branch }}-{{ checksum "./ansible-requirements.yml" }}-v1
            - run: ansible-galaxy install -r ansible/requirements.yml
            - save_cache:
                key: integration-{{ .Branch }}-{{ checksum "./ansible/requirements.yml" }}-v1
                paths:
                    - "./root/.ansible/roles"


            - run: echo $ANSIBLE_VAULT_PASS > ./ansible/.vault-pass.txt
            - run: ansible-playbook ansible/deploy.yml -i ansible/hosts.ini --vault-password-file=./ansible/.vault-pass.txt
            - run: rm ./ansible/.vault-pass.txt

workflows:
    version: 2
    build_deploy:
        jobs:
            - build
            - deploy:
                requires:
                    - build<commit_msg>fixes<commit_after>version: 2
jobs:
    build:
        timezone:
            Australia/Melbourne
        docker:
            - image: circleci/php:7.1.8-browsers
        steps:
            - checkout
            - run: sudo composer self-update
            - run: composer install -n --prefer-dist
    deploy:
        working_directory: ~/integration
        docker:
            - image: ansible/ansible:ubuntu1604
              environment:
                  ANSIBLE_HOST_KEY_CHECKING: no
        steps:
            - run:
                name: Install System Packages
                command: pip install --upgrade pip & pip install ansible
            - checkout
            - restore_cache:
                key: integration-{{ .Branch }}-{{ checksum "./ansible/requirements.yml" }}-v1
            - run: ansible-galaxy install -r ansible/requirements.yml
            - save_cache:
                key: integration-{{ .Branch }}-{{ checksum "./ansible/requirements.yml" }}-v1
                paths:
                    - "./root/.ansible/roles"


            - run: echo $ANSIBLE_VAULT_PASS > ./integration/ansible/.vault-pass.txt
            - run: ansible-playbook ansible/deploy.yml -i ansible/hosts.ini --vault-password-file=./integration/ansible/.vault-pass.txt
            - run: rm ./integration/ansible/.vault-pass.txt

workflows:
    version: 2
    build_deploy:
        jobs:
            - build
            - deploy:
                requires:
                    - build
{'fraction_non_alphanumeric': 0.10306122448979592, 'fraction_numerical': 0.007482993197278911, 'mean_word_length': 1.34156050955414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '71706', 'n_tokens_mistral': 869, 'n_tokens_neox': 795, 'n_words': 173}