<commit_before>/*
 * TypeScript / ES2015 decorators
 */

/**
 * TypeScript / ES2015 decorator for adding pretty much anything to a ConboJS namespace
 * @param	{string}	namespace - The name of the target namespace
 * @param	{string}	[name] - The name to use for this object in the target namespace (useful if you target ES5 and minify your code)
 * @returns	{Function}	Decorator function
 */
conbo.conbons = function(namespace, name) 
{
	return function(target)
	{
		var imports = {};
		imports[name || target.name] = target;
		
		conbo(namespace).import(imports);
		
		return target;
	}
};

/**
 * TypeScript / ES2015 decorator for making properties bindable
 * @param	{*}			value - The current value of the property
 * @returns	{Function}	Property decorator function
 */
conbo.bindable = function(value)
{
	return function (target, key, descriptor) 
	{
        conbo.makeBindable(target, [key]);
    };
};<commit_msg>Added bindable and injectable decorators<commit_after>/*
 * TypeScript / ES2015 decorators
 */

/**
 * TypeScript / ES2015 decorator for adding pretty much anything to a ConboJS namespace
 * @param	{string}	namespace - The name of the target namespace
 * @param	{string}	[name] - The name to use for this object in the target namespace (useful if you target ES5 and minify your code)
 * @returns	{Function}	Decorator function
 */
conbo.conbons = function(namespace, name) 
{
	return function(target)
	{
		var imports = {};
		imports[name || target.name] = target;
		
		conbo(namespace).import(imports);
		
		return target;
	}
};

/**
 * TypeScript / ES2015 decorator to make a property bindable
 * @param	{any}		target - The target object
 * @param	{string}	key - The name of the property
 */
conbo.bindable = function(target, key)
{
	conbo.makeBindable(target, [key]);
}

/**
 * TypeScript / ES2015 decorator to prepare a property for injection
 * @param	{any}		target - The target object
 * @param	{string}	key - The name of the property
 */
conbo.injectable = function(target, key)
{
	if (delete target[key])
	{
		Object.defineProperty(target, key, 
		{
			value: undefined
		});
	}
}
{'fraction_non_alphanumeric': 0.11211401425178147, 'fraction_numerical': 0.014251781472684086, 'mean_word_length': 3.7325842696629215, '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': '791524', 'n_tokens_mistral': 703, 'n_tokens_neox': 651, 'n_words': 223}