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

echo "Install dependencies"

composer install --no-interaction --no-scripts --prefer-dist --classmap-authoritative || exit $?

echo "Warming up dependencies"
composer run-script travis-build --no-interaction || exit $?

echo "building frontend"
yarn
yarn build<commit_msg>Provide clients_secrets for tests<commit_after>#!/usr/bin/env bash

echo "Install dependencies"
composer install --no-interaction --no-scripts --prefer-dist --classmap-authoritative || exit $?

echo "Warming up dependencies"
composer run-script travis-build --no-interaction || exit $?

echo "building frontend"
cat << EOF >app/config/client_secrets.json
{
    "key": "<KEY>",
    "secret_key": "<KEY>",
    "action": "contact",
    "threshold": 0.5
}
EOF
yarn
yarn build
{'fraction_non_alphanumeric': 0.14377406931964057, 'fraction_numerical': 0.0025673940949935813, 'mean_word_length': 4.342465753424658, 'pattern_counts': {'":': 4, '<': 7, '<?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': '6493725', 'n_tokens_mistral': 262, 'n_tokens_neox': 252, 'n_words': 68}