<commit_before>'use strict'

const Benchmark = require('benchmark')
const suite = Benchmark.Suite()
const tyval = require('../tyval')

const numTest = tyval.number().min(-5).max(10).integer().finite().safeInteger()
const strTest = tyval.string().min(5).max(10).alphanum()
const arrayTest = tyval.array().max(10).min(2)
const objTest = tyval.object().notNull().notArray().notDate().notRegExp()
const objHas = tyval.object().has('test').has('bench').hasNot('nope')
const objHasFast = tyval.object().has('test', true).has('bench', true).hasNot('nope', true)

let objToTest = {
  test: 'test42',
  bench: 5<commit_msg>Updated bench<commit_after>'use strict'

const Benchmark = require('benchmark')
const suite = Benchmark.Suite()
const tyval = require('../tyval')

const numTest = tyval.number().min(-5).max(10).integer().finite().safeInteger()
const strTest = tyval.string().min(5).max(10).alphanum()
const arrayTest = tyval.array().max(10).min(2)
const objTest = tyval.object().notNull().notArray().notDate().notRegExp()
const objHas = tyval.object().has('test').has('bench').hasNot('nope')
const objHasFast = tyval.object().has('test', { fast: true }).has('bench', { fast: true }).hasNot('nope', { fast: true })

let objToTest = {
  test: 'test42',
  bench: 5
{'fraction_non_alphanumeric': 0.212241653418124, 'fraction_numerical': 0.019077901430842606, 'mean_word_length': 5.879781420765028, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '305166', 'n_tokens_mistral': 439, 'n_tokens_neox': 424, 'n_words': 81}