<commit_before>var TypeErrorMessage = {
  /**
   * Get the TypeError message
   * @param {Object} object - The tested object
   * @param {String} expectedType - A string describing the expected type
   * @return {String} The error message
   */
  getMessage: function (object, expectedType) {
    return `${object} should be ${expectedType}`;
  },

  /**
   * Get the TypeError Array message
   * @param {Object} object - The tested object
   * @param {String} expectedType - The expected type of all array items
   * @return {String} The error message
   */
  getArrayMessage: function (object, expectedType) {
    if (expectedType) {
      return this.getTypeErrorMessage(object, `an array of ${expectedType}`);
    }
    return this.getTypeErrorMessage(object, 'an array');
  },

  /**
   * Get the TypeError Function message
   * @param {Object} object - The tested object
   * @return {String} The error message
   */
  getFunctionMessage: function (object) {
    return this.getTypeErrorMessage(object, 'a function');
  },

  /**
   * Get the TypeError Integer message
   * @param {Object} object - The tested object
   * @return {String} The error message
   */
  getIntegerMessage: function (object) {
    return this.getTypeErrorMessage(object, 'an intenger');
  },

  /**
   * Get the TypeError Object message
   * @param {Object} object - The tested object
   * @return {String} The error message
   */
  getObjectMessage: function (object) {
    return this.getTypeErrorMessage(object, 'an object');
  },

  /**
   * Get the TypeError Taggd.Tag message
   * @param {Object} object - The tested object
   * @return {String} The error message
   */
   getTagMessage: function (object) {
     return this.getTypeErrorMessage(object, 'a tag');
   },

   /**
    * Get TypeError message
    * @param {Object} object - The tested object
    * @param {String} message - The type message
    * @return {String} The error message
    */
   getTypeErrorMessage: function(object, message) {
     return `${object} is not a ${message}`;
   }
};

module.exports = TypeErrorMessage;
<commit_msg>Fix Integer error message<commit_after>var TypeErrorMessage = {
  /**
   * Get the TypeError message
   * @param {Object} object - The tested object
   * @param {String} expectedType - A string describing the expected type
   * @return {String} The error message
   */
  getMessage: function (object, expectedType) {
    return `${object} should be ${expectedType}`;
  },

  /**
   * Get the TypeError Array message
   * @param {Object} object - The tested object
   * @param {String} expectedType - The expected type of all array items
   * @return {String} The error message
   */
  getArrayMessage: function (object, expectedType) {
    if (expectedType) {
      return this.getTypeErrorMessage(object, `an array of ${expectedType}`);
    }
    return this.getTypeErrorMessage(object, 'an array');
  },

  /**
   * Get the TypeError Function message
   * @param {Object} object - The tested object
   * @return {String} The error message
   */
  getFunctionMessage: function (object) {
    return this.getTypeErrorMessage(object, 'a function');
  },

  /**
   * Get the TypeError Integer message
   * @param {Object} object - The tested object
   * @return {String} The error message
   */
  getIntegerMessage: function (object) {
    return this.getTypeErrorMessage(object, 'an integer');
  },

  /**
   * Get the TypeError Object message
   * @param {Object} object - The tested object
   * @return {String} The error message
   */
  getObjectMessage: function (object) {
    return this.getTypeErrorMessage(object, 'an object');
  },

  /**
   * Get the TypeError Taggd.Tag message
   * @param {Object} object - The tested object
   * @return {String} The error message
   */
   getTagMessage: function (object) {
     return this.getTypeErrorMessage(object, 'a tag');
   },

   /**
    * Get TypeError message
    * @param {Object} object - The tested object
    * @param {String} message - The type message
    * @return {String} The error message
    */
   getTypeErrorMessage: function(object, message) {
     return `${object} is not a ${message}`;
   }
};

module.exports = TypeErrorMessage;

{'fraction_non_alphanumeric': 0.11532046700023826, 'fraction_numerical': 0.0, 'mean_word_length': 3.214859437751004, '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': '3297731', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1200, 'n_words': 403}