<commit_before>
# The following line should be uncommented once a baseline has been set for the code complexity and
# styling in the solution.  With this uncommented it means that any break to style or complexity
# will break the build (which is now in a convenient build file)

#set -e



MAX_COMPLEXITY=3

golint
gofmt -w -s ./*.go
goimports -w ./*.go
structcheck -t .
aligncheck .
go tool vet ./*.go
gocyclo -over ${MAX_COMPLEXITY} .
errcheck .
go tool vet --shadow ./*.go
varcheck .
defercheck .
<commit_msg>Adding echo to lint to show which one fails<commit_after>
# The following line should be uncommented once a baseline has been set for the code complexity and
# styling in the solution.  With this uncommented it means that any break to style or complexity
# will break the build (which is now in a convenient build file)

#set -e



MAX_COMPLEXITY=3

echo "golint"
golint
echo "gofmt -w -s ./*.go"
gofmt -w -s ./*.go
echo "goimports -w ./*.go"
goimports -w ./*.go
echo "structcheck -t ."
structcheck -t .
echo "aligncheck ."
aligncheck .
echo "go tool vet ./*.go"
go tool vet ./*.go
echo "gocyclo -over ${MAX_COMPLEXITY} ."
gocyclo -over ${MAX_COMPLEXITY} .
echo "errcheck ."
errcheck .
echo "go tool vet --shadow ./*.go"
go tool vet --shadow ./*.go
echo "varcheck ."
varcheck .
echo "defercheck ."
defercheck .

{'fraction_non_alphanumeric': 0.1073318216175359, 'fraction_numerical': 0.0015117157974300832, 'mean_word_length': 3.257234726688103, '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': '4961861', 'n_tokens_mistral': 460, 'n_tokens_neox': 446, 'n_words': 195}