<commit_before>#define _XOPEN_SOURCE
#include <errno.h>
#include <iconv.h>
#include <unistd.h>
#include <node.h>

using namespace v8;

static char SECURE_SALT[21] = "$5$";
#define TRIP_MAX 128

static Handle<Value> setup_callback(Arguments const &args) {
	HandleScope scope;

	if (args.Length() != 1)
		return False();
	String::Utf8Value saltVal(args[0]->ToString());
	if (saltVal.length() != 16)
		return False();
	char *salt = *saltVal;
	if (!salt)
		return False();
	memcpy(SECURE_SALT + 3, salt, 16);
	SECURE_SALT[19] = '$';
	SECURE_SALT[20] = 0;
	return True();
}<commit_msg>Add missing import for tripcode<commit_after>#define _XOPEN_SOURCE
#include <errno.h>
#include <iconv.h>
#include <unistd.h>
#include <node.h>
#include <string.h>

using namespace v8;

static char SECURE_SALT[21] = "$5$";
#define TRIP_MAX 128

static Handle<Value> setup_callback(Arguments const &args) {
	HandleScope scope;

	if (args.Length() != 1)
		return False();
	String::Utf8Value saltVal(args[0]->ToString());
	if (saltVal.length() != 16)
		return False();
	char *salt = *saltVal;
	if (!salt)
		return False();
	memcpy(SECURE_SALT + 3, salt, 16);
	SECURE_SALT[19] = '$';
	SECURE_SALT[20] = 0;
	return True();
}
{'fraction_non_alphanumeric': 0.1686143572621035, 'fraction_numerical': 0.0333889816360601, 'mean_word_length': 5.310526315789474, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 16, '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': '7421192', 'n_tokens_mistral': 514, 'n_tokens_neox': 462, 'n_words': 116}