<commit_before>use strict;
use warnings FATAL => 'all';

use Test;
use Apache::TestRequest ();

my @test_strings = qw(hello world);

plan tests => 1 + @test_strings;

my $socket = Apache::TestRequest::vhost_socket('TestProtocol::echo');

ok $socket;

for (@test_strings) {
    print $socket "$_\n";
    chomp(my $reply = <$socket>);
    print "REPLY=`$reply'\n";
    ok $reply eq $_;
}
<commit_msg>improve the verbose testing<commit_after>use strict;
use warnings FATAL => 'all';

use Test;
use Apache::TestRequest ();

my @test_strings = qw(hello world);

plan tests => 1 + @test_strings;

my $socket = Apache::TestRequest::vhost_socket('TestProtocol::echo');

ok $socket;

for (@test_strings) {
    print "SEND ='$_'\n";
    print $socket "$_\n";
    chomp(my $reply = <$socket>);
    print "REPLY='$reply'\n";
    ok $reply eq $_;
}

{'fraction_non_alphanumeric': 0.17703349282296652, 'fraction_numerical': 0.0023923444976076554, 'mean_word_length': 4.506578947368421, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3259654', 'n_tokens_mistral': 304, 'n_tokens_neox': 297, 'n_words': 78}