<commit_before>#!/bin/bash
set -e

script() {
    if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "$TRAVIS_OS_NAME" != "windows" ];
    then
        COVERALLS_PARALLEL=true

        if [ ! -z "$JS" ];
        then
            bash js.cover.sh
        else
            go get github.com/axw/gocov/gocov github.com/mattn/goveralls golang.org/x/tools/cmd/cover
            go test -covermode=count -coverprofile=profile.cov
        fi

        $HOME/gopath/bin/goveralls --coverprofile=profile.cov -service=travis-ci -repotoken $COVERALLS_TOKEN
    fi

    if [ -z "$JS" ];
    then
        go get golang.org/x/lint/golint && golint ./...
        go vet
        go test -bench=.* -v ./...
    fi
}

"$@"<commit_msg>always install goveralls when talking to coveralls<commit_after>#!/bin/bash
set -e

script() {
    if [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "$TRAVIS_OS_NAME" != "windows" ];
    then
        COVERALLS_PARALLEL=true

        if [ ! -z "$JS" ];
        then
            bash js.cover.sh
        else    
            go test -covermode=count -coverprofile=profile.cov
        fi

        go get github.com/axw/gocov/gocov github.com/mattn/goveralls golang.org/x/tools/cmd/cover
        $HOME/gopath/bin/goveralls --coverprofile=profile.cov -service=travis-ci -repotoken $COVERALLS_TOKEN
    fi

    if [ -z "$JS" ];
    then
        go get golang.org/x/lint/golint && golint ./...
        go vet
        go test -bench=.* -v ./...
    fi
}

"$@"
{'fraction_non_alphanumeric': 0.14784394250513347, 'fraction_numerical': 0.0, 'mean_word_length': 1.8722986247544204, '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': '588014', 'n_tokens_mistral': 546, 'n_tokens_neox': 529, 'n_words': 104}