<commit_before>#include "pstore/builtins.h"
#include "pstore/string.h"
#include "pstore/core.h"
#include "pstore/csv.h"

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

typedef int (*builtin_cmd_fn)(int argc, char *argv[]);

struct builtin_cmd {
	const char		*name;
	builtin_cmd_fn		cmd_fn;
};

#define DEFINE_BUILTIN(n, c) { .name = n, .cmd_fn = c }

struct builtin_cmd builtins[] = {
	DEFINE_BUILTIN("cat",		cmd_cat),
	DEFINE_BUILTIN("import",	cmd_import),
};

static struct builtin_cmd *parse_builtin_cmd(int argc, char *argv[])
{
	int i;<commit_msg>Make unnecessarily global variable static<commit_after>#include "pstore/builtins.h"
#include "pstore/string.h"
#include "pstore/core.h"
#include "pstore/csv.h"

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

typedef int (*builtin_cmd_fn)(int argc, char *argv[]);

struct builtin_cmd {
	const char		*name;
	builtin_cmd_fn		cmd_fn;
};

#define DEFINE_BUILTIN(n, c) { .name = n, .cmd_fn = c }

static struct builtin_cmd builtins[] = {
	DEFINE_BUILTIN("cat",		cmd_cat),
	DEFINE_BUILTIN("import",	cmd_import),
};

static struct builtin_cmd *parse_builtin_cmd(int argc, char *argv[])
{
	int i;
{'fraction_non_alphanumeric': 0.15278969957081545, 'fraction_numerical': 0.0, 'mean_word_length': 5.550561797752809, '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': '4748256', 'n_tokens_mistral': 486, 'n_tokens_neox': 476, 'n_words': 104}