<commit_before>package APR;

use DynaLoader ();
our $VERSION = '0.01';
our @ISA = qw(DynaLoader);

#dlopen("APR.so", RTDL_GLOBAL); so we only need to link libapr.a once
sub dl_load_flags { 0x01 }

__PACKAGE__->bootstrap($VERSION);

1;
__END__<commit_msg>only bootstrap outside of mod_perl<commit_after>package APR;

use DynaLoader ();
our $VERSION = '0.01';
our @ISA = qw(DynaLoader);

#dlopen("APR.so", RTDL_GLOBAL); so we only need to link libapr.a once
sub dl_load_flags { 0x01 }

unless (defined &APR::XSLoader::BOOTSTRAP) {
    __PACKAGE__->bootstrap($VERSION);
    *APR::XSLoader::BOOTSTRAP = sub () { 1 };
}

1;
__END__
{'fraction_non_alphanumeric': 0.14696485623003194, 'fraction_numerical': 0.023961661341853034, 'mean_word_length': 5.207920792079208, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1022975', 'n_tokens_mistral': 260, 'n_tokens_neox': 249, 'n_words': 61}