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

"use strict";
const {wholeMonth} = require('./lib/month.js');
const [ , , ...args] = process.argv;

if (args.length === 2) {
  const[month, year] = args;
  //console.log(month, year);
  console.log(`${wholeMonth(parseInt(year), parseInt(month))}`);
  //return `${wholeMonth(parseInt(year), parseInt(month))}}`;
} else if (args.length === 1) {
  const[year] = args;
  console.log("oh no");
  //console.log(`generateYear(${year})`);
} else {
  console.log('nope');
  process.exit(64);<commit_msg>added some fail conditions<commit_after>#!/usr/bin/env node --harmony_destructuring

"use strict";
const {wholeMonth} = require('./lib/month.js');
const [ , , ...args] = process.argv;

if (args.length === 2) {
  const[month, year] = args;
  month > 12 || month < 1 ? (console.log("nope"), process.exit(64)) : month;
  year < 1753 || year > 9999 ? (console.log("nope"), process.exit(64)) : year;
  console.log(`${wholeMonth(parseInt(year), parseInt(month))}`);
} else if (args.length === 1) {
  const[year] = args;
  console.log("oh no");
} else {
  console.log('nope');
  process.exit(64);
{'fraction_non_alphanumeric': 0.22572178477690288, 'fraction_numerical': 0.020122484689413824, 'mean_word_length': 4.5, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '426721', 'n_tokens_mistral': 428, 'n_tokens_neox': 411, 'n_words': 82}