<commit_before>use Test;
plan 6;

#= simple case
class Simple {
}

is Simple.WHY, 'simple case';

#= giraffe
class Outer {
    #= zebra
    class Inner {
    }
}

is Outer.WHY, 'giraffe';
is Outer::Inner.WHY, 'zebra';

#= a module
module foo {
    #= a package
    package bar {
        #= and a class
        class baz {
        }
    }
}

# XXX Those should be proper .WHY's, once it's implemented
is foo.HOW.docs,      'a module';
is foo::bar.HOW.docs, 'a package';
is foo::bar::baz.WHY, 'and a class';
<commit_msg>Use .WHY on packages and modules properly, jnthn++<commit_after>use Test;
plan 6;

#= simple case
class Simple {
}

is Simple.WHY, 'simple case';

#= giraffe
class Outer {
    #= zebra
    class Inner {
    }
}

is Outer.WHY, 'giraffe';
is Outer::Inner.WHY, 'zebra';

#= a module
module foo {
    #= a package
    package bar {
        #= and a class
        class baz {
        }
    }
}

is foo.WHY,           'a module';
is foo::bar.WHY,      'a package';
is foo::bar::baz.WHY, 'and a class';

{'fraction_non_alphanumeric': 0.14299802761341224, 'fraction_numerical': 0.0019723865877712033, 'mean_word_length': 2.4060402684563758, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5120721', 'n_tokens_mistral': 404, 'n_tokens_neox': 389, 'n_words': 116}