<commit_before>box: pacificporter/golang:1.12.9-10.13.0
build:
  steps:
    - script:
        name: copy source
        code: |
          mkdir -p $GOPATH/src/github.com/pacificporter
          cp -ar $WERCKER_SOURCE_DIR/ $GOPATH/src/github.com/pacificporter/surf
    - script:
        name: glide install
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          glide install
    - script:
        name: go vet
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          go vet $(glide novendor)
    - script:
        name: errcheck
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          errcheck -ignore="Close|Run|Write" ${NOVENDOR}
    - script:
        name: golint
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          echo -n $(glide novendor) | xargs -d ' ' -L1 golint  | egrep -v 'Id.* should be .*ID|Url| should have comment | comment on exported ' | perl -e 'local $/; $o=<STDIN>; if ($o eq "") {exit(0)}; print $o; exit(1);'
    - script:
        name: gocyclo
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          gocyclo -over 20 $(glide novendor -x)
    - script:
        name: ineffassign
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          ineffassign $(glide novendor -x)
    - script:
        name: staticcheck
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          staticcheck $(glide novendor -x)
    - script:
        name: nilerr
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          nilerr $(glide novendor -x)
    - script:
        name: go test
        cwd: $GOPATH/src/github.com/pacificporter/surf
        code: |
          TZ=Japan go test $(glide novendor)
<commit_msg>Use pacificporter/golang:1.13.1-10.13.0<commit_after>box: pacificporter/golang:1.13.1-10.13.0
build:
  steps:
    - script:
        name: go vet
        cwd: $WERCKER_SOURCE_DIR
        code: |
          go vet ./...
    - script:
        name: errcheck
        cwd: $WERCKER_SOURCE_DIR
        code: |
          errcheck -ignore="Close|Run|Write" ./...
    - script:
        name: golint
        cwd: $WERCKER_SOURCE_DIR
        code: |
          golint ./... | egrep -v 'Id.* should be .*ID|Url| should have comment | comment on exported ' | perl -e 'local $/; $o=<STDIN>; if ($o eq "") {exit(0)}; print $o; exit(1);'
    - script:
        name: gocyclo
        cwd: $WERCKER_SOURCE_DIR
        code: |
          gocyclo -over 20 .
    - script:
        name: ineffassign
        cwd: $WERCKER_SOURCE_DIR
        code: |
          ineffassign .
    - script:
        name: staticcheck
        cwd: $WERCKER_SOURCE_DIR
        code: |
          staticcheck ./...
    - script:
        name: nilerr
        cwd: $WERCKER_SOURCE_DIR
        code: |
          nilerr .
    - script:
        name: go test
        cwd: $WERCKER_SOURCE_DIR
        code: |
          TZ=Japan go test ./...

{'fraction_non_alphanumeric': 0.1240387830157138, 'fraction_numerical': 0.012036108324974924, 'mean_word_length': 1.6690454950936664, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1139886', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1049, 'n_words': 228}