<commit_before>UI.Loki_Options = function(pluses, minuses)
{
	this._all;
	this._sel;
};

/**
 * Both pluses and minuses can be either arrays or strings. E.g.:
 * new Loki_Options( 'all' );
 * new Loki_Options( 'default', ['table', 'hrule'] );
 * new Loki_Options( ['strong', 'em', 'linebreak'] );
 *
 * @param 	pluses (mixed)   Array or string of options to include. See _init_all for available values.
 * @param 	minuses (mixed)  Array or string of options to exclude. See _init_all for available values.
 */
UI.Loki_Options.prototype.init = function(pluses, minuses)
{
	this._init_all();
	this._init_sel(pluses, minuses);
};

/**
 * Tests whether the given option is set.
 *
 * @param	option 	(string) Must be a string containing the name of one option
 */
UI.Loki_Options.prototype.test = function(option)
{
	return ( this._all[option] != null &&
			 (this._sel & this._all[option]) > 0 );
};

/**
 * Gets all the avilable options.
 *
 * @return	An array with all available options
 */
UI.Loki_Options.prototype.get_all = function()
{
	return this._all;
};
	
/**
 * Initializes the array of all the options
 *
 * NOTE: Be sure to keep this list synced with that in ../Loki_Options.php
 */
UI.Loki_Options.prototype._init_all = function()
{
	this._all = { strong : 1,
				  em : 2,
				  headline : 4,
				  linebreak : 8,
				  align : 16,
				  blockquote : 32,
				  highlight : 64,
				  olist : 128,
				  ulist : 256,
				  indenttext : 512,
				  findtext : 1024,
				  link : 2048,
				  table : 4096,
				  image : 8192,
				  assets : 16384,
				  source : 32768,
				  anchor : 65536,
				  hrule : 131072,
				  spell : 262144,  
				  merge : 524288,  // This shouldnt be included in default or all
				  pre : 1048576,
				  //highlight : 2097152,  // available for reassignment
				  clipboard : 4194304,
				  underline : 8388608<commit_msg>Removed the long-defunct "assets" Loki option.<commit_after>UI.Loki_Options = function(pluses, minuses)
{
	this._all;
	this._sel;
};

/**
 * Both pluses and minuses can be either arrays or strings. E.g.:
 * new Loki_Options( 'all' );
 * new Loki_Options( 'default', ['table', 'hrule'] );
 * new Loki_Options( ['strong', 'em', 'linebreak'] );
 *
 * @param 	pluses (mixed)   Array or string of options to include. See _init_all for available values.
 * @param 	minuses (mixed)  Array or string of options to exclude. See _init_all for available values.
 */
UI.Loki_Options.prototype.init = function(pluses, minuses)
{
	this._init_all();
	this._init_sel(pluses, minuses);
};

/**
 * Tests whether the given option is set.
 *
 * @param	option 	(string) Must be a string containing the name of one option
 */
UI.Loki_Options.prototype.test = function(option)
{
	return ( this._all[option] != null &&
			 (this._sel & this._all[option]) > 0 );
};

/**
 * Gets all the avilable options.
 *
 * @return	An array with all available options
 */
UI.Loki_Options.prototype.get_all = function()
{
	return this._all;
};
	
/**
 * Initializes the array of all the options
 *
 * NOTE: Be sure to keep this list synced with that in ../Loki_Options.php
 */
UI.Loki_Options.prototype._init_all = function()
{
	this._all = { strong : 1,
				  em : 2,
				  headline : 4,
				  linebreak : 8,
				  align : 16,
				  blockquote : 32,
				  highlight : 64,
				  olist : 128,
				  ulist : 256,
				  indenttext : 512,
				  findtext : 1024,
				  link : 2048,
				  table : 4096,
				  image : 8192,
				  source : 32768,
				  anchor : 65536,
				  hrule : 131072,
				  spell : 262144,  
				  merge : 524288,  // This shouldnt be included in default or all
				  pre : 1048576,
				  //highlight : 2097152,  // available for reassignment
				  clipboard : 4194304,
				  underline : 8388608
{'fraction_non_alphanumeric': 0.12228479485116653, 'fraction_numerical': 0.050683829444891394, 'mean_word_length': 2.756294058408862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2186361', 'n_tokens_mistral': 1580, 'n_tokens_neox': 1229, 'n_words': 382}