<commit_before>use v6;
use Test;

plan 41;

diag "{elapsed} starting tests";
my $elapsed;
sub elapsed {
    state $last = time;
    LEAVE $last = time;
    return "[{ $elapsed = time - $last }s]";
}
my $toolong = 10;

# L<S32::IO/IO::Socket::INET>

# Testing socket must solve 2 problems: find an unused port to bind to,
# and fork a client process before the server is blocked in accept().

my $host = '127.0.0.1';   # or 'localhost' may be friendlier

# To find an free port, list the ports currently in use.
my ( @ports, $netstat_cmd, $netstat_pat, $received, $expected );
given $*OS {<commit_msg>Increase timeout time to 30 seconds to prevent false positives<commit_after>use v6;
use Test;

plan 41;

diag "{elapsed} starting tests";
my $elapsed;
sub elapsed {
    state $last = time;
    LEAVE $last = time;
    return "[{ $elapsed = time - $last }s]";
}
my $toolong = 30;

# L<S32::IO/IO::Socket::INET>

# Testing socket must solve 2 problems: find an unused port to bind to,
# and fork a client process before the server is blocked in accept().

my $host = '127.0.0.1';   # or 'localhost' may be friendlier

# To find an free port, list the ports currently in use.
my ( @ports, $netstat_cmd, $netstat_pat, $received, $expected );
given $*OS {
{'fraction_non_alphanumeric': 0.1297037630104083, 'fraction_numerical': 0.02401921537229784, 'mean_word_length': 3.8449612403100777, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '80902', 'n_tokens_mistral': 455, 'n_tokens_neox': 422, 'n_words': 171}