<commit_before>/**
 * Created by hustcc on 17/08/01.
 */

/**
 * what( v ) -> String : get what is the type of the input var.
 * @param v: the var which want to typeof
 * @returns {string}
 * https://github.com/hustcc/what.js
 */

function what(v) {
  if (v === null) return 'null';
  if (v === undefined) return 'undefined';
  var t = typeof v;
  // performance opt
  if (
    t === 'string' ||
    t === 'number' ||
    t === 'function' ||
    t === 'boolean'
  ) return t;
  if (v !== Object(v)) return t;
  return ({}).toString.call(v).slice(8, -1).toLowerCase();
}

module.exports = what;<commit_msg>remove unused code<commit_after>/**
 * Created by hustcc on 17/08/01.
 */

/**
 * what( v ) -> String : get what is the type of the input var.
 * @param v: the var which want to typeof
 * @returns {string}
 * https://github.com/hustcc/what.js
 */

function what(v) {
  if (v === null) return 'null';
  if (v === undefined) return 'undefined';
  var t = typeof v;
  // performance opt
  if (
    t === 'string' ||
    t === 'number' ||
    t === 'function' ||
    t === 'boolean'
  ) return t;
  // if (v !== Object(v)) return t;
  return ({}).toString.call(v).slice(8, -1).toLowerCase();
}

module.exports = what;
{'fraction_non_alphanumeric': 0.1986863711001642, 'fraction_numerical': 0.013136288998357963, 'mean_word_length': 2.7392638036809815, 'pattern_counts': {'":': 0, '<': 3, '<?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': '559313', 'n_tokens_mistral': 438, 'n_tokens_neox': 430, 'n_words': 137}