<commit_before>class Encoding::Builtin does Encoding {
    has Str $.name;
    has @.alternative-names;

    method new() {
        die "Do not create instnaces of this class directly; instead use Encoding::Registry"
    }

    method alternative-names() { @!alternative-names }

    method decoder(--> Encoding::Decoder) {
        die "NYI";
    }

    method encoder(--> Encoding::Encoder) {
        die "NYI"
    }
}

Encoding::Registry.register(Encoding::Builtin.bless(
    :name<utf8>, :alternative-names<utf-8>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<ascii>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<iso-8859-1>, :alternative-names<
        iso_8859-1:1987 iso_8859-1 iso-ir-100 latin1 latin-1 csisolatin1
        l1 ibm819 cp819
    >
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<windows-1252>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<utf16>, :alternative-names<utf-16>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<utf32>, :alternative-names<utf-32>
));<commit_msg>Register utf8-c8 encoding.<commit_after>class Encoding::Builtin does Encoding {
    has Str $.name;
    has @.alternative-names;

    method new() {
        die "Do not create instnaces of this class directly; instead use Encoding::Registry"
    }

    method alternative-names() { @!alternative-names }

    method decoder(--> Encoding::Decoder) {
        die "NYI";
    }

    method encoder(--> Encoding::Encoder) {
        die "NYI"
    }
}

Encoding::Registry.register(Encoding::Builtin.bless(
    :name<utf8>, :alternative-names<utf-8>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<utf8-c8>, :alternative-names<utf-8-c8>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<ascii>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<iso-8859-1>, :alternative-names<
        iso_8859-1:1987 iso_8859-1 iso-ir-100 latin1 latin-1 csisolatin1
        l1 ibm819 cp819
    >
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<windows-1252>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<utf16>, :alternative-names<utf-16>
));
Encoding::Registry.register(Encoding::Builtin.bless(
    :name<utf32>, :alternative-names<utf-32>
));
{'fraction_non_alphanumeric': 0.1577806675335934, 'fraction_numerical': 0.04247941048981361, 'mean_word_length': 3.9848812095032398, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 29, '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': '7561665', 'n_tokens_mistral': 838, 'n_tokens_neox': 773, 'n_words': 127}