<commit_before>var Pumpkin = function()
{
	this.data = null;
	this.works = {};
};

Pumpkin.prototype.setData = function(data)
{
	this.data = data;
};

Pumpkin.prototype.addWork = function(name, work)
{
	this.works[name] = work;
};

Pumpkin.prototype.execute = function(list, done, index, params)
{
	if(list)
	{
		if(!index)
			index = 0;
		
		if(typeof index == 'object')
		{
			params = index;
			index = 0;
		}
		
		if(list.length == index)
		{
			done.call({data : this.data}, params);
			return;
		}
		
		var that = this;
		var work = this.works[list[index]];
		work.call({data : this.data, next : function(params)
		{
			that.execute(list, done, index+1, params);
		}}, params);
	}
};

module.exports = Pumpkin;<commit_msg>Update for using pumpkin on html.<commit_after>var Pumpkin = function()
{
	this.data = null;
	this.works = {};
};

Pumpkin.prototype.setData = function(data)
{
	this.data = data;
};

Pumpkin.prototype.addWork = function(name, work)
{
	this.works[name] = work;
};

Pumpkin.prototype.execute = function(list, done, index, params)
{
	if(list)
	{
		if(!index)
			index = 0;
		
		if(typeof index == 'object')
		{
			params = index;
			index = 0;
		}
		
		if(list.length == index)
		{
			done.call({data : this.data}, params);
			return;
		}
		
		var that = this;
		var work = this.works[list[index]];
		work.call({data : this.data, next : function(params)
		{
			that.execute(list, done, index+1, params);
		}}, params);
	}
};

try
{
	module.exports = Pumpkin;	
}
catch(err)
{}
{'fraction_non_alphanumeric': 0.17266666666666666, 'fraction_numerical': 0.004, 'mean_word_length': 3.2642045454545454, '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': '3774962', 'n_tokens_mistral': 644, 'n_tokens_neox': 565, 'n_words': 114}