<commit_before>#! /usr/bin/env bash
set -x

pushd "$(dirname "$0")" > /dev/null
jscover="node_modules/jscover/bin/jscover"
mocha="node_modules/mocha/bin/mocha"

function cover_folder() {
  "$jscover" "packages/${1}/server"{,-cov}
  "$mocha"   "packages/${1}/server-cov/"* -R html-cov > "coverage_${1}.html"
}

for folder in packages/*; do
  cover_folder "$(basename "$folder")"
done

popd > /dev/null<commit_msg>fix tiny issue<commit_after>#! /usr/bin/env bash
set -x

pushd "$(dirname "$0")" > /dev/null
jscover="node_modules/jscover/bin/jscover"
mocha="node_modules/mocha/bin/mocha"

function cover_folder() {
  "$jscover" "packages/${1}/server"{,-cov}
  "$mocha"   "packages/${1}/server-cov/"* -R html-cov > "coverage_${1}.html"
}

for folder in theme system access users articles; do
  cover_folder "$(basename "$folder")"
done

popd > /dev/null
{'fraction_non_alphanumeric': 0.20023557126030625, 'fraction_numerical': 0.009422850412249705, 'mean_word_length': 4.666666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6012507', 'n_tokens_mistral': 346, 'n_tokens_neox': 339, 'n_words': 67}