<commit_before>var Structr = require('structr'),
Controller  = require('./controller');

try
{
	require.paths.unshift(__dirname + '/beans');
}catch(e)
{
	//break the web.
}

var Loader = Controller.extend({
	
	/**
	 */


	'override __construct': function()
	{
		this._super();
		
		this._params = {};
	},

	/**
	 */

	'params': function(params)
	{
		Structr.copy(params || {}, this._params);	
		return this;
	},

	/**
	 */

	'require': function()
	{
		for(var i = arguments.length; i--;)
        {
            this._require(arguments[i]);
        }
        
        return this;
	},
    
    /**<commit_msg>return plugin params if params is a string<commit_after>var Structr = require('structr'),
Controller  = require('./controller');

try
{
	require.paths.unshift(__dirname + '/beans');
}catch(e)
{
	//break the web.
}

var Loader = Controller.extend({
	
	/**
	 */


	'override __construct': function()
	{
		this._super();
		
		this._params = {};
	},

	/**
	 */

	'params': function(params)
	{
		if(typeof params == 'string') return this._params[params];
		
		Structr.copy(params || {}, this._params);	
		return this;
	},

	/**
	 */

	'require': function()
	{
		for(var i = arguments.length; i--;)
        {
            this._require(arguments[i]);
        }
        
        return this;
	},
    
    /**
{'fraction_non_alphanumeric': 0.18821729150726854, 'fraction_numerical': 0.0, 'mean_word_length': 2.3711340206185567, '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': '1632945', 'n_tokens_mistral': 475, 'n_tokens_neox': 432, 'n_words': 82}