<commit_before>#!/usr/bin/env node --harmony_destructuring
"use strict";

const _ = require('lodash');
const zellers = require('./zellers.js');
let year = {};

year.calendar = (year) => {
  let days = [" 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,];
  let months = ['December', 'January', 'February', 'March', 'April', 'May', 'June',
               'July', 'August', 'September', 'October', 'November', 'December'];
  let monthDays = [];
  const space = "  ";
  let spaceCount = 0;
  for (let i = 0; i < months.length - 1; i++) {
    monthDays[i] = new Date (year, i + 1, 0).getDate();
    monthDays[i] = days.slice(0, monthDays[i]);
    spaceCount = zellers.getDay(year, i + 1, 1);
    for (let x = 0; x < spaceCount; x++) {
      monthDays[i].unshift(space);
    }
    spaceCount = 0;
    monthDays[i] = _.chunk(monthDays[i], 7);
     //console.log([i], "month of days, chunked",monthDays[i]);
  }
  console.log("monthDays", monthDays);

};
year.calendar(2016);
console.log("zeller's get day march 2016", zellers.getDay(2016, 3, 1));
module.exports = year;<commit_msg>starting to slice it up properly<commit_after>#!/usr/bin/env node --harmony_destructuring
"use strict";

const _ = require('lodash');
const zellers = require('./zellers.js');
let year = {};

year.calendar = (year) => {
  let days = [" 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,];
  let months = ['December', 'January', 'February', 'March', 'April', 'May', 'June',
               'July', 'August', 'September', 'October', 'November', 'December'];
  let monthDays = [];
  const space = "  ";
  let spaceCount = 0;
  for (let i = 0; i < months.length - 1; i++) {
    monthDays[i] = new Date (year, i + 1, 0).getDate();
    monthDays[i] = days.slice(0, monthDays[i]);
    spaceCount = zellers.getDay(year, i + 1, 1);
    for (let x = 0; x < spaceCount; x++) {
      monthDays[i].unshift(space);
    }
    //spaceCount = 0;
    console.log(monthDays[i].join(" "));
    monthDays[i] = monthDays[i].join(" ");
    monthDays[i] = monthDays[i].split("");
    for (let y = 20; y < monthDays[i].length; y += 21) {
      monthDays[i][y] = "##";
    }
    //console.log(monthDays[i]);
    monthDays[i] = monthDays[i].join("");
    console.log(monthDays[i]);
    monthDays[i] = monthDays[i].split("##");
    console.log(monthDays[i]);
    //monthDays[i] = _.chunk(monthDays[i], 7);
     //console.log([i], "month of days, chunked",monthDays[i]);
  }
  //console.log(`monthDays[0] ${monthDays[0]}`);
  //let body = monthDays.join(" ");
  //console.log(body);

};
year.calendar(2016);
module.exports = year;
{'fraction_non_alphanumeric': 0.22451888809693513, 'fraction_numerical': 0.0541696364932288, 'mean_word_length': 3.0799418604651163, 'pattern_counts': {'":': 0, '<': 8, '<?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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1939762', 'n_tokens_mistral': 1234, 'n_tokens_neox': 1025, 'n_words': 267}