<commit_before>const childValidator = array => (
  array.reduce((bool, item) => {
    return Array.isArray(item) && bool;
  }, true)
);

export default (data) => {
  if (!Array.isArray(data)) {
    return false;
  }

  if (!childValidator(data)) {
    return false;
  }

  return true;
};<commit_msg>Updated validator to take config object<commit_after>const childValidator = array => (
  array.reduce((bool, item) => {
    return Array.isArray(item) && bool;
  }, true)
);

export default (config) => {
  if (!Array.isArray(config.sheet.data)) {
    return false;
  }

  if (!childValidator(config.sheet.data)) {
    return false;
  }

  return true;
};
{'fraction_non_alphanumeric': 0.1620795107033639, 'fraction_numerical': 0.0, 'mean_word_length': 3.4863013698630136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '301350', 'n_tokens_mistral': 217, 'n_tokens_neox': 216, 'n_words': 49}