<commit_before>'use strict';

function clear_all(){
    if(window.confirm('Clear?')){
        clear_bases();
    }
}

function clear_bases(except_id){
    except_id = except_id || -1;

    let id = 0;
    let loop_counter = 34;
    do{
        id = loop_counter + 2;

        if(id != except_id){
            document.getElementById(id).value = '';
        }
    }while(loop_counter--);
}

function save(){
    window.prompt(
      'URL:',
      window.location.protocol
        + '//' + window.location.host
        + window.location.pathname
        + '?' + document.getElementById(36).value
    );
}

function update_bases(base){
    let base_value = document.getElementById(base).value;
    if(base_value.length <= 0){
        clear_bases();
    }

    let id = 0;
    let loop_counter = 34;
    do{
        id = loop_counter + 2;
        let value = '';

        if(base != id){
            value = Number.parseInt(
              base_value,
              base
            ).toString(id);

            if(value == 'NaN'){
                value = '';
            }

            document.getElementById(id).value = value;
        }
    }while(loop_counter--);
}<commit_msg>used isNaN() in NaN check<commit_after>'use strict';

function clear_all(){
    if(window.confirm('Clear?')){
        clear_bases();
    }
}

function clear_bases(except_id){
    except_id = except_id || -1;

    let id = 0;
    let loop_counter = 34;
    do{
        id = loop_counter + 2;

        if(id != except_id){
            document.getElementById(id).value = '';
        }
    }while(loop_counter--);
}

function save(){
    window.prompt(
      'URL:',
      window.location.protocol
        + '//' + window.location.host
        + window.location.pathname
        + '?' + document.getElementById(36).value
    );
}

function update_bases(base){
    let base_value = document.getElementById(base).value;
    if(base_value.length <= 0){
        clear_bases();
    }

    let id = 0;
    let loop_counter = 34;
    do{
        id = loop_counter + 2;
        let value = '';

        if(base != id){
            value = Number.parseInt(
              base_value,
              base
            ).toString(id);

            if(isNaN(value)){
                value = '';
            }

            document.getElementById(id).value = value;
        }
    }while(loop_counter--);
}
{'fraction_non_alphanumeric': 0.1397121083827265, 'fraction_numerical': 0.010160880609652836, 'mean_word_length': 1.7444831591173056, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7163851', 'n_tokens_mistral': 753, 'n_tokens_neox': 718, 'n_words': 135}