<commit_before>my class Pair does Associative {
    has $.key;
    has $.value is rw;

    multi method new($key, Mu \value) {
        nqp::create(self).BUILD($key, value)
    }
    multi method new(:$key, Mu :$value) {
        nqp::create(self).BUILD($key, $value)
    }
    method BUILD($!key, Mu \value) {
        nqp::bindattr(self, Pair, '$!value', value);
        self
    }

    multi method ACCEPTS(Pair:D: %h) {
        $.value.ACCEPTS(%h{$.key});
    }<commit_msg>Pair should allow Nil keys and values<commit_after>my class Pair does Associative {
    has $.key is default(Nil);
    has $.value is rw is default(Nil);

    multi method new(Mu $key, Mu \value) {
        nqp::create(self).BUILD($key, value)
    }
    multi method new(Mu :$key, Mu :$value) {
        nqp::create(self).BUILD($key, $value)
    }
    method BUILD(Mu $!key, Mu \value) {
        nqp::bindattr(self, Pair, '$!value', value);
        self
    }

    multi method ACCEPTS(Pair:D: %h) {
        $.value.ACCEPTS(%h{$.key});
    }
{'fraction_non_alphanumeric': 0.16781836130306022, 'fraction_numerical': 0.0, 'mean_word_length': 2.496551724137931, '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': '1826229', 'n_tokens_mistral': 362, 'n_tokens_neox': 353, 'n_words': 91}