<commit_before>;
(function($) {

	$.domlab = function domlab(dom, opts) {
		var st = $.extend({
			'container' : $('<div/>'),
			'elmts' : {}
		}, opts);

		$.addDom(st['container'], dom, false, {
			'push' : function(key, $el) {
				st['elmts'][key] = $el;
			},
			'overide' : true
		});

		return {
			'elements' : st['elmts'],
			'container': st['container']
		};
	};

	$.addDom = function addDom($cntnr, data, prep, opts) {
		var st = $.extend({
			'push' : function(key, $el) {}
		}, opts);

		if (opts && opts['overide']) {
			st = $.extend({
				'push' : function(key, $el) {}
			}, opts);
			st['overide'] = false;
		} else {
			st = opts;
		}

		if (data['type'] === undefined || data['type'] === 'node') {
			var $tag = $('<' + data['tag'] + '/>').addClass(data['class']);

			if (data['html'] !== undefined) {
				$tag.html(data['html']);
			} else if (data['text'] !== undefined) {
				$tag.text(data['text']);
			}

			$.loop(data['attr'], function(name, value) {
				$tag.attr(name, value);
			});

			$.loop(data['events'], function(name, fn) {
				$tag.on(name, fn);
			});

			$.appendDom($tag, data['append'], false, st);
			$.appendDom($tag, data['prepend'], true, st);

			if (data['complement']) {
				data['complement'].call(tag, []);
			}

			if (!data['remove_empty'] || $tag.children().length > 0) {
				if (prep) {
					$cntnr.prepend($tag);
				} else {
					$cntnr.append($tag);
				}

				if (data['key']) {
					st['push'](data['key'], $tag);
				}
			}
		} else if (data['type'] === 'iterator') {
			data['datasource'](function(content) {
				$.loop(content, function(k, v) {
					$.addDom($cntnr, data['filler'](k, v), false, st);
				});	
			});
		}
	};

	$.appendDom = function appendDom($container, items, prep, opts) {
		$.loop(items, function(index, d) {
			$.addDom($container, d, prep, opts);
		});
	};<commit_msg>FIX: llamada a la función complementaria<commit_after>;
(function($) {

	$.domlab = function domlab(dom, opts) {
		var st = $.extend({
			'container' : $('<div/>'),
			'elmts' : {}
		}, opts);

		$.addDom(st['container'], dom, false, {
			'push' : function(key, $el) {
				st['elmts'][key] = $el;
			},
			'overide' : true
		});

		return {
			'elements' : st['elmts'],
			'container': st['container']
		};
	};

	$.addDom = function addDom($cntnr, data, prep, opts) {
		var st = $.extend({
			'push' : function(key, $el) {}
		}, opts);

		if (opts && opts['overide']) {
			st = $.extend({
				'push' : function(key, $el) {}
			}, opts);
			st['overide'] = false;
		} else {
			st = opts;
		}

		if (data['type'] === undefined || data['type'] === 'node') {
			var $tag = $('<' + data['tag'] + '/>').addClass(data['class']);

			if (data['html'] !== undefined) {
				$tag.html(data['html']);
			} else if (data['text'] !== undefined) {
				$tag.text(data['text']);
			}

			$.loop(data['attr'], function(name, value) {
				$tag.attr(name, value);
			});

			$.loop(data['events'], function(name, fn) {
				$tag.on(name, fn);
			});

			$.appendDom($tag, data['append'], false, st);
			$.appendDom($tag, data['prepend'], true, st);

			if (data['complement']) {
				data['complement'].call($tag, []);
			}

			if (!data['remove_empty'] || $tag.children().length > 0) {
				if (prep) {
					$cntnr.prepend($tag);
				} else {
					$cntnr.append($tag);
				}

				if (data['key']) {
					st['push'](data['key'], $tag);
				}
			}
		} else if (data['type'] === 'iterator') {
			data['datasource'](function(content) {
				$.loop(content, function(k, v) {
					$.addDom($cntnr, data['filler'](k, v), false, st);
				});	
			});
		}
	};

	$.appendDom = function appendDom($container, items, prep, opts) {
		$.loop(items, function(index, d) {
			$.addDom($container, d, prep, opts);
		});
	};
{'fraction_non_alphanumeric': 0.2574946466809422, 'fraction_numerical': 0.0005353319057815846, 'mean_word_length': 3.070806100217865, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4687496', 'n_tokens_mistral': 1682, 'n_tokens_neox': 1385, 'n_words': 271}