<commit_before>//A little setup
require("./setup")();


exports = module.exports = function Sync() {

	this._functions =  [];
	this.cb =  function(cb) {
		this._callback = cb;
		return this;
	};
	this.callback =  function(cb) {
		this._callback = cb;
		return this;
	};
	this.options = function() {
		for (var i = 0; i < this._functions.length; i++) {
			var func = this._functions[i];
			if(!func.args) {
				func.args = arguments.toArray();
			}
		}
		return this;
	};
	this.add = function(func){
		var args = arguments.toArray();
		args.splice(0,1); //remove func
		this._functions.push({"func": func, "args": args});
		return this;
	};
	this.exec = function(cb) {<commit_msg>In .add method, use an array for arguments<commit_after>//A little setup
require("./setup")();


exports = module.exports = function Sync() {

	this._functions =  [];
	this.cb =  function(cb) {
		this._callback = cb;
		return this;
	};
	this.callback =  function(cb) {
		this._callback = cb;
		return this;
	};
	this.options = function() {
		for (var i = 0; i < this._functions.length; i++) {
			var func = this._functions[i];
			if(!func.args) {
				func.args = arguments.toArray();
			}
		}
		return this;
	};
	this.add = function(func, args){
		this._functions.push({"func": func, "args": args});
		return this;
	};
	this.exec = function(cb) {
{'fraction_non_alphanumeric': 0.17886792452830189, 'fraction_numerical': 0.0030188679245283017, 'mean_word_length': 3.2636655948553055, 'pattern_counts': {'":': 4, '<': 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': '2036141', 'n_tokens_mistral': 514, 'n_tokens_neox': 471, 'n_words': 110}