<commit_before>function strip_tags( str ){
    // http://kevin.vanzonneveld.net
    // +   original by: <NAME> (http://kevin.vanzonneveld.net)
    // *     example 1: strip_tags('Kevin <br />van <i>Zonneveld</i>');
    // *     returns 1: '<NAME>'

    return str.replace(/<\/?[^>]+>/gi, '');
}<commit_msg>Allowed Tags support for strip_tags<commit_after>function strip_tags( str ){
    // http://kevin.vanzonneveld.net
    // +   original by: <NAME> (http://kevin.vanzonneveld.net)
    // *     example 1: strip_tags('Kevin <br />van <i>Zonneveld</i>');
    // *     returns 1: '<NAME>'

    return str.replace(/<\/?[^(>|i)]+>/gi, '');
}
{'fraction_non_alphanumeric': 0.22727272727272727, 'fraction_numerical': 0.006269592476489028, 'mean_word_length': 2.7810650887573964, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '4915273', 'n_tokens_mistral': 250, 'n_tokens_neox': 237, 'n_words': 42}