<commit_before>module.exports = exports = function(value, options, key, attributes) {

  if (typeof value !== 'string') return "is not a string";

  if (options.notEmpty && value.length < options.minLength) {
    return 'must contain at least ' + options.minLength + ' items';
  }

};
<commit_msg>copy & paste error<commit_after>module.exports = exports = function(value, options, key, attributes) {

  if (typeof value !== 'string') return "is not a string";

  if (options.notEmpty && value === '') {
    return 'is empty';
  }

};

{'fraction_non_alphanumeric': 0.15355805243445692, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 4, '<?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': '193748', 'n_tokens_mistral': 163, 'n_tokens_neox': 158, 'n_words': 49}