<commit_before>#!/bin/bash
#
# This is the InfluxDB CircleCI test script. Using this script allows total control
# the environment in which the build and test is run, and matches the official
# build process for InfluxDB.

BUILD_DIR=$HOME/influxdb-build
GO_VERSION=go1.4.2
PARALLELISM="-parallel 1"
TIMEOUT="-timeout 480s"

# Executes the given statement, and exits if the command returns a non-zero code.
function exit_if_fail {
    command=$@
    echo "Executing '$command'"
    $command
    rc=$?
    if [ $rc -ne 0 ]; then
        echo "'$command' returned $rc."
        exit $rc
    fi
}

# Check that go fmt has been run.
function check_go_fmt {
	fmtcount=`git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l`
	if [ $fmtcount -gt 0 ]; then
	    echo "run 'go fmt ./...' to format your source code."<commit_msg>Bring test timeout back to 5 minutes<commit_after>#!/bin/bash
#
# This is the InfluxDB CircleCI test script. Using this script allows total control
# the environment in which the build and test is run, and matches the official
# build process for InfluxDB.

BUILD_DIR=$HOME/influxdb-build
GO_VERSION=go1.4.2
PARALLELISM="-parallel 1"
TIMEOUT="-timeout 300s"

# Executes the given statement, and exits if the command returns a non-zero code.
function exit_if_fail {
    command=$@
    echo "Executing '$command'"
    $command
    rc=$?
    if [ $rc -ne 0 ]; then
        echo "'$command' returned $rc."
        exit $rc
    fi
}

# Check that go fmt has been run.
function check_go_fmt {
	fmtcount=`git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l`
	if [ $fmtcount -gt 0 ]; then
	    echo "run 'go fmt ./...' to format your source code."
{'fraction_non_alphanumeric': 0.11171171171171171, 'fraction_numerical': 0.013813813813813814, 'mean_word_length': 3.175438596491228, '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': '6017664', 'n_tokens_mistral': 569, 'n_tokens_neox': 534, 'n_words': 213}