<commit_before>'use strict';

// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
	initializePage();
})

/*
 * Function that is called when the document is ready.
 */
function initializePage() {
	// add any functionality and listeners you want here
	var today = new Date();
	var month = today.getMonth();
	var date = today.getDate();
	var year = today.getFullYear();
	var hour = today.getHours();
	var greeting = "Hello";

	switch(month) {
	    case 0:
	      month = "January";
	      break;
	    case 1:
	      month = "February";
	      break;
	    case 2:
	      month = "March";
	      break;
	    case 3:
	      month = "April";
	      break;
	    case 4:
	      month = "May";
	      break;
	    case 5:
	      month = "June";
	      break;
	    case 6:
	      month = "July";
	      break;
	    case 7:
	      month = "August";
	      break;
	    case 8:
	      month = "September";
	      break;
	    case 9:
	      month = "October";
	      break;
	    case 10:
	      month = "November";
	      break;
	    case 11:
	      month = "December";
	      break;
  	}

  	switch(hour) {
  		case 5:
  		case 6:
  		case 7:
  		case 8:
  		case 9:
  		case 10:
  		case 11:
  			greeting = "Good morning";
  			break;
  		case 12:
  		case 13:
  		case 14:
  		case 15:
  		case 16:
  			greeting = "Good afternoon";
  			break;
  		case 17:
  		case 18:
  		case 19:
  		case 20:
  		case 21:
  		case 22:
  		case 23:
  		case 0:
  		case 1:
  		case 2:
  		case 3:
  		case 4:
  			greeting = "Good evening";
  			break;
  		default:
  			greeting = "Hello";
  			break;
  	}

  	$("#today").text(month + " " + date + ", " + year);
  	$("#greetingMessage").text(greeting);

  	var amtevents = 0;
  	var amttasks = 0;
    /*
  	$.getJSON( "../data.json", function() {
  		amttasks = data.tasks.length;

  	}.error(function(xhr) {
                    alert(xhr)
                })
  	);*/

    $.ajax({
            url: '../data.son',
            dataType: 'jsonp',
            success: function(data){
            amttasks = data.tasks.length;
             alert(data);
            }
          });

  	//$("#todayEvents").text(amtevents);
 
  	//$("#todayTasks").text(amttasks);
<commit_msg>Committing some changes to main js<commit_after>'use strict';

// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
	initializePage();
})

/*
 * Function that is called when the document is ready.
 */
function initializePage() {
	// add any functionality and listeners you want here
	var today = new Date();
	var month = today.getMonth();
	var date = today.getDate();
	var year = today.getFullYear();
	var hour = today.getHours();
	var greeting = "Hello";

	switch(month) {
	    case 0:
	      month = "January";
	      break;
	    case 1:
	      month = "February";
	      break;
	    case 2:
	      month = "March";
	      break;
	    case 3:
	      month = "April";
	      break;
	    case 4:
	      month = "May";
	      break;
	    case 5:
	      month = "June";
	      break;
	    case 6:
	      month = "July";
	      break;
	    case 7:
	      month = "August";
	      break;
	    case 8:
	      month = "September";
	      break;
	    case 9:
	      month = "October";
	      break;
	    case 10:
	      month = "November";
	      break;
	    case 11:
	      month = "December";
	      break;
  	}

  	switch(hour) {
  		case 5:
  		case 6:
  		case 7:
  		case 8:
  		case 9:
  		case 10:
  		case 11:
  			greeting = "Good morning";
  			break;
  		case 12:
  		case 13:
  		case 14:
  		case 15:
  		case 16:
  			greeting = "Good afternoon";
  			break;
  		case 17:
  		case 18:
  		case 19:
  		case 20:
  		case 21:
  		case 22:
  		case 23:
  		case 0:
  		case 1:
  		case 2:
  		case 3:
  		case 4:
  			greeting = "Good evening";
  			break;
  		default:
  			greeting = "Hello";
  			break;
  	}

  	$("#today").text(month + " " + date + ", " + year);
  	$("#greetingMessage").text(greeting);

  	var amtevents = 0;
  	var amttasks = 1;
    /*
  	$.getJSON( "../data.json", function() {
  		amttasks = data.tasks.length;

  	}.error(function(xhr) {
                    alert(xhr)
                })
  	);*/

    /*$.ajax({
            url: '../data.son',
            dataType: 'jsonp',
            success: function(data){
            amttasks = data.tasks.length;
             alert(data);
            }
          });*/

  	$("#todayEvents").text(getTodayEvents());
 
  	$("#todayTasks").text(amttasks);

{'fraction_non_alphanumeric': 0.1380994671403197, 'fraction_numerical': 0.023978685612788632, 'mean_word_length': 1.6314252336448598, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2841019', 'n_tokens_mistral': 1845, 'n_tokens_neox': 1602, 'n_words': 419}