<commit_before>package TestAPI::server_rec;

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

use Apache::Test;

sub handler {
    my $r = shift;

    my $s = $r->server;

    plan $r, tests => 17;

    ok $s;

    ok $s->process;

    ok $s->next || 1;

    ok $s->server_admin;

    ok $s->server_hostname;

    ok $s->port || 1;

    ok $s->error_fname;

    #error_log;

    ok $s->loglevel;

    ok $s->is_virtual || 1;

    #module_config

    #lookup_defaults

    ok $s->addrs;

    ok $s->timeout;

    #keep_alive_timeout
    #keep_alive_max
    #keep_alive

    ok $s->path || 1;

    ok $s->names || 1;

    ok $s->wild_names || 1;
<commit_msg>fix api/server_rec when running under t/TEST -ssl<commit_after>package TestAPI::server_rec;

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

use Apache::Test;

sub handler {
    my $r = shift;

    my $s = $r->server;

    plan $r, tests => 17;

    ok $s;

    ok $s->process;

    ok $s->next || 1;

    ok $s->server_admin;

    ok $s->server_hostname;

    ok $s->port || 1;

    ok $s->error_fname || 1; #vhost might not have its own (t/TEST -ssl)

    #error_log;

    ok $s->loglevel;

    ok $s->is_virtual || 1;

    #module_config

    #lookup_defaults

    ok $s->addrs;

    ok $s->timeout;

    #keep_alive_timeout
    #keep_alive_max
    #keep_alive

    ok $s->path || 1;

    ok $s->names || 1;

    ok $s->wild_names || 1;

{'fraction_non_alphanumeric': 0.1561822125813449, 'fraction_numerical': 0.012292118582791034, 'mean_word_length': 2.248826291079812, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '4206726', 'n_tokens_mistral': 594, 'n_tokens_neox': 534, 'n_words': 139}