<commit_before>language: go

go:
- 1.8

before_install:
- go get -u -v github.com/golang/lint/golint
- go get -u -v golang.org/x/tools/cmd/goimports

install:
- go get ./...

script:
- goimports -l $(find . -type f -name '*.go' ! -path "./proto/*" ! -path "./vendor/*")
- golint -set_exit_status $(go list ./... | grep -v proto | grep -v vendor)
- go vet $(go list ./... | grep -v proto | grep -v vendor)
<commit_msg>Updated Travis build to fail on goimports errors.<commit_after>language: go

go:
- 1.8

before_install:
- go get -u -v github.com/golang/lint/golint
- go get -u -v golang.org/x/tools/cmd/goimports

install:
- go get ./...

script:
- goimports -l $(find . -type f -name '*.go' ! -path "./proto/*" ! -path "./vendor/*")
- test $(goimports -l $(find . -type f -name '*.go' ! -path "./proto/*" ! -path "./vendor/*") | wc -l) -eq 0
- golint -set_exit_status $(go list ./... | grep -v proto | grep -v vendor)
- go vet $(go list ./... | grep -v proto | grep -v vendor)

{'fraction_non_alphanumeric': 0.21144024514811033, 'fraction_numerical': 0.005107252298263534, 'mean_word_length': 2.310810810810811, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5576539', 'n_tokens_mistral': 394, 'n_tokens_neox': 373, 'n_words': 123}