<commit_before>#!/usr/bin/env node

'use strict';

console.log('Welcome to jCal!');<commit_msg>added function to create and center calendar header<commit_after>#!/usr/bin/env node --harmony_destructuring

// use ES6 strict mode
'use strict';

const Month = require('./lib/month');
const Year = require('./lib/year');


// get command line arguments
// const args = process.argv.slice(2);
const [,, ...args] = process.argv;


console.log('args: ', args);


if (args.length === 0) {
  let today = new Date();

  // month is (0-11) converted to (1-12)
  let month = today.getMonth() + 1;

  // (1753-9999)
  let year = today.getFullYear();

  // day is (1-31);
  let day = today.getDate();

  console.log(`Current date = ${month} ${day}, ${year}`);
  Month.generateMonth(year, month);
}
else if (args.length === 2) {
  const [month, year] = args;

  console.log(`generateMonth(${year}, ${month})`);
}
else if (args.length === 1) {
  const[year] = args;

  console.log(`generateYear(${year})`);
}
else {
  console.log('invalid args.length');
  // set error code for CLI app
  // process.exit(64);
}
{'fraction_non_alphanumeric': 0.19744058500914077, 'fraction_numerical': 0.022851919561243144, 'mean_word_length': 3.6202531645569622, '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': '147520', 'n_tokens_mistral': 398, 'n_tokens_neox': 373, 'n_words': 101}