<commit_before>
var Dom = require('./Dom');
var settings = require('./settings');

/**
 * Wrapper for DOM element.
 * This function returns either jQuery object that wraps DOM element or partially compatible DOM wrapper.
 * JQuery is used if useJquery === true (default setting is true) and jQuery exists in window object.
 *
 * @param  {DOMElement} element Single DOM element
 * @return {object}             JQuery object or Dom wrapper object
 */
var $ = function(element)
{
	if(settings.useJquery && typeof window === 'object' && window.jQuery)
	{
		$ = window.jQuery;
	}
	else
	{
		$ = function(element)
		{
			var el;
			if(element instanceof Dom) el = new Dom(element[0]);
			else el =  new Dom(element);
			return el;
		};
	}
	return $(element);
};

module.exports = $;<commit_msg>fix(dollar): $ function shouldn't rewrite a reference to itself in browserified version (it makes no sense)<commit_after>
var Dom = require('./Dom');
var settings = require('./settings');

/**
 * Wrapper for DOM element.
 * This function returns either jQuery object that wraps DOM element or partially compatible DOM wrapper.
 * JQuery is used if useJquery === true (default setting is true) and jQuery exists in window object.
 *
 * @param  {DOMElement} element Single DOM element
 * @return {object}             JQuery object or Dom wrapper object
 */
var $;

if(settings.useJquery && typeof window === 'object' && window.jQuery)
{
	$ = window.jQuery;
}
else
{
	$ = function(element)
	{
		var el;
		if(element instanceof Dom) el = new Dom(element[0]);
		else el =  new Dom(element);
		return el;
	};
}

module.exports = $;
{'fraction_non_alphanumeric': 0.12399256044637322, 'fraction_numerical': 0.0012399256044637321, 'mean_word_length': 3.611428571428571, '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': '6148477', 'n_tokens_mistral': 491, 'n_tokens_neox': 465, 'n_words': 177}