<commit_before>function displayTemperature(temperature) {
    var displayTemperature = roundToOneDecimalPlace(temperature);
    document.getElementById("currentTemperature").innerHTML = displayTemperature + "&deg;C";
    var ranges = [0,1,4,7,10,13,16,19,22,25];
    var i = 0;
    while(i < ranges.length) {
        if(displayTemperature < ranges[i]) break;
        ++i;
    }
    var tempClass = ranges[Math.max(i-1, 0)];
    document.getElementById("temperaturetile").title = tempClass;
}

function displayTodaysProgramme(programme) {
    var comfortPeriodsPanel = document.getElementById("comfortPeriods");
    var innerHtml = "";
    programme.todaysComfortPeriods.forEach(function(comfortPeriod) {
        innerHtml += "<span class='fa fa-sun-o'></span>&nbsp;" + comfortPeriod.startTime + " &ndash; " + comfortPeriod.endTime + "<br />";
    });
    comfortPeriodsPanel.innerHTML = innerHtml;
}

function displayBattery(batteryVoltage) {
    $("#batteryLevelEmpty").addClass('hidden');
    $("#batteryLevelQuarter").addClass('hidden');
    $("#batteryLevelHalf").addClass('hidden');
    $("#batteryLevelThreeQuarters").addClass('hidden');
    $("#batteryLevelFull").addClass('hidden');
    if(batteryVoltage < 2.00) {
        $("#batteryLevelEmpty").removeClass('hidden');
        document.getElementById("batterytile").title = "Empty";
    } else if (batteryVoltage < 2.33) {
        $("#batteryLevelQuarter").removeClass('hidden');
        document.getElementById("batterytile").title = "Quarter";
    } else if (batteryVoltage < 2.66) {
        $("#batteryLevelHalf").removeClass('hidden');
        document.getElementById("batterytile").title = "Half";
    } else if (batteryVoltage < 2.99) {
        $("#batteryLevelThreeQuarters").removeClass('hidden');
        document.getElementById("batterytile").title = "ThreeQuarter";
    } else { // batteryVoltage >= 3
        $("#batteryLevelFull").removeClass('hidden');<commit_msg>Split icon and text creation<commit_after>function displayTemperature(temperature) {
    var displayTemperature = roundToOneDecimalPlace(temperature);
    document.getElementById("currentTemperature").innerHTML = displayTemperature + "&deg;C";
    var ranges = [0,1,4,7,10,13,16,19,22,25];
    var i = 0;
    while(i < ranges.length) {
        if(displayTemperature < ranges[i]) break;
        ++i;
    }
    var tempClass = ranges[Math.max(i-1, 0)];
    document.getElementById("temperaturetile").title = tempClass;
}

function displayTodaysProgramme(programme) {
    var comfortPeriodsPanel = document.getElementById("comfortPeriods");
    var innerHtml = "";
    programme.todaysComfortPeriods.forEach(function(comfortPeriod) {
        innerHtml += "<span class='fa fa-sun-o'></span>&nbsp;";
        innerHtml += comfortPeriod.startTime + " &ndash; " + comfortPeriod.endTime + "<br />";
    });
    comfortPeriodsPanel.innerHTML = innerHtml;
}

function displayBattery(batteryVoltage) {
    $("#batteryLevelEmpty").addClass('hidden');
    $("#batteryLevelQuarter").addClass('hidden');
    $("#batteryLevelHalf").addClass('hidden');
    $("#batteryLevelThreeQuarters").addClass('hidden');
    $("#batteryLevelFull").addClass('hidden');
    if(batteryVoltage < 2.00) {
        $("#batteryLevelEmpty").removeClass('hidden');
        document.getElementById("batterytile").title = "Empty";
    } else if (batteryVoltage < 2.33) {
        $("#batteryLevelQuarter").removeClass('hidden');
        document.getElementById("batterytile").title = "Quarter";
    } else if (batteryVoltage < 2.66) {
        $("#batteryLevelHalf").removeClass('hidden');
        document.getElementById("batterytile").title = "Half";
    } else if (batteryVoltage < 2.99) {
        $("#batteryLevelThreeQuarters").removeClass('hidden');
        document.getElementById("batterytile").title = "ThreeQuarter";
    } else { // batteryVoltage >= 3
        $("#batteryLevelFull").removeClass('hidden');
{'fraction_non_alphanumeric': 0.16525965720133026, 'fraction_numerical': 0.016372473778459965, 'mean_word_length': 4.3269754768392374, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 11, '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': '2099665', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1155, 'n_words': 166}