<commit_before>// var dayOfWeek = 1;
var dayOfMonth = 9;
var month = 3;
var year = 2015;
var K = 15;
var century = 20;

// console.log(century);

var solve = (dayOfMonth + parseInt((13 * (month + 1) / 5)) + K + parseInt(K / 4) + parseInt(century / 4) + 5 * century) % 7;

console.log(solve);







<commit_msg>equation returns correct day of the week<commit_after>var dayOfWeek;
var dayOfMonth = 23;
var month = 7;
var year = 2014;
var K = year % 100;
var J = (year - K) / 100;

var solve = (dayOfMonth + parseInt((13 * (month + 1) / 5)) + K + parseInt(K / 4) + parseInt(J / 4) + 5 * J) % 7;

if (solve == 0) { dayOfWeek = 'Saturday' };
if (solve == 1) { dayOfWeek = 'Sunday' };
if (solve == 2) { dayOfWeek = 'Monday' };
if (solve == 3) { dayOfWeek = 'Tuesday' };
if (solve == 4) { dayOfWeek = 'Wednsday' };
if (solve == 5) { dayOfWeek = 'Thursday' };
if (solve == 6) { dayOfWeek = 'Friday' };

console.log(solve);
console.log(dayOfWeek);








{'fraction_non_alphanumeric': 0.18585005279831046, 'fraction_numerical': 0.04963041182682154, 'mean_word_length': 3.309090909090909, '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': '1911311', 'n_tokens_mistral': 428, 'n_tokens_neox': 366, 'n_words': 114}