<commit_before>#!/bin/bash

# Load testing framework
. ./testlib.sh

# Test setup
. ./test_setup.sh

TEST_SUITE_NAME="Test sshd_config template creation"

# Number of tests
TOTAL_TESTS=3

$TEMPLATE_MAKER -p $OF_PREFIX-kv-1.txt -f $OF_PREFIX-1.in \
    -o $OF_PREFIX-1.out -a $OF_PREFIX-2.out
assert_ran_ok "Basic template creation ran ok"

assert "Template file output" "diff -q $OF_PREFIX-1.out $OF_PREFIX-1.cmp"
assert "Attributes file output" "diff -q $OF_PREFIX-2.out $OF_PREFIX-2.cmp"

# Print results
report<commit_msg>Don't use -q on diff, output goes to a log anyway<commit_after>#!/bin/bash

# Load testing framework
. ./testlib.sh

# Test setup
. ./test_setup.sh

TEST_SUITE_NAME="Test sshd_config template creation"

# Number of tests
TOTAL_TESTS=3

$TEMPLATE_MAKER -p $OF_PREFIX-kv-1.txt -f $OF_PREFIX-1.in \
    -o $OF_PREFIX-1.out -a $OF_PREFIX-2.out
assert_ran_ok "Basic template creation ran ok"

assert "Template file output" "diff -u $OF_PREFIX-1.out $OF_PREFIX-1.cmp"
assert "Attributes file output" "diff -u $OF_PREFIX-2.out $OF_PREFIX-2.cmp"

# Print results
report
{'fraction_non_alphanumeric': 0.12430939226519337, 'fraction_numerical': 0.016574585635359115, 'mean_word_length': 4.079439252336448, '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': '5652603', 'n_tokens_mistral': 427, 'n_tokens_neox': 417, 'n_words': 109}