<commit_before>package Giraffa::Test v0.0.1;

use 5.14.2;
use strict;
use warnings;

use Giraffa;
use Giraffa::Util;
use Giraffa::Test::Basic;

use Module::Find qw[useall];

my @all_test_modules;

INIT {
    @all_test_modules =
      grep { _policy_allowed( $_ ) }
      map { my $f = $_; $f =~ s|^Giraffa::Test::||; $f }
      grep { $_ ne 'Giraffa::Test::Basic' } useall( 'Giraffa::Test' );
}

sub modules {
    return @all_test_modules;
}

sub run_all_for {
    my ( $class, $zone ) = @_;
    my @results;

    info(
        MODULE_VERSION => {
            module  => 'Giraffa::Test::Basic',
            version => Giraffa::Test::Basic->version
        }
    );
    @results = Giraffa::Test::Basic->all( $zone );<commit_msg>Log used versions of our listed prerequisite modules.<commit_after>package Giraffa::Test v0.0.1;

use 5.14.2;
use strict;
use warnings;

use Giraffa;
use Giraffa::Util;
use Giraffa::Test::Basic;

use IO::Socket::INET6; # Lazy-loads, so make sure it's here for the version logging

use Module::Find qw[useall];

my @all_test_modules;

INIT {
    @all_test_modules =
      grep { _policy_allowed( $_ ) }
      map { my $f = $_; $f =~ s|^Giraffa::Test::||; $f }
      grep { $_ ne 'Giraffa::Test::Basic' } useall( 'Giraffa::Test' );
}

sub log_dependency_versions {
    info ( DEPENDENCY_VERSION => { name => 'Net::LDNS', version => $Net::LDNS::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'IO::Socket::INET6', version  => $IO::Socket::INET6::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'Moose', version  => $Moose::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'Module::Find', version  => $Module::Find::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'JSON', version  => $JSON::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'File::ShareDir', version  => $File::ShareDir::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'File::Slurp', version  => $File::Slurp::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'Net::IP', version  => $Net::IP::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'List::MoreUtils', version  => $List::MoreUtils::VERSION });
    info ( DEPENDENCY_VERSION => { name => 'RFC::RFC822::Address', version  => $RFC::RFC822::Address::VERSION });
}

sub modules {
    return @all_test_modules;
}

sub run_all_for {
    my ( $class, $zone ) = @_;
    my @results;

    info(
        MODULE_VERSION => {
            module  => 'Giraffa::Test::Basic',
            version => Giraffa::Test::Basic->version
        }
    );
    log_dependency_versions();
    @results = Giraffa::Test::Basic->all( $zone );
{'fraction_non_alphanumeric': 0.18122605363984676, 'fraction_numerical': 0.008812260536398468, 'mean_word_length': 3.5408695652173914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 43, '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': '744649', 'n_tokens_mistral': 939, 'n_tokens_neox': 935, 'n_words': 192}