<commit_before>pub fn nth(n: usize) -> Result<usize, String> {
    if n == 0 {
        Err("For some reason we're 1-indexing…".to_string())
    } else {
        let mut ps = vec![2];
        let mut q = 3;
        while ps.len() < n {
            if ps.iter().all(|p| q % p != 0) {
                ps.push(q);
            }
            q += 2;
        }
        ps.last().map(|&p| p).ok_or("OH NO".to_string())
    }
}<commit_msg>Even better rust<commit_after>pub fn nth(n: usize) -> Result<usize, String> {
    if n == 0 {
        Err("For some reason we're 1-indexing…".to_string())
    } else {
        let mut ps = vec![2];
        let mut q = 3;
        while ps.len() < n {
            if ps.iter().all(|p| q % p != 0) {
                ps.push(q);
            }
            q += 2;
        }
        ps.pop().ok_or("OH NO".to_string())
    }
}
{'fraction_non_alphanumeric': 0.17882352941176471, 'fraction_numerical': 0.01411764705882353, 'mean_word_length': 1.3971830985915492, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5280487', 'n_tokens_mistral': 316, 'n_tokens_neox': 300, 'n_words': 75}