<commit_before><commit_msg>api proposal example<commit_after>var Roach = require('../index.js')

var client = new Roach({
	host: '127.0.0.1',
	port: 8080
})

var c = client.prepare()

var putDone = c.put("key", "value")
var getDone = c.get("key")

c.flush(function(err) {
	if(err) {
		console.log(err)
		return
	}

	console.log('putDone', putDone.err, putDone.res)
	console.log('getDone', getDone.err, getDone.res)
})

{'fraction_non_alphanumeric': 0.18899521531100477, 'fraction_numerical': 0.023923444976076555, 'mean_word_length': 4.441558441558442, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '217382', 'n_tokens_mistral': 175, 'n_tokens_neox': 166, 'n_words': 33}