<commit_before>#!/bin/sh

export PERL5LIB='lib'


graphs=`perl tests/integration/count_all_sources.pl`

prove -l tests/integration/config_rules/

perl tests_with_graphs.pl \
        --tests tests/integration/ratified \
        --graph-base 'govuk.app.redirector.ratified' \
        --report-template tests/integration/dashboard_template.html \
        --report-output dist/dashboard.html \
        --output-csv dist/integration_results.csv \
        --${DEPLOY_TO:-preview} \
        $graphs

if [ "$DEPLOY_TO" = 'production' ]; then
    perl tests/integration/graph_redirects_results.pl dist/integration_results.csv
    perl tests/integration/graph_open_sources.pl dist/integration_results.csv
fi<commit_msg>Debug on in run_integration_tests.<commit_after>#!/bin/sh

set -x

export PERL5LIB='lib'

echo DEPLOY_TO=$DEPLOY_TO

graphs=`perl tests/integration/count_all_sources.pl`

prove -l tests/integration/config_rules/

perl tests_with_graphs.pl \
        --tests tests/integration/ratified \
        --graph-base 'govuk.app.redirector.ratified' \
        --report-template tests/integration/dashboard_template.html \
        --report-output dist/dashboard.html \
        --output-csv dist/integration_results.csv \
        --${DEPLOY_TO:-preview} \
        $graphs

if [ "$DEPLOY_TO" = 'production' ]; then
    perl tests/integration/graph_redirects_results.pl dist/integration_results.csv
    perl tests/integration/graph_open_sources.pl dist/integration_results.csv
fi
{'fraction_non_alphanumeric': 0.11541072640868975, 'fraction_numerical': 0.0013577732518669382, 'mean_word_length': 3.2478386167146973, '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': '4193592', 'n_tokens_mistral': 503, 'n_tokens_neox': 460, 'n_words': 72}