<commit_before>/* $Id$ */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "slconfig.h"

#define _PATH_SLASHCONF "../../src/config/example.conf"

const char *progname;

__dead void
usage(void)
{
	fprintf(stderr, "usage: %s [conf-file]\n", progname);
	exit(1);
}

int
main(int argc, char *argv[])
{
	const char *fn;
	int c;

	optarg = _PATH_SLASHCONF;
	progname = argv[0];
	while ((c = getopt(argc, argv, "f:")) != -1)
		switch (c) {
		case 'f':
			fn = optarg;
			break;
		default:
			usage();
		}
	argc -= optind;
	if (argc)
		usage();

	run_yacc(fn);
	exit(0);
}<commit_msg>fix some obviously wrong things<commit_after>/* $Id$ */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "slconfig.h"

#define _PATH_SLASHCONF "../../src/config/example.conf"

const char *progname;

__dead void
usage(void)
{
	fprintf(stderr, "usage: %s [conf-file]\n", progname);
	exit(1);
}

int
main(int argc, char *argv[])
{
	int c;

	progname = argv[0];
	while ((c = getopt(argc, argv, "")) != -1)
		switch (c) {
		default:
			usage();
		}
	argc -= optind;
	argv += optind;
	if (argc != 0 &&
	    argc != 1)
		usage();

	run_yacc(argc ? *argv : _PATH_SLASHCONF);
	exit(0);
}
{'fraction_non_alphanumeric': 0.19983277591973245, 'fraction_numerical': 0.008361204013377926, 'mean_word_length': 3.568702290076336, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5175076', 'n_tokens_mistral': 538, 'n_tokens_neox': 514, 'n_words': 122}