<commit_before>function html_entity_decode( string, quote_style ) {
    // http://kevin.vanzonneveld.net
    // +   original by: john (http://www.jd-tech.net)
    // +      input by: ger
    // +   improved by: <NAME> (http://kevin.vanzonneveld.net)
    // +    revised by: <NAME> (http://kevin.vanzonneveld.net)
    // +   bugfixed by: <NAME>
    // +   improved by: <NAME>
    // +    revised by: <NAME> (http://kevin.vanzonneveld.net)
    // -    depends on: get_html_translation_table
    // *     example 1: html_entity_decode('Kevin &amp; <NAME>');
    // *     returns 1: '<NAME>'

    var histogram = {}, symbol = '', tmp_str = '', i = 0;
    tmp_str = string.toString();
    
    if (false === (histogram = get_html_translation_table('HTML_ENTITIES', quote_style))) {
        return false;
    }
    
    for (symbol in histogram) {
        entity = histogram[symbol];
        tmp_str = tmp_str.split(entity).join(symbol);
    }
    
    return tmp_str;<commit_msg>Established html_entity_decode has the same bug as http://bugs.php.net/bug.php?id=25707<commit_after>function html_entity_decode( string, quote_style ) {
    // http://kevin.vanzonneveld.net
    // +   original by: john (http://www.jd-tech.net)
    // +      input by: ger
    // +   improved by: <NAME> (http://kevin.vanzonneveld.net)
    // +    revised by: <NAME> (http://kevin.vanzonneveld.net)
    // +   bugfixed by: <NAME>
    // +   improved by: <NAME>
    // +    revised by: <NAME>d (http://kevin.vanzonneveld.net)
    // %        note 1: Has this issue: http://bugs.php.net/bug.php?id=25707, see example 2
    // -    depends on: get_html_translation_table
    // *     example 1: html_entity_decode('Kevin &amp; <NAME>');
    // *     returns 1: 'Kevin & <NAME>'
    // *     example 2: html_entity_decode('&amp;lt;');
    // *     returns 2: '&lt;'

    var histogram = {}, symbol = '', tmp_str = '', i = 0;
    tmp_str = string.toString();
    
    if (false === (histogram = get_html_translation_table('HTML_ENTITIES', quote_style))) {
        return false;
    }
    
    for (symbol in histogram) {
        entity = histogram[symbol];
        tmp_str = tmp_str.split(entity).join(symbol);
    }
    
    return tmp_str;
{'fraction_non_alphanumeric': 0.16334841628959276, 'fraction_numerical': 0.00904977375565611, 'mean_word_length': 2.3398791540785497, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1674996', 'n_tokens_mistral': 789, 'n_tokens_neox': 764, 'n_words': 154}