<commit_before>const t = require('../src')

const types = [
  t.isArray,
  t.array,
  t.isBoolean,
  t.boolean,
  t.isDefined,
  t.defined,
  t.isFunction,
  t.function,
  t.isNumber,
  t.number,
  t.isInteger,
  t.integer,
  t.isFloat,
  t.float,
  t.isObject,
  t.object,
  t.isString,
  t.string,
  t.isRGBAObject,
  t.rgbaObject,
  t.isRGBObject,
  t.rgbObject,
  t.isHexColor,
  t.hexColor,
  t.isHexAlphaColor,
  t.hexAlphaColor,
  t.isColor,
  t.color,
  t.isDate,
  t.date,
  t.isRegExp,
  t.RegExp,
  t.isTruthy,
  t.truthy,
  t.isFalsy,
  t.falsy,
  t.isEmpty,
  t.empty,
  t.isError,
  t.error,
  t.isIterable,
  t.iterable,
  t.isEmail,
  t.email,
  t.isNull,
  t.null,
  t.isUndefinedOrNull,
  t.undefinedOrNull,
  t.isBuffer,
  t.buffer,
  t.isThenable,
  t.thenable,
  t.isArguments,
  t.arguments,
  t.isUUID,
  t.uuid,
  t.testType,
  t.type,
  t.test,
  t.types,
  t.isEq,
  t.eq,
  t.is,
  t.isNot,
  t.not,
  t.isNeq,
  t.neq,
]

const equal = (...a) => () => !a.some(b => b.toString() !== a[0].toString())

