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

set -e
touch coverage.txt

# test fuzz inputs
go test -tags gofuzz -run TestFuzz -v .

# quick-test without -race
go test ./...

# test with "debug" tag
go test -tags debug ./...

# test concurrency
go test -race -cpu=1,2,4 -run TestClient_DoConcurrent

for d in $(go list ./... | grep -v vendor); do
    go test -race -coverprofile=profile.out -covermode=atomic "$d"
    if [ -f profile.out ]; then
        cat profile.out >> coverage.txt
        rm profile.out
    fi
done<commit_msg>Replace condition with double brackets<commit_after>#!/usr/bin/env bash

set -e
touch coverage.txt

# test fuzz inputs
go test -tags gofuzz -run TestFuzz -v .

# quick-test without -race
go test ./...

# test with "debug" tag
go test -tags debug ./...

# test concurrency
go test -race -cpu=1,2,4 -run TestClient_DoConcurrent

for d in $(go list ./... | grep -v vendor); do
    go test -race -coverprofile=profile.out -covermode=atomic "$d"
    if [[ -f profile.out ]]; then
        cat profile.out >> coverage.txt
        rm profile.out
    fi
done
{'fraction_non_alphanumeric': 0.13071895424836602, 'fraction_numerical': 0.0056022408963585435, 'mean_word_length': 2.5614617940199333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3563449', 'n_tokens_mistral': 374, 'n_tokens_neox': 359, 'n_words': 129}