<commit_before>sudo: false
os:
  - linux
  - osx
language: go
env:
  - secure: "iEmROaMU0nPbs+gBLAL5a+SXQZTi7ynUiZs4rjFyg2eugIBupdEKrH8G06UcsU9QteO8kVuHcgJo2ZwU4BhS2GkBZj8VsoY+N51GKBEptBHbOXJeg/HlTFxJ6Tm9ilmx5M6N4z5acNO/9znSkjXAN6OGxMkCD9Ohxph0UMTMhuk="
go:
  - 1.3
  - 1.4
  - 1.5
  - tip
install:
  - go get ./...
  - go get github.com/remyoudompheng/go-misc/deadcode
  - go get github.com/fzipp/gocyclo
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls
script:
  - gofmt -s -d *.go
  - go vet
  - deadcode
  - gocyclo -over 10 *.go
  - go test -race -v -covermode count -coverprofile coverage.out ./
  - go test -race -v -covermode count -coverprofile coverage2.out ./grpclogger
  - go test -race -v -covermode count -coverprofile coverage3.out ./internal/util
  - cat coverage2.out | tail -n +2 >> coverage.out
  - cat coverage3.out | tail -n +2 >> coverage.out
  - goveralls -coverprofile coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN<commit_msg>Must use atomic covermode with race detector enabled<commit_after>sudo: false
os:
  - linux
  - osx
language: go
env:
  - secure: "iEmROaMU0nPbs+gBLAL5a+SXQZTi7ynUiZs4rjFyg2eugIBupdEKrH8G06UcsU9QteO8kVuHcgJo2ZwU4BhS2GkBZj8VsoY+N51GKBEptBHbOXJeg/HlTFxJ6Tm9ilmx5M6N4z5acNO/9znSkjXAN6OGxMkCD9Ohxph0UMTMhuk="
go:
  - 1.3
  - 1.4
  - 1.5
  - tip
install:
  - go get ./...
  - go get github.com/remyoudompheng/go-misc/deadcode
  - go get github.com/fzipp/gocyclo
  - go get golang.org/x/tools/cmd/cover
  - go get github.com/mattn/goveralls
script:
  - gofmt -s -d *.go
  - go vet
  - deadcode
  - gocyclo -over 10 *.go
  - go test -race -v -covermode atomic -coverprofile coverage.out ./
  - go test -race -v -covermode atomic -coverprofile coverage2.out ./grpclogger
  - go test -race -v -covermode atomic -coverprofile coverage3.out ./internal/util
  - cat coverage2.out | tail -n +2 >> coverage.out
  - cat coverage3.out | tail -n +2 >> coverage.out
  - goveralls -coverprofile coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN
{'fraction_non_alphanumeric': 0.11242603550295859, 'fraction_numerical': 0.03944773175542406, 'mean_word_length': 3.090725806451613, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2671689', 'n_tokens_mistral': 939, 'n_tokens_neox': 894, 'n_words': 180}