<commit_before>/* $Id$ */

/*
 * Control interface for querying and modifying
 * parameters of a running slashd instance.
 */

#include "psc_util/cdefs.h"
#include "psc_util/ctl.h"
#include "psc_util/ctlsvr.h"

#include "control.h"

struct psc_ctlop slctlops[] = {
	PSC_CTLDEFOPS
};

void
slctlthr_main(const char *fn)
{
	psc_ctlthr_main(fn, slctlops, NENTRIES(slctlops));
}
<commit_msg>redo thread stat gathering callbacks<commit_after>/* $Id$ */

/*
 * Control interface for querying and modifying
 * parameters of a running slashd instance.
 */

#include "psc_util/cdefs.h"
#include "psc_util/ctl.h"
#include "psc_util/ctlsvr.h"

#include "control.h"

struct psc_ctlop slctlops[] = {
	PSC_CTLDEFOPS
};

void (*psc_ctl_getstats[])(struct psc_thread *, struct psc_ctlmsg_stats *) = {
/* 0 */	psc_ctlthr_stat
};
int psc_ctl_ngetstats = NENTRIES(psc_ctl_getstats);

void
slctlthr_main(const char *fn)
{
	psc_ctlthr_main(fn, slctlops, NENTRIES(slctlops));
}

{'fraction_non_alphanumeric': 0.13389121338912133, 'fraction_numerical': 0.0010460251046025104, 'mean_word_length': 5.134615384615385, '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': '1306383', 'n_tokens_mistral': 405, 'n_tokens_neox': 395, 'n_words': 80}