<commit_before>#!/bin/sh

set -eu

glob=$*
if [ -z "$glob" ]; then
  glob="--recursive test/*.js test/db/*.js"
fi

./scripts/mocha-coverage.js -R spec $glob --timeout 10000
grunt lint copyright<commit_msg>fix(tests): double before hook timeout for tests on slow machines<commit_after>#!/bin/sh

set -eu

glob=$*
if [ -z "$glob" ]; then
  glob="--recursive test/*.js test/db/*.js"
fi

./scripts/mocha-coverage.js -R spec $glob --timeout 20000
grunt lint copyright
{'fraction_non_alphanumeric': 0.17532467532467533, 'fraction_numerical': 0.021645021645021644, 'mean_word_length': 3.5392156862745097, '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': '197477', 'n_tokens_mistral': 187, 'n_tokens_neox': 171, 'n_words': 50}