<commit_before>var search = require('./index.js')
var https = require('https')
var http = require('http')

function crash(why) {
	console.error('err:', why)
	process.exit(1)
}

function checkKeys(hits) {
	hits.results || crash("no 'results' key found")
	hits.time_ms || crash("no 'time_ms' key found")
}<commit_msg>fix time_ms=0 causing bogus test case to fail<commit_after>var search = require('./index.js')
var https = require('https')
var http = require('http')

function crash(why) {
	console.error('err:', why)
	process.exit(1)
}

function checkKeys(hits) {
	hits.results || crash("no 'results' key found")
	(++hits.time_ms) || crash("no 'time_ms' key found")
}
{'fraction_non_alphanumeric': 0.17867867867867868, 'fraction_numerical': 0.0045045045045045045, 'mean_word_length': 5.53921568627451, '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': '4677025', 'n_tokens_mistral': 236, 'n_tokens_neox': 234, 'n_words': 59}