<commit_before>#!/usr/bin/env bash

set -e

PATH=/usr/local/bin:$PATH

TOOLS=(
    "golang.org/x/tools/cmd/benchcmp"
    "golang.org/x/tools/cmd/cover"
    "golang.org/x/tools/cmd/godoc"
    "golang.org/x/tools/cmd/goimports"
    "golang.org/x/tools/cmd/gorename"
    "golang.org/x/tools/cmd/stringer"
    "golang.org/x/tools/cmd/vet"
    "github.com/rogpeppe/godef"
    "github.com/nsf/gocode"
    "github.com/alecthomas/gometalinter"
    "github.com/mailgun/godebug"
    "github.com/motemen/gore"
    "github.com/pranavraja/tldr"
)

FORMULAS="go"

go_get() {
    for t in "${TOOLS[@]}"; do
        printf "go get -u %s" "$t"
        go get -u "$t"
        printf " ...done\n"
    done
}

main() {
    brew install ${FORMULAS}
    go_get
}

main
<commit_msg>go: Add more go tools<commit_after>#!/usr/bin/env bash

set -e

PATH=/usr/local/bin:$PATH

TOOLS=(
    "github.com/alecthomas/gometalinter"
    "github.com/golang/lint/golint"
    "github.com/lukehoban/go-find-references"
    "github.com/lukehoban/go-outline"
    "github.com/mailgun/godebug"
    "github.com/motemen/gore"
    "github.com/newhook/go-symbols"
    "github.com/nsf/gocode"
    "github.com/pranavraja/tldr"
    "github.com/rogpeppe/godef"
    "github.com/tpng/gopkgs"
    "golang.org/x/tools/cmd/benchcmp"
    "golang.org/x/tools/cmd/cover"
    "golang.org/x/tools/cmd/godoc"
    "golang.org/x/tools/cmd/goimports"
    "golang.org/x/tools/cmd/gorename"
    "golang.org/x/tools/cmd/gorename"
    "golang.org/x/tools/cmd/stringer"
    "golang.org/x/tools/cmd/vet"
    "sourcegraph.com/sqs/goreturns"
)

FORMULAS="go"

go_get() {
    for t in "${TOOLS[@]}"; do
        printf "go get -u %s" "$t"
        go get -u "$t"
        printf " ...done\n"
    done
}

main() {
    brew install ${FORMULAS}
    go_get
}

main

{'fraction_non_alphanumeric': 0.17759103641456583, 'fraction_numerical': 0.0, 'mean_word_length': 2.572, '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': '1000333', 'n_tokens_mistral': 826, 'n_tokens_neox': 779, 'n_words': 101}