<commit_before>version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.8

    working_directory: /go/src/github.com/domudall/gce-sleep
    steps:
      - checkout

      - run: go get github.com/Masterminds/glide
      - run: go get github.com/golang/dep/cmd/dep
      - run: dep ensure
      - run: go test $(glide nv)

  deploy:
    docker:
      - image: circleci/golang:1.8

    working_directory: /go/src/github.com/domudall/gce-sleep
    steps:
      - checkout

      - run: go get github.com/golang/dep/cmd/dep
      - run: dep ensure
      - run: curl -sL https://git.io/goreleaser | bash

workflows:
  version: 2
  build_and_deploy:
    jobs:
      - build:
          filters:
            tags:
              only: /.*/
      - deploy:
          requires:
            - build
          filters:
            tags:
              only: /^v[0-9]+(\.[0-9]+)*(-.*)*/
            branches:
              ignore: /.*/<commit_msg>Adding caching to CircleCI config<commit_after>version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.8

    working_directory: /go/src/github.com/domudall/gce-sleep
    steps:
      - checkout

      - run: go get github.com/Masterminds/glide
      - run: go get github.com/golang/dep/cmd/dep
      - restore_cache:
          keys:
            - dep-cache-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
            - dep-cache-{{ .Branch }}
            - dep-cache
      - run: dep ensure
      - save_cache:
          key: dep-cache-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
          paths:
            - vendor
      - save_cache:
          key: dep-cache-{{ .Branch }}
          paths:
            - vendor
      - save_cache:
          key: dep-cache
          paths:
            - vendor

      - run: go test $(glide nv)

  deploy:
    docker:
      - image: circleci/golang:1.8

    working_directory: /go/src/github.com/domudall/gce-sleep
    steps:
      - checkout

      - run: go get github.com/golang/dep/cmd/dep
      - restore_cache:
          keys:
            - dep-cache-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
            - dep-cache-{{ .Branch }}
            - dep-cache
      - run: dep ensure
      - save_cache:
          key: dep-cache-{{ .Branch }}-{{ checksum "Gopkg.lock" }}
          paths:
            - vendor
      - save_cache:
          key: dep-cache-{{ .Branch }}
          paths:
            - vendor
      - save_cache:
          key: dep-cache
          paths:
            - vendor

      - run: curl -sL https://git.io/goreleaser | bash

workflows:
  version: 2
  build_and_deploy:
    jobs:
      - build:
          filters:
            tags:
              only: /.*/
      - deploy:
          requires:
            - build
          filters:
            tags:
              only: /^v[0-9]+(\.[0-9]+)*(-.*)*/
            branches:
              ignore: /.*/
{'fraction_non_alphanumeric': 0.13365990202939118, 'fraction_numerical': 0.006997900629811057, 'mean_word_length': 1.2817238627294494, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '616338', 'n_tokens_mistral': 970, 'n_tokens_neox': 923, 'n_words': 190}