<commit_before>box: ubuntu

build:
  steps:
    - script:
      name: env
      code: export GOPATH=~

    - setup-go-workspace

    - script:
      name: install
      code: |
        apt -y update --fix-missing
        apt -y install golang rake git curl
        go get -t ./...

    - script:
      name: test
      code: |
        for dir in $(go list ./...)
        do
          profile_file=profile.out
          go test -coverprofile=$profile_file -covermode=atomic $dir
          if [ -f $profile_file ]
          then
            cat $profile_file >> coverage.txt
            rm $profile_file
          fi
        done
        bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN

    - script:
      name: build
      code: rake build<commit_msg>Don't forget command test<commit_after>box: ubuntu

build:
  steps:
    - script:
      name: env
      code: export GOPATH=~

    - setup-go-workspace

    - script:
      name: install
      code: |
        apt -y update --fix-missing
        apt -y install golang rake git curl
        go get -t ./...

    - script:
      name: unit test
      code: |
        for dir in $(go list ./...)
        do
          profile_file=profile.out
          go test -coverprofile=$profile_file -covermode=atomic $dir
          if [ -f $profile_file ]
          then
            cat $profile_file >> coverage.txt
            rm $profile_file
          fi
        done
        bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN

    - script:
      name: command test
      code: rake cmdtest

    - script:
      name: build
      code: rake build
{'fraction_non_alphanumeric': 0.09788029925187032, 'fraction_numerical': 0.0, 'mean_word_length': 1.406296851574213, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1396296', 'n_tokens_mistral': 501, 'n_tokens_neox': 480, 'n_words': 146}