<commit_before>box: motemen/golang-goxc
build:
  steps:
    - setup-go-workspace
    - wercker/golint
    - script:
        name: get dependencies
        code: |
          go get
    - script:
        name: goxc build / archive
        code: |
          goxc -tasks='xc archive' -bc 'linux,!arm windows darwin' -d $WERCKER_OUTPUT_DIR/ -build-ldflags "-X main.Version \"$(git describe --tags --always --dirty)\""
    - script:
        name: output release tag
        code: |
          git describe --tags --exact --match 'v*' > $WERCKER_OUTPUT_DIR/.release_tag || warning "No release tag"
  after-steps:
    - slack-notifier:
        url: $SLACK_URL
        channel: random
deploy:
  steps:
    - script:
        name: restore variables
        code: |
          export RELEASE_TAG=$(cat .release_tag)
          export RELEASE_VERSION=$(cat .release_tag | sed 's/^v//')
    - wercker/github-create-release:
        token: $GITHUB_TOKEN
        tag: $RELEASE_TAG
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_darwin_amd64.zip
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_darwin_386.zip
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_linux_amd64.tar.gz
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_linux_386.tar.gz
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_windows_amd64.zip
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_windows_386.zip
    - uetchy/homebrew:
        token: $GITHUB_TOKEN
        version: $RELEASE_VERSION
        file64: snapshot/solver_darwin_amd64.zip
        file32: snapshot/solver_darwin_386.zip
  after-steps:
    - slack-notifier:
        url: $SLACK_URL
        channel: random<commit_msg>Remove notifier<commit_after>box: motemen/golang-goxc
build:
  steps:
    - setup-go-workspace
    - wercker/golint
    - script:
        name: get dependencies
        code: |
          go get
    - script:
        name: goxc build / archive
        code: |
          goxc -tasks='xc archive' -bc 'linux,!arm windows darwin' -d $WERCKER_OUTPUT_DIR/ -build-ldflags "-X main.Version \"$(git describe --tags --always --dirty)\""
    - script:
        name: output release tag
        code: |
          git describe --tags --exact --match 'v*' > $WERCKER_OUTPUT_DIR/.release_tag || warning "No release tag"
deploy:
  steps:
    - script:
        name: restore variables
        code: |
          export RELEASE_TAG=$(cat .release_tag)
          export RELEASE_VERSION=$(cat .release_tag | sed 's/^v//')
    - wercker/github-create-release:
        token: $GITHUB_TOKEN
        tag: $RELEASE_TAG
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_darwin_amd64.zip
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_darwin_386.zip
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_linux_amd64.tar.gz
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_linux_386.tar.gz
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_windows_amd64.zip
    - wercker/github-upload-asset:
        token: $GITHUB_TOKEN
        file: snapshot/solver_windows_386.zip
    - uetchy/homebrew:
        token: $GITHUB_TOKEN
        version: $RELEASE_VERSION
        file64: snapshot/solver_darwin_amd64.zip
        file32: snapshot/solver_darwin_386.zip
{'fraction_non_alphanumeric': 0.10586944596818432, 'fraction_numerical': 0.013165112452002194, 'mean_word_length': 2.182373472949389, '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': '3040161', 'n_tokens_mistral': 1225, 'n_tokens_neox': 1202, 'n_words': 236}