<commit_before>version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.12
        environment:
          - GO111MODULE=on
    working_directory: /go/src/github.com/oleiade/trousseau
    steps:
      - checkout
      - restore_cache:
          keys:
            - go-mod-v1-{{ checksum "go.sum" }}
      - run: go mod download
      - run: go build github.com/oleiade/trousseau/cmd/...
      - run: go test github.com/oleiade/trousseau/...
      - save_cache:
          key: go-mod-v1-{{ checksum "go.sum" }}
          paths:
            - "/go/pkg/mod"<commit_msg>Add configuration for releases deployment on tags<commit_after>version: 2
jobs:
  build:
    docker:
      - image: circleci/golang:1.12
        environment:
          - GO111MODULE=on
    working_directory: /go/src/github.com/oleiade/trousseau
    steps:
      - checkout
      - restore_cache:
          keys:
            - go-mod-v1-{{ checksum "go.sum" }}
      - run: go mod download
      - run: go build github.com/oleiade/trousseau/cmd/...
      - run: go test github.com/oleiade/trousseau/...
      - save_cache:
          key: go-mod-v1-{{ checksum "go.sum" }}
          paths:
            - "/go/pkg/mod"
  release:
    docker:
      - image: circleci/golang:1.12
        environment:
          - GO111MODULE=on
          - GITHUB_TOKEN=${GITHUB_TOKEN}
    working_directory: /go/src/github.com/oleiade/trousseau
    steps:
      - checkout
      - restore_cache:
        keys:
          - go-mod-v1-{{ checksum "go.sum" }}
      - run: go mod download
      - run: goreleaser
workflows:
  version: 2
  build-n-deploy:
    jobs:
      - build:
          filters:
            tags:
              only: /.*/
      - deploy:
          requires: 
            - build
          filters:
            tags:
              only: /^v.*/
            branches:
              ignore: /.*/
{'fraction_non_alphanumeric': 0.12493297587131368, 'fraction_numerical': 0.013941018766756031, 'mean_word_length': 1.4360313315926894, 'pattern_counts': {'":': 0, '<': 3, '<?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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '616362', 'n_tokens_mistral': 643, 'n_tokens_neox': 606, 'n_words': 119}