<commit_before>#include <x0/http/HttpMessageProcessor.h>
#include <x0/http/HttpConnection.h>
#include <x0/http/HttpRequest.h>
#include <x0/http/HttpWorker.h>
#include <x0/http/HttpServer.h>
#include <x0/cache/Redis.h>
#include <x0/LocalStream.h>
#include <x0/Socket.h>
#include <stdio.h>
#include <string.h>
#include <ev++.h>

using namespace x0;

int main(int argc, char *argv[])
{
	struct ev_loop* loop = ev_default_loop();
	Redis cli(loop);
	cli.open("localhost", 6379);

	if (argc == 1) {
		argc = 2;
		static char *argv_[] = { argv[0], "foo", 0 };
		argv = argv_;
	}

	if (argc > 2)
		if (!cli.set(argv[1], argv[2]))
			printf("couldn't store redis key/value pair\n");

	if (argc >= 2) {
		Buffer buf;

		if (!cli.get(argv[1], buf))
			printf("couldn't retrieve redis value\n");
		else
			printf("%s: %s\n", argv[1], buf.c_str());
	}

	return 0;
}<commit_msg>[tests] mute a compile warning<commit_after>#include <x0/http/HttpMessageProcessor.h>
#include <x0/http/HttpConnection.h>
#include <x0/http/HttpRequest.h>
#include <x0/http/HttpWorker.h>
#include <x0/http/HttpServer.h>
#include <x0/cache/Redis.h>
#include <x0/LocalStream.h>
#include <x0/Socket.h>
#include <stdio.h>
#include <string.h>
#include <ev++.h>

using namespace x0;

int main(int argc, const char *argv[])
{
	struct ev_loop* loop = ev_default_loop();
	Redis cli(loop);
	cli.open("localhost", 6379);

	if (argc == 1) {
		argc = 2;
		static const char *argv_[] = { argv[0], "foo", 0 };
		argv = argv_;
	}

	if (argc > 2)
		if (!cli.set(argv[1], argv[2]))
			printf("couldn't store redis key/value pair\n");

	if (argc >= 2) {
		Buffer buf;

		if (!cli.get(argv[1], buf))
			printf("couldn't retrieve redis value\n");
		else
			printf("%s: %s\n", argv[1], buf.c_str());
	}

	return 0;
}
{'fraction_non_alphanumeric': 0.19692657939669891, 'fraction_numerical': 0.02731929425156517, 'mean_word_length': 4.155425219941349, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 29, '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': '6465835', 'n_tokens_mistral': 782, 'n_tokens_neox': 726, 'n_words': 168}