<commit_before>function clone(obj) {
	if (null == obj || "object" != typeof obj) return obj;
	var copy = obj.constructor();
	for (var attr in obj) {
		if (obj.hasOwnProperty(attr)) copy[attr] = obj[attr];
	}
	return copy;
}

function Ughh(raw){
	if (arguments[2] === undefined) {
		var paramsRe = /\(.*\)/;
		var params1 = raw.toString().match(paramsRe);
		var params2 = params1[0].slice(1, params1[0].length-1);
		var params = params2.split(',');
		arguments[1] = params.length;
		arguments[2] = [];
	}
	var arity = arguments[1];
	var args = arguments[2];

	function func(next){
		var newArgs = clone(args);
		newArgs.push(next);
		if (newArgs.length === arity) {
			return raw.apply(undefined, newArgs);
		} else {
			return Ughh(raw, arity, newArgs);
		}
	}
	return func;
}

function zipWith(f, a, b){
	var result = []
	function goL(elem, index, array){
		result[index] = f(elem)(b[index]);
	}
	function goR(elem, index, array){
		result[index] = f(a[index])(elem);
	}
	if (a.length <= b.length) {
		a.forEach(goL);
		return result;
	} else {
		b.forEach(goR);
		return result;
	}
}

function app(fs, a){<commit_msg>"currying"<commit_after>function clone(obj) {
	if (null == obj || "object" != typeof obj) return obj;
	var copy = obj.constructor();
	for (var attr in obj) {
		if (obj.hasOwnProperty(attr)) copy[attr] = obj[attr];
	}
	return copy;
}

function Ughh(raw){
	if (arguments[2] === undefined) {
		var paramsRe = /\(.*\)/;
		var params1 = raw.toString().match(paramsRe);
		var params2 = params1[0].slice(1, params1[0].length-1);
		var params = params2.split(',');
		arguments[1] = params.length;
		arguments[2] = [];
	}
	var arity = arguments[1];
	var args = arguments[2];

	function func(next){
		var nexts = [];
		for (k in arguments) {nexts.push(arguments[k]);}
		var newArgs = clone(args);
		nexts.forEach(function(e){newArgs.push(e);});
		if (newArgs.length === arity) {
			return raw.apply(undefined, newArgs);
		} else {
			return Ughh(raw, arity, newArgs);
		}
	}
	return func;
}

function zipWith(f, a, b){
	var result = []
	function goL(elem, index, array){
		result[index] = f(elem)(b[index]);
	}
	function goR(elem, index, array){
		result[index] = f(a[index])(elem);
	}
	if (a.length <= b.length) {
		a.forEach(goL);
		return result;
	} else {
		b.forEach(goR);
		return result;
	}
}

function app(fs, a){
{'fraction_non_alphanumeric': 0.18798283261802576, 'fraction_numerical': 0.01201716738197425, 'mean_word_length': 3.9385593220338984, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7099304', 'n_tokens_mistral': 947, 'n_tokens_neox': 894, 'n_words': 206}