<commit_before>default-job: &default-job
        docker:
            - image: docker:17.06.2-ce-git
        steps:
            - checkout
            - setup_remote_docker
            # TODO Avoid rebuild if nothing changes (Dockerfile, OS
            # updates, installed dependencies). Implement in general way:
            # `docker run -t cpdpro/baseimage:$CIRCLE_JOB check.$CIRCLE_JOB`
            - restore_cache:
                key: "v1:{{ .Environment.CIRCLE_JOB }}:{{ .Branch }}"
                keys:
                    - "v1:{{ .Environment.CIRCLE_JOB }}:"
            - run:
                name: Load docker image layer cache
                command: |
                    docker load -i /var/cache/$CIRCLE_JOB.tar || true
            - run:
                name: docker build
                command: |
                    docker build \
                        --build-arg UPGRADE=$(date -Ihours) \
                        --cache-from cpdpro/baseimage:$CIRCLE_JOB \
                        -t cpdpro/baseimage:$CIRCLE_JOB \
                        -f Dockerfile.$CIRCLE_JOB \
                        .
                    if test "$CIRCLE_BUILD_NUM"; then # empty on local circleci
                        docker tag \
                            cpdpro/baseimage:$CIRCLE_JOB \
                            cpdpro/baseimage:$CIRCLE_JOB.$CIRCLE_BUILD_NUM
                    fi
            - run:
                name: Save docker image layer cache
                command: |
                    docker save -o /var/cache/$CIRCLE_JOB.tar cpdpro/baseimage:$CIRCLE_JOB || true
            - save_cache:
                key: "v1:{{ .Environment.CIRCLE_JOB }}:{{ .Branch }}"
                paths:
                    - /var/cache/$CIRCLE_JOB.tar
            - deploy:
                name: docker push
                command: |
                    if test "$CIRCLE_BRANCH" = "master" && test "$DOCKER_USER"; then
                        docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
                        docker push cpdpro/baseimage:$CIRCLE_JOB
                        if test "$CIRCLE_BUILD_NUM"; then # empty on local circleci
                            docker push cpdpro/baseimage:$CIRCLE_JOB.$CIRCLE_BUILD_NUM
                        fi
                    fi

version: 2
jobs:
    base-narada4d:
        <<: *default-job
    build-golang:
        <<: *default-job
workflows:
    version: 2
    all:
        jobs:<commit_msg>CircleCI: change cache keys<commit_after>default-job: &default-job
        docker:
            - image: docker:17.06.2-ce-git
        steps:
            - checkout
            - setup_remote_docker
            # TODO Avoid rebuild if nothing changes (Dockerfile, OS
            # updates, installed dependencies). Implement in general way:
            # `docker run -t cpdpro/baseimage:$CIRCLE_JOB check.$CIRCLE_JOB`
            - restore_cache:
                key: "v1:{{ .Environment.CIRCLE_JOB }}:{{ checksum \"Dockerfile.{{ .Environment.CIRCLE_JOB }}\" }}"
                keys:
                    - "v1:{{ .Environment.CIRCLE_JOB }}:"
            - run:
                name: Load docker image layer cache
                command: |
                    ls -l /var/cache/
                    docker load -i /var/cache/$CIRCLE_JOB.tar || true
            - run:
                name: docker build
                command: |
                    docker build \
                        --build-arg UPGRADE=$(date -Ihours) \
                        --cache-from cpdpro/baseimage:$CIRCLE_JOB \
                        -t cpdpro/baseimage:$CIRCLE_JOB \
                        -f Dockerfile.$CIRCLE_JOB \
                        .
                    if test "$CIRCLE_BUILD_NUM"; then # empty on local circleci
                        docker tag \
                            cpdpro/baseimage:$CIRCLE_JOB \
                            cpdpro/baseimage:$CIRCLE_JOB.$CIRCLE_BUILD_NUM
                    fi
            - run:
                name: Save docker image layer cache
                command: |
                    docker save -o /var/cache/$CIRCLE_JOB.tar cpdpro/baseimage:$CIRCLE_JOB || true
            - save_cache:
                key: "v1:{{ .Environment.CIRCLE_JOB }}:{{ checksum \"Dockerfile.{{ .Environment.CIRCLE_JOB }}\" }}"
                paths:
                    - /var/cache/$CIRCLE_JOB.tar
            - deploy:
                name: docker push
                command: |
                    if test "$CIRCLE_BRANCH" = "master" && test "$DOCKER_USER"; then
                        docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
                        docker push cpdpro/baseimage:$CIRCLE_JOB
                        if test "$CIRCLE_BUILD_NUM"; then # empty on local circleci
                            docker push cpdpro/baseimage:$CIRCLE_JOB.$CIRCLE_BUILD_NUM
                        fi
                    fi

version: 2
jobs:
    base-narada4d:
        <<: *default-job
    build-golang:
        <<: *default-job
workflows:
    version: 2
    all:
        jobs:
{'fraction_non_alphanumeric': 0.09373761395164487, 'fraction_numerical': 0.004359889021006738, 'mean_word_length': 1.1412812897751379, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, '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': '1160727', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1380, 'n_words': 299}