<commit_before>#!/bin/bash

export   WORKSPACE=`pwd`

GOPATH=${WORKSPACE}:${WORKSPACE}/vendor
export GOPATH

export CGO_ENABLED=0

echo .....................linux-amd64
DEST_DIR=${WORKSPACE}/bin/linux-amd64
mkdir -p ${DEST_DIR}
GOOS=linux   GOARCH=amd64 go build -v github.com/couchbaselabs/sync_gateway
mv ${WORKSPACE}/sync_gateway      ${DEST_DIR}
echo "..........................Success! Output is ${DEST_DIR}/sync_gateway"

echo .....................linux-386
DEST_DIR=${WORKSPACE}/bin/linux-386
mkdir -p ${DEST_DIR}
GOOS=linux   GOARCH=386   go build -v github.com/couchbaselabs/sync_gateway
mv ${WORKSPACE}/sync_gateway      ${DEST_DIR}
echo "..........................Success! Output is ${DEST_DIR}/sync_gateway"

echo .....................windows-amd64
DEST_DIR=${WORKSPACE}/bin/windows-amd64
mkdir -p ${DEST_DIR}
GOOS=windows GOARCH=amd64 go build -v github.com/couchbaselabs/sync_gateway
mv ${WORKSPACE}/sync_gateway.exe  ${DEST_DIR}
echo "..........................Success! Output is ${DEST_DIR}/sync_gateway"

echo .....................windows-386
DEST_DIR=${WORKSPACE}/bin/windows-386
mkdir -p ${DEST_DIR}
GOOS=windows GOARCH=386   go build -v github.com/couchbaselabs/sync_gateway
mv ${WORKSPACE}/sync_gateway.exe  ${DEST_DIR}
echo "..........................Success! Output is ${DEST_DIR}/sync_gateway"

echo .....................darwin-amd64
DEST_DIR=${WORKSPACE}/bin/darwin-amd64
mkdir -p ${DEST_DIR}
GOOS=darwin  GOARCH=amd64 go build -v github.com/couchbaselabs/sync_gateway
mv ${WORKSPACE}/sync_gateway      ${DEST_DIR}
echo "..........................Success! Output is ${DEST_DIR}/sync_gateway"
<commit_msg>CBLT-166:  only copy binary if it exists CBL-4:     change order to test for sync problem<commit_after>#!/bin/bash

export   WORKSPACE=`pwd`

GOPATH=${WORKSPACE}:${WORKSPACE}/vendor
export GOPATH

export CGO_ENABLED=0

FAILS=0

echo .....................linux-386
DEST_DIR=${WORKSPACE}/bin/linux-386
mkdir -p ${DEST_DIR}
GOOS=linux   GOARCH=386   go build -v github.com/couchbaselabs/sync_gateway
if [[ -e ${WORKSPACE}/sync_gateway ]]
  then
    mv   ${WORKSPACE}/sync_gateway      ${DEST_DIR}
    echo "..........................Success! Output is: ${DEST_DIR}/sync_gateway"
  else
    FAILS=$((FAILS+1))
    echo "######################### FAIL! no such file: ${DEST_DIR}/sync_gateway"
fi

echo .....................linux-amd64
DEST_DIR=${WORKSPACE}/bin/linux-amd64
mkdir -p ${DEST_DIR}
GOOS=linux   GOARCH=amd64 go build -v github.com/couchbaselabs/sync_gateway
if [[ -e ${WORKSPACE}/sync_gateway ]]
  then
    mv   ${WORKSPACE}/sync_gateway      ${DEST_DIR}
    echo "..........................Success! Output is: ${DEST_DIR}/sync_gateway"
  else
    FAILS=$((FAILS+1))
    echo "######################### FAIL! no such file: ${DEST_DIR}/sync_gateway"
fi

echo .....................windows-amd64
DEST_DIR=${WORKSPACE}/bin/windows-amd64
mkdir -p ${DEST_DIR}
GOOS=windows GOARCH=amd64 go build -v github.com/couchbaselabs/sync_gateway
if [[ -e ${WORKSPACE}/sync_gateway ]]
  then
    mv   ${WORKSPACE}/sync_gateway      ${DEST_DIR}
    echo "..........................Success! Output is: ${DEST_DIR}/sync_gateway"
  else
    FAILS=$((FAILS+1))
    echo "######################### FAIL! no such file: ${DEST_DIR}/sync_gateway"
fi

echo .....................windows-386
DEST_DIR=${WORKSPACE}/bin/windows-386
mkdir -p ${DEST_DIR}
GOOS=windows GOARCH=386   go build -v github.com/couchbaselabs/sync_gateway
if [[ -e ${WORKSPACE}/sync_gateway ]]
  then
    mv   ${WORKSPACE}/sync_gateway      ${DEST_DIR}
    echo "..........................Success! Output is: ${DEST_DIR}/sync_gateway"
  else
    FAILS=$((FAILS+1))
    echo "######################### FAIL! no such file: ${DEST_DIR}/sync_gateway"
fi

echo .....................darwin-amd64
DEST_DIR=${WORKSPACE}/bin/darwin-amd64
mkdir -p ${DEST_DIR}
GOOS=darwin  GOARCH=amd64 go build -v github.com/couchbaselabs/sync_gateway
if [[ -e ${WORKSPACE}/sync_gateway ]]
  then
    mv   ${WORKSPACE}/sync_gateway      ${DEST_DIR}
    echo "..........................Success! Output is: ${DEST_DIR}/sync_gateway"
  else
    FAILS=$((FAILS+1))
    echo "######################### FAIL! no such file: ${DEST_DIR}/sync_gateway"
fi

{'fraction_non_alphanumeric': 0.2589328251548356, 'fraction_numerical': 0.020009528346831826, 'mean_word_length': 2.7726864330637917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4383182', 'n_tokens_mistral': 1503, 'n_tokens_neox': 1446, 'n_words': 296}