<commit_before>class Perl6::Metamodel::ContainerDescriptor {
    has     $!of;
    has int $!rw;
    has str $!name;
    
    method of() { $!of }
    method rw() { $!rw }
    method name() { $!name }
    
    method set_of($of) { $!of := $of }
    method set_rw($rw) { $!rw := $rw }
    
    method is_generic() {
        $!of.HOW.is_generic($!of)
    }
    
    method instantiate_generic($type_environment) {
        my $ins := $!of.HOW.instantiate_generic($!of, $type_environment);
        self.new(:of($ins), :rw($!rw), :name($!name))
    }
}<commit_msg>Little optimization and bugfix all in one.<commit_after>class Perl6::Metamodel::ContainerDescriptor {
    has     $!of;
    has int $!rw;
    has str $!name;
    
    method of() { $!of }
    method rw() { $!rw }
    method name() { $!name }
    
    method set_of($of) { $!of := $of }
    method set_rw($rw) { $!rw := $rw }
    
    method is_generic() {
        $!of.HOW.is_generic($!of)
    }
    
    method instantiate_generic($type_environment) {
        my $ins_of := $!of.HOW.instantiate_generic($!of, $type_environment);
        my $ins := pir::repr_clone__PP(self);
        pir::setattribute__0PPsP($ins, $?CLASS, '$!of', $ins_of)
    }
}
{'fraction_non_alphanumeric': 0.17978458989229495, 'fraction_numerical': 0.0024855012427506215, 'mean_word_length': 2.5952380952380953, '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': '2482546', 'n_tokens_mistral': 455, 'n_tokens_neox': 444, 'n_words': 88}