<commit_before>function isMonad(value) {
	return value && value.isMonad;
}

function isFunction(value) {
	return value instanceof Function;
}

function SpatialMonad(bind, value) {
	return {
		isMonad: true,
		toString: null,
		valueOf: function() { return value; },
		bind: function(a, b) { return bind(value, a, b); }
	};
}

function TemporalMonad(bind, producer) {
	return {
		isMonad: true,
		toString: null,
		valueOf: function() { return function(cb) {
			return producer(cb);
		}; },
		bind: function() {
			// TODO: implement me...
		}
	};
}

exports.isMonad = isMonad;
exports.isFunction = isFunction;
exports.Spatial = SpatialMonad;
exports.Temporal = TemporalMonad;
<commit_msg>thunk with error<commit_after>function isMonad(value) {
	return value && value.isMonad;
}

function isFunction(value) {
	return value instanceof Function;
}

function SpatialMonad(bind, value) {
	return {
		isMonad: true,
		toString: null,
		valueOf: function() { return value; },
		bind: function(a, b) { return bind(value, a, b); }
	};
}

function TemporalMonad(bind, producer) {
	return {
		isMonad: true,
		toString: null,
		valueOf: function() { return function(cb) {
			return producer(cb, function(error) {
				cb(void 0, error);
			});
		}; },
		bind: function() {
			// TODO: implement me...
		}
	};
}

exports.isMonad = isMonad;
exports.isFunction = isFunction;
exports.Spatial = SpatialMonad;
exports.Temporal = TemporalMonad;

{'fraction_non_alphanumeric': 0.13955119214586256, 'fraction_numerical': 0.0007012622720897616, 'mean_word_length': 4.133093525179856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '429721', 'n_tokens_mistral': 541, 'n_tokens_neox': 496, 'n_words': 120}