<commit_before>/**
 * Copyright (c) 2015-present, <NAME>
 * Released under the MIT license
 * https://github.com/haltu/muuri/blob/master/LICENSE.md
 */

var objectType = '[object Object]';

/**
 * Check if a value is a plain object.
 *
 * @param {*} val
 * @returns {Boolean}
 */
export default function isPlainObject(val) {
  return typeof val === 'object' && Object.prototype.toString.call(val) === objectType;
}<commit_msg>Cache toString method.<commit_after>/**
 * Copyright (c) 2015-present, <NAME>
 * Released under the MIT license
 * https://github.com/haltu/muuri/blob/master/LICENSE.md
 */

var objectType = '[object Object]';
var toString = Object.prototype.toString;

/**
 * Check if a value is a plain object.
 *
 * @param {*} val
 * @returns {Boolean}
 */
export default function isPlainObject(val) {
  return typeof val === 'object' && toString.call(val) === objectType;
}
{'fraction_non_alphanumeric': 0.1613995485327314, 'fraction_numerical': 0.009029345372460496, 'mean_word_length': 4.0397727272727275, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1432380', 'n_tokens_mistral': 285, 'n_tokens_neox': 278, 'n_words': 79}