<commit_before>function str_rot13 (str) {
    // http://kevin.vanzonneveld.net
    // +   original by: <NAME> (http://www.jsfromhell.com)
    // +   improved by: Ates Goral (http://magnetiq.com)
    // +   bugfixed by: <NAME>
    // +   improved by: <NAME> (http://blog.kukawski.pl)
    // *     example 1: str_rot13('<NAME>');
    // *     returns 1: 'Xriva ina Mbaariryq'
    // *     example 2: str_rot13('Xriva ina Mbaariryq');
    // *     returns 2: '<NAME>'
    
    return str.replace(/[a-z]/gi, function(s){ 
        return String.fromCharCode(s.charCodeAt(0)+(s.toLowerCase()<'n'?13:-13));
    });
}<commit_msg>Added a testcase to avoid regression<commit_after>function str_rot13 (str) {
    // http://kevin.vanzonneveld.net
    // +   original by: <NAME> (http://www.jsfromhell.com)
    // +   improved by: Ates Goral (http://magnetiq.com)
    // +   bugfixed by: <NAME>
    // +   improved by: <NAME> (http://blog.kukawski.pl)
    // *     example 1: str_rot13('<NAME>');
    // *     returns 1: 'Xriva ina Mbaariryq'
    // *     example 2: str_rot13('Xriva ina Mbaariryq');
    // *     returns 2: '<NAME>'
    // *     example 3: str_rot13(33);
    // *     returns 3: '33'
    
    return (str+'').replace(/[a-z]/gi, function(s){
        return String.fromCharCode(s.charCodeAt(0)+(s.toLowerCase()<'n'?13:-13));
    });
}
{'fraction_non_alphanumeric': 0.1974569932685116, 'fraction_numerical': 0.028421839940164548, 'mean_word_length': 2.336658354114713, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2950551', 'n_tokens_mistral': 536, 'n_tokens_neox': 512, 'n_words': 93}