<commit_before>export function isArray(obj) {
  return Object.prototype.toString.call(obj) === "[object Array]"
}

// Checks if an object has a property.

export function has(obj, propName) {
  return Object.prototype.hasOwnProperty.call(obj, propName)
}<commit_msg>Use a stored reference to `Object.prototype` in util.<commit_after>const { hasOwnProperty, toString } = Object.prototype

// Checks if an object has a property.

const has = (obj, propName) => (
  hasOwnProperty.call(obj, propName)
)

const isArray = Array.isArray || ((obj) => (
  toString.call(obj) === "[object Array]"
))

export { has, isArray }
{'fraction_non_alphanumeric': 0.13821138211382114, 'fraction_numerical': 0.0, 'mean_word_length': 4.703703703703703, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6455817', 'n_tokens_mistral': 190, 'n_tokens_neox': 191, 'n_words': 55}