<commit_before>multi sub INITIALIZE_DYNAMIC('@*ARGS') {
    my @ARGS;
    my Mu $argiter := nqp::getcurhllsym('$!ARGITER');
    @ARGS.push(nqp::p6box_s(nqp::shift($argiter))) while $argiter;
    PROCESS::<@ARGS> := @ARGS;
}
multi sub INITIALIZE_DYNAMIC('$*ARGFILES') {
    PROCESS::<$ARGFILES> = IO::CatHandle.new(@*ARGS ?? @*ARGS !! $*IN).open;
}

# vim: ft=perl6 expandtab sw=4<commit_msg>Don't bother with IO::CatHandle if only got $*IN<commit_after>multi sub INITIALIZE_DYNAMIC('@*ARGS') {
    my @ARGS;
    my Mu $argiter := nqp::getcurhllsym('$!ARGITER');
    @ARGS.push(nqp::p6box_s(nqp::shift($argiter))) while $argiter;
    PROCESS::<@ARGS> := @ARGS;
}
multi sub INITIALIZE_DYNAMIC('$*ARGFILES') {
    PROCESS::<$ARGFILES> = @*ARGS ?? IO::CatHandle.new(@*ARGS).open !! $*IN;
}

# vim: ft=perl6 expandtab sw=4
{'fraction_non_alphanumeric': 0.211750305997552, 'fraction_numerical': 0.0073439412484700125, 'mean_word_length': 5.596774193548387, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2931208', 'n_tokens_mistral': 349, 'n_tokens_neox': 345, 'n_words': 56}