<commit_before>#include <string.h>
#include "commands.h"

int cmd_intersect(int argc, char **argv) {

	return 0;
}


// Available commands
const cmd_t commands[] = {
	{"intersect", "Intersect two geometries", cmd_intersect},
	{NULL, NULL, NULL}
};

cmd_fun_t cmd_find(const char *name) {
	for(cmd_t *c = (cmd_t*)commands; c->name != NULL; c++) {
		if(0 == strcmp(c->name, name)) return c->fun;
	}
	return NULL;
}
<commit_msg>Docs.<commit_after>#include <string.h>
#include "commands.h"

// CLI Command functions
// Each takes argc, counted after the command name
// and argv, with argc elements with the remainder of the
// command line, the commands return status is directly
// returned to the OS.
//
// Commands should be exported in `commands` at the bottom of this file.
int cmd_intersect(int argc, char **argv) {

	return 0;
}


// Available commands
const cmd_t commands[] = {
	{"intersect", "Intersect two geometries", cmd_intersect},
	{NULL, NULL, NULL}
};

// Search for a command by name.
cmd_fun_t cmd_find(const char *name) {
	for(cmd_t *c = (cmd_t*)commands; c->name != NULL; c++) {
		if(0 == strcmp(c->name, name)) return c->fun;
	}
	return NULL;
}

{'fraction_non_alphanumeric': 0.15034364261168384, 'fraction_numerical': 0.003436426116838488, 'mean_word_length': 4.109649122807017, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '567849', 'n_tokens_mistral': 416, 'n_tokens_neox': 401, 'n_words': 133}