<commit_before>version: 2
jobs:
  build:
    working_directory: /go/src/github.com/oinume/algo
    docker:
      - image: golang:1.12-stretch
        environment:
          - GO111MODULE: "on"
    steps:
      - checkout
      - run:
          name: "Set .gitconfig"
          command: |
            echo "" > ~/.gitconfig
            git config --global url."https://github.com".insteadOf git://github.com
            git config --global http.https://gopkg.in.followRedirects true
      - restore_cache:
          key: go-mod-{{ checksum "go.sum" }}
      - run:
          name: "Install dependencies"
          command: |
            go mod download
      - save_cache:
          key: go-mod-{{ checksum "go.sum" }}
          paths:
            - "/go/pkg/mod"
      - run:
          name: "Install lint tools"
          command: |
            make bootstrap-lint-tools
      - run:
          name: "Run lint"
          command: make lint
      - run:
          name: "Run go test"
          command: |
            go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
      - run:
          name: "Upload to codecov"
          command: |
            bash <(curl -s https://codecov.io/bash)
<commit_msg>Update CircleCI config<commit_after>version: 2
jobs:
  build:
    working_directory: /go/src/github.com/oinume/algo
    docker:
      - image: golang:1.12-stretch
        environment:
          - GO111MODULE: "on"
    steps:
      - checkout
      - run:
          name: "Set .gitconfig"
          command: |
            echo "" > ~/.gitconfig
            git config --global url."https://github.com".insteadOf git://github.com
            git config --global http.https://gopkg.in.followRedirects true
      - restore_cache:
          key: go-mod-{{ checksum "go.sum" }}
      - run:
          name: "Install dependencies"
          command: |
            go mod download
      - save_cache:
          key: go-mod-{{ checksum "go.sum" }}
          paths:
            - "/go/pkg/mod"
      - run:
          name: "Install lint tools"
          command: |
            make bootstrap-lint-tool
      - run:
          name: "Run lint"
          command: make lint
      - run:
          name: "Run go test"
          command: |
            go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
      - run:
          name: "Upload to codecov"
          command: |
            bash <(curl -s https://codecov.io/bash)

{'fraction_non_alphanumeric': 0.12264922322158626, 'fraction_numerical': 0.005723630417007359, 'mean_word_length': 1.3734238603297768, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2055288', 'n_tokens_mistral': 754, 'n_tokens_neox': 727, 'n_words': 178}