const fns = [
  {
    fn: () => types.length,
    expect: Object.keys(t).length,
    info: 'Number of test functions is equal to lib functions',
  },
  {
    fn: () => types.filter(t.isFunction).length,
    expect: types.length,
    info: 'All exposed fields are functions',
  },
  {
    fn: () => t.isArray.toString(),
    expect: t.array.toString(),
    info: 't.isArray equals t.array',
  },
  {
    fn: equal(t.isArray, t.array),
    info: 't.isArray equals t.array',
  },
  {
    fn: equal(t.isBoolean, t.boolean),
    expect: true,
    info: 't.isBoolean equals t.boolean',
  },
  {
    fn: equal(t.isDefined, t.defined),
    expect: true,
    info: 't.isDefined equals t.defined',
  },
  {
    fn: equal(t.isFunction, t.function),
    expect: true,
    info: 't.isFunction equals t.function',
  },
  {
    fn: equal(t.isNumber, t.number),
    expect: true,
    info: 't.isNumber equals t.number',
  },
  {
    fn: equal(t.isInteger, t.integer),
    expect: true,
    info: 't.isInteger equals t.integer',
  },
  {
    fn: equal(t.isFloat, t.float),
    expect: true,
    info: 't.isFloat equals t.float',
  },
  {
    fn: equal(t.isObject, t.object),
    expect: true,
    info: 't.isObject equals t.object',
  },
  {
    fn: equal(t.isString, t.string),
    expect: true,
    info: 't.isString equals t.string',
  },
  {
    fn: equal(t.isRGBAObject, t.rgbaObject),
    expect: true,
    info: 't.isRGBAObject equals t.rgbaObject',
  },
  {
    fn: equal(t.isRGBObject, t.rgbObject),
    expect: true,
    info: 't.isRGBObject equals t.rgbObject',
  },
  {
    fn: equal(t.isHexColor, t.hexColor),
    expect: true,
    info: 't.isHexColor equals t.hexColor',
  },
  {
    fn: equal(t.isHexAlphaColor, t.hexAlphaColor),
    expect: true,
    info: 't.isHexAlphaColor equals t.hexAlphaColor',
  },
  {
    fn: equal(t.isColor, t.color),
    expect: true,
    info: 't.isColor equals t.color',
  },
  { fn: equal(t.isDate, t.date), expect: true, info: 't.isDate equals t.date' },
  {
    fn: equal(t.isRegExp, t.RegExp),
    expect: true,
    info: 't.isRegExp equals t.RegExp',
  },
  {
    fn: equal(t.isTruthy, t.truthy),
    expect: true,
    info: 't.isTruthy equals t.truthy',
  },
  {
    fn: equal(t.isFalsy, t.falsy),
    expect: true,
    info: 't.isFalsy equals t.falsy',
  },
  {
    fn: equal(t.isEmpty, t.empty),
    expect: true,
    info: 't.isEmpty equals t.empty',
  },
  {
    fn: equal(t.isError, t.error),
    expect: true,
    info: 't.isError equals t.error',
  },
  {
    fn: equal(t.isIterable, t.iterable),
    expect: true,<commit_msg>test aliases<commit_after>const t = require('../src')

const types = [
  'isArray',
  'array',
  'isBoolean',
  'boolean',
  'isDefined',
  'defined',
  'isFunction',
  'function',
  'isNumber',
  'number',
  'isInteger',
  'integer',
  'isFloat',
  'float',
  'isObject',
  'object',
  'isString',
  'string',
  'isRGBAObject',
  'rgbaObject',
  'rgba',
  'isRGBObject',
  'rgbObject',
  'rgb',
  'isHexColor',
  'hexColor',
  'hex',
  'isHexAlphaColor',
  'hexAlphaColor',
  'hexa',
  'isColor',
  'color',
  'isDate',
  'date',
  'isRegExp',
  'regExp',
  'regexp',
  'isTruthy',
  'truthy',
  'isFalsy',
  'falsy',
  'isEmpty',
  'empty',
  'isError',
  'error',
  'isIterable',
  'iterable',
  'isEmail',
  'email',
  'mail',
  'isNull',
  'null',
  'nil',
  'isUndefinedOrNull',
  'undefinedOrNull',
  'undefined',
  'isBuffer',
  'buffer',
  'isThenable',
  'thenable',
  'isArguments',
  'arguments',
  'isUUID',
  'uuid',
  'testType',
  'type',
  'test',
  'types',
  'isEq',
  'eq',
  'is',
  'isNot',
  'not',
  'isNeq',
  'neq',
]

const compare = (a, b) => a.toString() !== b.toString()

const equal = (...a) => () => a.some(b => compare(a, b))

const fns = [
  {
    fn: () => Object.keys(t).filter(k => types.indexOf(k) === -1),
    expect: a => a.length === 0 || console.log('Missing Spec Tests', a),
    info: 'Number of test functions is equal to lib functions',
  },
  {
    fn: () => types.some(k => t.function(t[k])),
    info: 'All exposed fields are functions',
  },
  {
    fn: () => t.isArray.toString(),
    expect: t.array.toString(),
    info: 't.isArray equals t.array',
  },
  {
    fn: equal(t.isArray, t.array),
    info: 't.isArray equals t.array',
  },
  {
    fn: equal(t.isBoolean, t.boolean),
    expect: true,
    info: 't.isBoolean equals t.boolean',
  },
  {
    fn: equal(t.isDefined, t.defined),
    expect: true,
    info: 't.isDefined equals t.defined',
  },
  {
    fn: equal(t.isFunction, t.function),
    expect: true,
    info: 't.isFunction equals t.function',
  },
  {
    fn: equal(t.isNumber, t.number),
    expect: true,
    info: 't.isNumber equals t.number',
  },
  {
    fn: equal(t.isInteger, t.integer),
    expect: true,
    info: 't.isInteger equals t.integer',
  },
  {
    fn: equal(t.isFloat, t.float),
    expect: true,
    info: 't.isFloat equals t.float',
  },
  {
    fn: equal(t.isObject, t.object),
    expect: true,
    info: 't.isObject equals t.object',
  },
  {
    fn: equal(t.isString, t.string),
    expect: true,
    info: 't.isString equals t.string',
  },
  {
    fn: equal(t.isRGBAObject, t.rgbaObject),
    expect: true,
    info: 't.isRGBAObject equals t.rgbaObject',
  },
  {
    fn: equal(t.isRGBObject, t.rgbObject),
    expect: true,
    info: 't.isRGBObject equals t.rgbObject',
  },
  {
    fn: equal(t.isHexColor, t.hexColor, t.hex),
    expect: true,
    info: 't.isHexColor equals t.hexColor',
  },
  {
    fn: equal(t.isHexAlphaColor, t.hexAlphaColor, t.hexa),
    expect: true,
    info: 't.isHexAlphaColor equals t.hexAlphaColor',
  },
  {
    fn: equal(t.isColor, t.color),
    expect: true,
    info: 't.isColor equals t.color',
  },
  { fn: equal(t.isDate, t.date), expect: true, info: 't.isDate equals t.date' },
  {
    fn: equal(t.isRegExp, t.regExp, t.regexp),
    expect: true,
    info: 't.isRegExp, t.RegExp and t.regexp are equal',
  },
  {
    fn: equal(t.isTruthy, t.truthy),
    expect: true,
    info: 't.isTruthy equals t.truthy',
  },
  {
    fn: equal(t.isFalsy, t.falsy),
    expect: true,
    info: 't.isFalsy equals t.falsy',
  },
  {
    fn: equal(t.isEmpty, t.empty),
    expect: true,
    info: 't.isEmpty equals t.empty',
  },
  {
    fn: equal(t.isError, t.error),
    expect: true,
    info: 't.isError equals t.error',
  },
  {
    fn: equal(t.isIterable, t.iterable),
    expect: true,
{'fraction_non_alphanumeric': 0.18298446995273465, 'fraction_numerical': 0.0004051316677920324, 'mean_word_length': 2.626836434867777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '51128', 'n_tokens_mistral': 3089, 'n_tokens_neox': 3100, 'n_words': 617}