<commit_before>// nothing here yet

function update_kois(data) {
    $.each(data, function(koi) {
        $('#koi').append($('<option>', {value : data[koi].id}).text(data[koi].name));
    });
}

function update_scales(data) {
    $.each(data, function(s) {
        $('#scale').append($('<option>', {value : data[s]}).text(data[s]));
    });

    var prekic = $('#prescale').val()
    if (prescale != "None") {
        $('#scale').val(prekic);
    }
}

function update_img() {
    var kic = $('#koi').val();

    $('#plot').attr('src', '/img/' + kic);

}

function play() {<commit_msg>added some redundancy to the download logic<commit_after>// nothing here yet

function update_kois(data) {
    $.each(data, function(koi) {
        $('#koi').append($('<option>', {value : data[koi].id}).text(data[koi].name));
    });
    update_share();
}

function update_scales(data) {
    $.each(data, function(s) {
        $('#scale').append($('<option>', {value : data[s]}).text(data[s]));
    });

    var prekic = $('#prescale').val()
    if (prescale != "None") {
        $('#scale').val(prekic);
    }
    update_share();
}

function update_img() {
    var kic = $('#koi').val();

    $('#plot').attr('src', '/img/' + kic);

}

function play() {
{'fraction_non_alphanumeric': 0.2552504038772213, 'fraction_numerical': 0.0, 'mean_word_length': 3.28719723183391, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '465822', 'n_tokens_mistral': 441, 'n_tokens_neox': 440, 'n_words': 78}