<commit_before>/**
 * The DateHelper helper contains methods that help generate months and years
 * for display the archive sidebar.
 * @param {function(Object, Object, Function)} app Express application instance.
 */
module.exports = function(app) {
  /**
   * @constructor
   */
  app.locals.DateHelper = function() {};


  /**
   * @const
   * @type {Array.<string>}
   */
  app.locals.DateHelper.MONTHS_ = [
    'January',
    'February',
    'March',
    'April',
    'May',
    'June',
    'July',
    'August',
    'September',
    'October',
    'November',
    'December'
  ];


  /**
   * Returns a 'Human-Readable' date string.
   * Requires the use of the `moment` library.
   * @param {string} date The date string.
   * @return {string} A human-readable date string.
   */
  app.locals.DateHelper.DateHelper.getHumanDate = function(date) {
    return require('moment')(date).format('MMMM Do YYYY, h:mm:ss A');
  };


  /**
   * Returns an array of the last 3 months.
   * @return {Array} Last 3 months.
   */
  app.locals.DateHelper.lastThreeMonths = function() {
    var now = new Date().getMonth();
    var months = app.locals.DateHelper.MONTHS_;
    var output = [];
    switch (now) {
      case 0:
        /** January */
        output.push(months[0]);<commit_msg>Fixed typo on class method name.<commit_after>/**
 * The DateHelper helper contains methods that help generate months and years
 * for display the archive sidebar.
 * @param {function(Object, Object, Function)} app Express application instance.
 */
module.exports = function(app) {
  /**
   * @constructor
   */
  app.locals.DateHelper = function() {};


  /**
   * @const
   * @type {Array.<string>}
   */
  app.locals.DateHelper.MONTHS_ = [
    'January',
    'February',
    'March',
    'April',
    'May',
    'June',
    'July',
    'August',
    'September',
    'October',
    'November',
    'December'
  ];


  /**
   * Returns a 'Human-Readable' date string.
   * Requires the use of the `moment` library.
   * @param {string} date The date string.
   * @return {string} A human-readable date string.
   */
  app.locals.DateHelper.getHumanDate = function(date) {
    return require('moment')(date).format('MMMM Do YYYY, h:mm:ss A');
  };


  /**
   * Returns an array of the last 3 months.
   * @return {Array} Last 3 months.
   */
  app.locals.DateHelper.lastThreeMonths = function() {
    var now = new Date().getMonth();
    var months = app.locals.DateHelper.MONTHS_;
    var output = [];
    switch (now) {
      case 0:
        /** January */
        output.push(months[0]);
{'fraction_non_alphanumeric': 0.1522921522921523, 'fraction_numerical': 0.003108003108003108, 'mean_word_length': 2.668091168091168, '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': '5735571', 'n_tokens_mistral': 870, 'n_tokens_neox': 819, 'n_words': 220}