<commit_before>use template::RdxSortTemplate;

// same as u32
impl RdxSortTemplate for char {
    fn cfg_nbuckets() -> usize {
        16
    }

    fn cfg_nrounds() -> usize {
        8
    }

    fn get_bucket(&self, round: usize) -> usize {
        let shift = round << 2;
        (((*self as u32) >> shift) & 15u32) as usize
    }
}<commit_msg>make char using the u32 implementation<commit_after>use template::RdxSortTemplate;

impl RdxSortTemplate for char {
    fn cfg_nbuckets() -> usize {
        <u32 as RdxSortTemplate>::cfg_nbuckets()
    }

    fn cfg_nrounds() -> usize {
        <u32 as RdxSortTemplate>::cfg_nrounds()
    }

    fn get_bucket(&self, round: usize) -> usize {
        (*self as u32).get_bucket(round)
    }
}
{'fraction_non_alphanumeric': 0.12466124661246612, 'fraction_numerical': 0.02710027100271003, 'mean_word_length': 2.535885167464115, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1616934', 'n_tokens_mistral': 264, 'n_tokens_neox': 253, 'n_words': 64}