<commit_before>$(document).ready(function() {
    getWeather(); //Get the initial weather.
    setInterval(getWeather, 600000); //Update the weather every 10 minutes.
});

// var d = new Date();
// document.getElementById("currentDate").innerHTML = d;
// 22721202

var newDate = new Date();
var formattedDate = newDate.format("dddd, mmmm dS");

function getWeather() {
    $.simpleWeather({
        woeid: '2452078', 
        location: '',
        unit: 'c',
        success: function(weather) {
            html = '<div class="weatherimage"><img src="' + weather.image + '"> </div>'
            html += '<div class="currentweather"><h2>' + weather.temp + '&deg;' + weather.units.temp + '</h2> </div>';
            html += '<div class="currentDate">' + formattedDate + '</div>';
            
            //       html += '<ul><li>'+weather.city+', '+weather.region+'</li>';
            //       html += '<li class="currently">'+weather.currently+'</li></div>';

            html += '<div class="forecast">'
            for (var i = 0; i < 4; i++) {
                html += '<img src="' + weather.forecast[i].thumbnail + '"> <br>' + weather.forecast[i].day + ' - ' + weather.forecast[i].text + '<br> High: ' + weather.forecast[i].high + '&deg;C <br> Low: ' + weather.forecast[i].low + '&deg;C <br>';
            }
            html += '</div>'

            $("#weather").html(html);
        },
        error: function(error) {
            $("#weather").html('<p>' + error + '</p>');
        }
    });
}<commit_msg>Update index.js<commit_after>$(document).ready(function() {
    getWeather(); //Get the initial weather.
    setInterval(getWeather, 20000); //Update the weather every 10 minutes.
});

// var d = new Date();
// document.getElementById("currentDate").innerHTML = d;
// 22721202

var newDate = new Date();
var formattedDate = newDate.format("dddd, mmmm dS");

function getWeather() {
    $.simpleWeather({
        woeid: '22721202', 
        location: '',
        unit: 'c',
        success: function(weather) {
            html = '<div class="weatherimage"><img src="' + weather.image + '"> </div>'
            html += '<div class="currentweather"><h2>' + weather.temp + '&deg;' + weather.units.temp + '</h2> </div>';
            html += '<div class="currentDate">' + formattedDate + '</div>';
            
            //       html += '<ul><li>'+weather.city+', '+weather.region+'</li>';
            //       html += '<li class="currently">'+weather.currently+'</li></div>';

            html += '<div class="forecast">'
            for (var i = 0; i < 4; i++) {
                html += '<img src="' + weather.forecast[i].thumbnail + '"> <br>' + weather.forecast[i].day + ' - ' + weather.forecast[i].text + '<br> High: ' + weather.forecast[i].high + '&deg;C <br> Low: ' + weather.forecast[i].low + '&deg;C <br>';
            }
            html += '</div>'

            $("#weather").html(html);
        },
        error: function(error) {
            $("#weather").html('<p>' + error + '</p>');
        }
    });
}
{'fraction_non_alphanumeric': 0.21844018506278917, 'fraction_numerical': 0.01784534038334435, 'mean_word_length': 2.300981461286805, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 51, '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': '166767', 'n_tokens_mistral': 994, 'n_tokens_neox': 925, 'n_words': 199}