<commit_before>"use strict";

console.log('month file is running');

let currentMonth = function () {
    var date = new Date();
    console.log('date', date);

    //Month
    var month = new Array();
    month[0] = 'January';
    var currentMonth = month[date.getMonth()];

    //Year
    var currentYear = date.getFullYear();

    //calendar spaces
    var headSpaces;

    //Output
    var output = "    " + currentMonth + " " + currentYear + "\n" +
      "Su Mo Tu We Th Fr Sa\n";
    console.log(output);
}

module.exports = {
  currentMonth: currentMonth
}<commit_msg>added function that gets total of days of current month<commit_after>"use strict";

console.log('month file is running');

var daysString;

//Getting the number of days in current month
let daysInMonth = function (month, year) {
    var totalDays = new Date(year, month, 0).getDate();
    var days = [];

    for (var i = 1; i <= totalDays; i++) {
      days.push(i);
     }
    daysString = days.toString().replace(/,/g, " ");
    console.log('daysString', daysString);

    return daysString;
}

let currentMonth = function () {
    var date = new Date();
    console.log('date', date);

    //Month
    var month = new Array();
    month[1] = 'January';
    var currentMonth = month[date.getMonth()+1];

    //Year
    var currentYear = date.getFullYear();

    //days
    var monthNumb = date.getMonth()+1;
    daysInMonth(monthNumb, currentYear);

    //Output
    console.log('******THIS IS MY CONSOLE.LOG******');
    var output = "    " + currentMonth + " " + currentYear + "\n" +
      "Su Mo Tu We Th Fr Sa\n" + daysString;
    console.log(output);

}


module.exports = {
  currentMonth: currentMonth
}
{'fraction_non_alphanumeric': 0.15343601895734596, 'fraction_numerical': 0.0035545023696682463, 'mean_word_length': 2.804054054054054, 'pattern_counts': {'":': 0, '<': 4, '<?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': '7407791', 'n_tokens_mistral': 548, 'n_tokens_neox': 527, 'n_words': 153}