<commit_before>box: motemen/golang-goxc
build:
  steps:
    - setup-go-workspace
    - script:
        name: go get
        code: |
          go version
          go get -t ./...
    - script:
        name: go test
        code: |
          go test ./...
    - script:
        name: goxc build & archive
        code: |
          goxc -tasks='xc archive' -bc 'linux,!arm windows,386 darwin' -d $WERCKER_OUTPUT_DIR/ -build-ldflags "\"$(git describe --tags --always --dirty) ($(git name-rev --name-only HEAD | sed 's/^remotes\/origin\///'))\"" -resources-include='README*'
    - script:
        name: output release tag
        code: |
          git describe --tags --exact --match 'v*' > $WERCKER_OUTPUT_DIR/.release_tag || true
deploy:
  steps:
    - script:
        name: restore release tag
        code: |
          export RELEASE_TAG=$(cat .release_tag)
    - motemen/github-create-release:
        token: $GITHUB_TOKEN
        tag: $RELEASE_TAG
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/peco_linux_386.tar.gz
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/peco_linux_amd64.tar.gz
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/peco_darwin_386.zip<commit_msg>remove version bit<commit_after>box: motemen/golang-goxc
build:
  steps:
    - setup-go-workspace
    - script:
        name: go get
        code: |
          go version
          go get -t ./...
    - script:
        name: go test
        code: |
          go test ./...
    - script:
        name: goxc build & archive
        code: |
          goxc -tasks='xc archive' -bc 'linux,!arm windows,386 darwin' -d $WERCKER_OUTPUT_DIR/ -resources-include='README*'
    - script:
        name: output release tag
        code: |
          git describe --tags --exact --match 'v*' > $WERCKER_OUTPUT_DIR/.release_tag || true
deploy:
  steps:
    - script:
        name: restore release tag
        code: |
          export RELEASE_TAG=$(cat .release_tag)
    - motemen/github-create-release:
        token: $GITHUB_TOKEN
        tag: $RELEASE_TAG
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/peco_linux_386.tar.gz
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/peco_linux_amd64.tar.gz
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/peco_darwin_386.zip
{'fraction_non_alphanumeric': 0.12102689486552567, 'fraction_numerical': 0.008964955175224124, 'mean_word_length': 1.8646441073512252, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4570855', 'n_tokens_mistral': 819, 'n_tokens_neox': 806, 'n_words': 179}