<commit_before>#! parrot-nqp

MAIN();

sub MAIN () {
    # Load testing tools
    pir::load_language('parrot');
    pir::compreg__PS('parrot').import('Test::More');

    # Run all component loading tests
    run_tests();
}

sub run_tests () {
    plan(11);

    test_load_pbcs();
}

sub test_load_pbcs() {
    # Add source tree to Parrot's library loading path
    pir::getinterp__P()[7][1].unshift('src/lib/');

    my @pbcs := <
                  config.pbc
		  dumper.pbc
		  Config/JSON.pbc
		  Getopt/Obj.pbc
		  P6object.pbc
		  P6Regex.pbc
		  Plumage/NQPUtil.pbc
		  Plumage/Util.pbc
		  Plumage/Metadata.pbc
		  Plumage/Dependencies.pbc
		  Plumage/Project.pbc
		>;

    for @pbcs -> $pbc {
        pir::load_bytecode($pbc);

        ok(1, "success loading '$pbc'");
	CATCH {
	   ok(0, "FAILED TO LOAD '$pbc'");
        }
    }
}
<commit_msg>Update magic constants that were changed on parrot.<commit_after>#! parrot-nqp

MAIN();

sub MAIN () {
    # Load testing tools
    pir::load_language('parrot');
    pir::compreg__PS('parrot').import('Test::More');

    # Run all component loading tests
    run_tests();
}

sub run_tests () {
    plan(11);

    test_load_pbcs();
}

sub test_load_pbcs() {
    # Add source tree to Parrot's library loading path
    pir::getinterp__P()[9][1].unshift('src/lib/');

    my @pbcs := <
                  config.pbc
		  dumper.pbc
		  Config/JSON.pbc
		  Getopt/Obj.pbc
		  P6object.pbc
		  P6Regex.pbc
		  Plumage/NQPUtil.pbc
		  Plumage/Util.pbc
		  Plumage/Metadata.pbc
		  Plumage/Dependencies.pbc
		  Plumage/Project.pbc
		>;

    for @pbcs -> $pbc {
        pir::load_bytecode($pbc);

        ok(1, "success loading '$pbc'");
	CATCH {
	   ok(0, "FAILED TO LOAD '$pbc'");
        }
    }
}

{'fraction_non_alphanumeric': 0.14655172413793102, 'fraction_numerical': 0.009195402298850575, 'mean_word_length': 2.4612326043737576, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6368401', 'n_tokens_mistral': 721, 'n_tokens_neox': 660, 'n_words': 123}