<commit_before>machine:
  environment:
    IMPORT_PATH: "github.com/gruntwork-io/${CIRCLE_PROJECT_REPONAME}"
    REPO: "$HOME/.go_workspace/src/${IMPORT_PATH}"
    GOOS: linux
    GO15VENDOREXPERIMENT: 1

dependencies:
  override:
    # Get our repo into the CircleCI GOPATH.
    - |
        mkdir -p "${REPO}"
        rm -rf "${REPO}"
        ln -s "${HOME}/${CIRCLE_PROJECT_REPONAME}" "${REPO}"

    # Install glide to fetch Go dependencies
    - |
        if [[ ! -d ~/glide ]]; then
          wget https://github.com/Masterminds/glide/releases/download/0.10.2/glide-0.10.2-linux-amd64.zip
          unzip glide-0.10.2-linux-amd64.zip -d ~/glide
        fi

    # Run glide
    - |
        cd ${REPO}
        ~/glide/linux-amd64/glide install

    # Install gox to build binaries
    - |
        cd ${REPO}
        go get github.com/mitchellh/gox

  cache_directories:
    - ~/glide

test:
  override:
    - |
        sudo chmod 0755 "${REPO}/_ci/run-tests.sh"
        ${REPO}/_ci/run-tests.sh

deployment:
  release:
    tag: /v.*/
    commands:
      # If a new release is tagged in GitHub, build the binaries and upload them to GitHub.
      - |
         ${REPO}/_ci/build-and-push-release-assets.sh \
             --local-src-path "$REPO" \
             --local-bin-output-path "/home/ubuntu/bin" \
             --github-repo-owner "$CIRCLE_PROJECT_USERNAME" \
             --github-repo-name "$CIRCLE_PROJECT_REPONAME" \
             --git-tag "$CIRCLE_TAG" \
             --app-name "fetch"
<commit_msg>Fix output path for build-and-push-release-assets<commit_after>machine:
  environment:
    IMPORT_PATH: "github.com/gruntwork-io/${CIRCLE_PROJECT_REPONAME}"
    REPO: "$HOME/.go_workspace/src/${IMPORT_PATH}"
    GOOS: linux
    GO15VENDOREXPERIMENT: 1

dependencies:
  override:
    # Get our repo into the CircleCI GOPATH.
    - |
        mkdir -p "${REPO}"
        rm -rf "${REPO}"
        ln -s "${HOME}/${CIRCLE_PROJECT_REPONAME}" "${REPO}"

    # Install glide to fetch Go dependencies
    - |
        if [[ ! -d ~/glide ]]; then
          wget https://github.com/Masterminds/glide/releases/download/0.10.2/glide-0.10.2-linux-amd64.zip
          unzip glide-0.10.2-linux-amd64.zip -d ~/glide
        fi

    # Run glide
    - |
        cd ${REPO}
        ~/glide/linux-amd64/glide install

    # Install gox to build binaries
    - |
        cd ${REPO}
        go get github.com/mitchellh/gox

  cache_directories:
    - ~/glide

test:
  override:
    - |
        sudo chmod 0755 "${REPO}/_ci/run-tests.sh"
        ${REPO}/_ci/run-tests.sh

deployment:
  release:
    tag: /v.*/
    commands:
      # If a new release is tagged in GitHub, build the binaries and upload them to GitHub.
      - |
         ${REPO}/_ci/build-and-push-release-assets.sh \
             --local-src-path "$REPO" \
             --local-bin-output-path "$HOME/bin/$CIRCLE_PROJECT_REPONAME" \
             --github-repo-owner "$CIRCLE_PROJECT_USERNAME" \
             --github-repo-name "$CIRCLE_PROJECT_REPONAME" \
             --git-tag "$CIRCLE_TAG" \
             --app-name "$CIRCLE_PROJECT_REPONAME"

{'fraction_non_alphanumeric': 0.1407814013561511, 'fraction_numerical': 0.01614465611882467, 'mean_word_length': 1.9226415094339622, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3563304', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1112, 'n_words': 214}