<commit_before>var path = require('path'),
fs = require('fs');

exports.queries = [
  {
    validate: /time/gi,
    then: function(query, services) {

      // parse when this is happening
      when = services.query.whenParser(query) || Date.create()

      //cannot give time in the future or past
      if ( when.is('today') ) {
        return "The time is " + when.format('{12hr}:{mm}{tt}')
      } else {
        return "I cannot tell the future, nor the past!"
      }
    }
  },
  {
    validate: function(query) {

      // must match one of these
      return query.has("day") || query.has("date")
    },
    then: function(query, services) {

      // parse when this is happening
      when = services.query.whenParser(query) || Date.create()

      // give the date that was requested
      if ( query.has(' day ') ) {
        // ex: monday
        return "Today is a " + when.format('{Weekday}')

      } else if ( query.has(' date ') ) {
        // ex: June 5 2014
        return "Today is  " + when.format('{Month} {d}, {yyyy}')
      }


    }
  }
]

exports.services = {}<commit_msg>increased evaluation specificity<commit_after>var path = require('path'),
fs = require('fs');

exports.queries = [
  {
    validate: /time/gi,
    then: function(query, services) {

      // parse when this is happening
      when = services.query.whenParser(query) || Date.create()

      //cannot give time in the future or past
      if ( when.is('today') ) {
        return "The time is " + when.format('{12hr}:{mm}{tt}')
      } else {
        return "I cannot tell the future, nor the past!"
      }
    }
  },
  {
    validate: function(query) {

      // must match one of these
      return /\bday\b/gi.test(query) || /\bdate\b/gi.test(query)
    },
    then: function(query, services) {

      // parse when this is happening
      when = services.query.whenParser(query) || Date.create()

      // give the date that was requested
      if ( /\bday\b/gi.test(query) ) {
        // ex: monday
        return "Today is a " + when.format('{Weekday}')

      } else if ( /\bdate\b/gi.test(query) ) {
        // ex: June 5 2014
        return "Today's date is " + when.format('{Month} {d}, {yyyy}')
      }


    }
  }
]

exports.services = {}
{'fraction_non_alphanumeric': 0.15606936416184972, 'fraction_numerical': 0.006224988883948421, 'mean_word_length': 2.094910591471802, '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': '1318833', 'n_tokens_mistral': 750, 'n_tokens_neox': 704, 'n_words': 197}