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

set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v browser); do
    CGO_ENABLED=0 go test -v -coverprofile=profile.out -covermode=atomic "$d"
    if [ -f profile.out ]; then
        cat profile.out >> coverage.txt
        rm profile.out
    fi
done
<commit_msg>Generate coverage across all sub-dirs (#7416)<commit_after>#!/usr/bin/env bash

set -e


CGO_ENABLED=0 go test -v -coverprofile=coverage.txt -covermode=atomic ./...

{'fraction_non_alphanumeric': 0.14465408805031446, 'fraction_numerical': 0.012578616352201259, 'mean_word_length': 2.8548387096774195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3799493', 'n_tokens_mistral': 175, 'n_tokens_neox': 168, 'n_words': 48}