<commit_before>#!/usr/sbin/dtrace -sZ

#pragma D option quiet

BEGIN
{
	self->start = timestamp;
	self->ts    = 0;
	printf("Start tracing....\n\n");
}

demo*:::start
{
	self->ts = timestamp;
}

demo*:::stop
/self->ts/
{
	printf("String: %10s len: %2d time: %6d\n",
		args[0]->str, args[0]->len, timestamp - self->ts);
	@[arg0] = quantize((timestamp - self->ts) / 1000); /* microseconds */
	self->ts = 0;
}

END
{
	printf("Time %d.%d sec\n",
		(timestamp - self->start)/1000/1000/1000,
		(timestamp - self->start)/1000/1000/100);
}<commit_msg>Fixed 03_script.sh<commit_after>#!/usr/sbin/dtrace -Zs

#pragma D option quiet

BEGIN
{
	self->start = timestamp;
	self->ts    = 0;
	printf("Start tracing....\n\n");
}

demo*:::start
{
	self->ts = timestamp;
}

demo*:::stop
/self->ts/
{
	printf("String: %10s len: %2d time: %6d\n",
		args[0]->str, args[0]->len, timestamp - self->ts);
	@[args[0]->str] = quantize((timestamp - self->ts) / 1000); /* microseconds */
	self->ts = 0;
}

END
{
	printf("Time %d.%d sec\n",
		(timestamp - self->start)/1000/1000/1000,
		(timestamp - self->start)/1000/1000/100);
}
{'fraction_non_alphanumeric': 0.23609845031905197, 'fraction_numerical': 0.0674567000911577, 'mean_word_length': 3.392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, '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': '1638406', 'n_tokens_mistral': 517, 'n_tokens_neox': 453, 'n_words': 87}