<commit_before>var argv = require('yargs')

var moy = process.argv[2].toLowerCase();
var dom = process.argv[3];
var y = process.argv[4];

if (moy == 'january')   { moy = 13; y = process.argv[4] - 1 }
if (moy == 'februrary') { moy = 14; y = process.argv[4] - 1 }
if (moy == 'march')     { moy = 3 }
if (moy == 'april')     { moy = 4 }
if (moy == 'may')       { moy = 5 }
if (moy == 'june')      { moy = 6 }
if (moy == 'july')      { moy = 7 }
if (moy == 'august')    { moy = 8 }
if (moy == 'september') { moy = 9 }
if (moy == 'october')   { moy = 10 }
if (moy == 'november')  { moy = 11 }
if (moy == 'december')  { moy = 12 }

var dayOfWeek;
var dayOfMonth = parseInt(dom);
var month = parseInt(moy);
var year = parseInt(y);
var K = year % 100;
var J = (year - K) / 100;

var solve = (dayOfMonth + parseInt((13 * (moy + 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(dayOfWeek);


//******************************CALENDER*********************************************************************

//6 lines -- 42 spots
var spot;
var Year = y;
var Month = moy.charAt(0).toUpperCase() + moy.slice(1);;
var presentMonth = '     ' + Month + ' ' + Year;
var presentDays = 'Su Mo Tu We Th Fr Sa';

console.log(presentMonth);
console.log(presentDays);



// var test =

//      July 2015
// Su Mo Tu We Th Fr Sa
//           1  2  3  4
//  5  6  7  8  9 10 11
// 12 13 14 15 16 17 18
// 19 20 21 22 23 24 25
// 26 27 28 29 30 31






<commit_msg>ok, ok, now it actualy prints out correct capitilized month and year, followed by the day of the week<commit_after>var argv = require('yargs')
var monthOfYear;
var moy = process.argv[2].toLowerCase().charAt(0).toUpperCase() + process.argv[2].slice(1);
var monthOfYear = process.argv[2].toLowerCase().charAt(0).toUpperCase() + process.argv[2].slice(1);
var dom = process.argv[3];
var y = process.argv[4];

if (moy == 'January')   { moy = 13; y = process.argv[4] - 1 }
if (moy == 'Februrary') { moy = 14; y = process.argv[4] - 1 }
if (moy == 'March')     { moy = 3 }
if (moy == 'April')     { moy = 4 }
if (moy == 'May')       { moy = 5 }
if (moy == 'June')      { moy = 6 }
if (moy == 'July')      { moy = 7 }
if (moy == 'August')    { moy = 8 }
if (moy == 'September') { moy = 9 }
if (moy == 'October')   { moy = 10 }
if (moy == 'November')  { moy = 11 }
if (moy == 'December')  { moy = 12 }

var dayOfWeek;
var dayOfMonth = parseInt(dom);
var month = parseInt(moy);
var year = parseInt(y);
var K = year % 100;
var J = (year - K) / 100;

var solve = (dayOfMonth + parseInt((13 * (moy + 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(dayOfWeek);


//******************************CALENDER*********************************************************************

//6 lines -- 42 spots
var spot;
var presentMonth = '     ' + monthOfYear + ' ' + y;
var presentDays = 'Su Mo Tu We Th Fr Sa';


console.log(presentMonth);
console.log(presentDays);



// var test =

//      July 2015
// Su Mo Tu We Th Fr Sa
//           1  2  3  4
//  5  6  7  8  9 10 11
// 12 13 14 15 16 17 18
// 19 20 21 22 23 24 25
// 26 27 28 29 30 31







{'fraction_non_alphanumeric': 0.236226820747111, 'fraction_numerical': 0.05885514646600376, 'mean_word_length': 2.8569948186528498, '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': '4563376', 'n_tokens_mistral': 1619, 'n_tokens_neox': 1427, 'n_words': 458}